vkd3d-shader: Do not make the alpha test ref parameter VSIR_DIMENSION_VEC4.

This commit is contained in:
Elizabeth Figura 2024-07-16 22:36:05 -05:00 committed by Henri Verbeet
parent 1db7c03185
commit 97cd941710
Notes: Henri Verbeet 2024-07-23 21:20:04 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/958

View File

@ -5509,10 +5509,8 @@ static enum vkd3d_result insert_alpha_test_before_ret(struct vsir_program *progr
} }
dst_param_init_ssa_bool(&ins->dst[0], program->ssa_count); dst_param_init_ssa_bool(&ins->dst[0], program->ssa_count);
ins->src[0].reg.dimension = VSIR_DIMENSION_VEC4; ins->src[opcodes[compare_func].swap ? 1 : 0].reg.dimension = VSIR_DIMENSION_VEC4;
ins->src[0].swizzle = VKD3D_SHADER_SWIZZLE(W, W, W, W); ins->src[opcodes[compare_func].swap ? 1 : 0].swizzle = VKD3D_SHADER_SWIZZLE(W, W, W, W);
ins->src[1].reg.dimension = VSIR_DIMENSION_VEC4;
ins->src[1].swizzle = VKD3D_SHADER_SWIZZLE(W, W, W, W);
++ins; ++ins;
vsir_instruction_init_with_params(program, ins, &ret->location, VKD3DSIH_DISCARD, 0, 1); vsir_instruction_init_with_params(program, ins, &ret->location, VKD3DSIH_DISCARD, 0, 1);