[PATCH 2/6] wined3d: Fix swizzle for ld_raw instruction.

Henri Verbeet hverbeet at gmail.com
Mon Feb 20 09:59:55 CST 2017


On 20 February 2017 at 13:12, Józef Kucia <jkucia at codeweavers.com> wrote:
> @@ -5063,9 +5071,9 @@ static void shader_glsl_ld_raw(const struct wined3d_shader_instruction *ins)
>                  &dst, dst.reg.data_type)))
>              continue;
>
> -        shader_glsl_swizzle_to_str(src->swizzle, FALSE, write_mask, dst_swizzle);
> -        shader_addline(buffer, "%s(%s_%s%u, %s / 4)%s);\n",
> -                function, prefix, resource, src->reg.idx[0].offset, offset.param_str, dst_swizzle);
> +        swizzle = shader_glsl_swizzle_get_component(src->swizzle, write_mask);
That doesn't look right, should that use "i" instead of "write_mask"?



More information about the wine-devel mailing list