Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 58d02da8 by Shaun Ren at 2025-11-10T15:51:26+01:00 vkd3d-shader/hlsl: Use a bool type for "new_cond" in lower_conditional_block_discard_nz().
This fixes the assertion error
"sm4_generate_vsir_instr_expr Failed assertion: dst_type->e.numeric.type == HLSL_TYPE_BOOL"
which occurs when compiling the following HLSL shader using the ps_4_0 target profile:
uniform float4 x; uniform bool b;
float4 main() : SV_Target { if (!b) clip(x.x); else clip(x.y);
return x; }
- - - - -
2 changed files:
- libs/vkd3d-shader/hlsl_codegen.c - tests/hlsl/clip.shader_test
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/commit/58d02da8928313b466b0c28dce0cb3...