vkd3d-shader/ir: Add missing src swizzle in vsir_program_lower_texkills().

This commit is contained in:
Francisco Casas 2024-03-30 02:11:01 -03:00 committed by Alexandre Julliard
parent 808ec288cf
commit 2621fc9572
Notes: Alexandre Julliard 2024-04-09 15:44:37 -05:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/744
2 changed files with 3 additions and 2 deletions

View File

@ -127,6 +127,7 @@ static enum vkd3d_result vsir_program_lower_texkills(struct vsir_program *progra
ins->dst[0].write_mask = VKD3DSP_WRITEMASK_ALL;
ins->src[0].reg = texkill_ins->dst[0].reg;
ins->src[0].swizzle = VKD3D_SHADER_NO_SWIZZLE;
vsir_register_init(&ins->src[1].reg, VKD3DSPR_IMMCONST, VKD3D_DATA_FLOAT, 0);
ins->src[1].reg.dimension = VSIR_DIMENSION_VEC4;
ins->src[1].reg.u.immconst_f32[0] = 0.0f;

View File

@ -22,7 +22,7 @@ todo(glsl) draw quad
probe all rgba (9, 0, 7, 6)
uniform 0 float4 3 -8 3 0
todo(glsl) draw quad
todo(sm<4) probe all rgba (9, 0, 7, 6)
probe all rgba (9, 0, 7, 6)
uniform 0 float4 3 3 3 -1
todo(glsl) draw quad
todo(sm<4) probe all rgba (9, 0, 7, 6)
probe all rgba (9, 0, 7, 6)