mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Do not make the alpha test ref parameter VSIR_DIMENSION_VEC4.
This commit is contained in:
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
@ -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);
|
||||
ins->src[0].reg.dimension = VSIR_DIMENSION_VEC4;
|
||||
ins->src[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->src[opcodes[compare_func].swap ? 1 : 0].reg.dimension = VSIR_DIMENSION_VEC4;
|
||||
ins->src[opcodes[compare_func].swap ? 1 : 0].swizzle = VKD3D_SHADER_SWIZZLE(W, W, W, W);
|
||||
|
||||
++ins;
|
||||
vsir_instruction_init_with_params(program, ins, &ret->location, VKD3DSIH_DISCARD, 0, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user