tests/hlsl: Do not test dst() on integer arguments with SM6.

That seems to hit a DXC bug we're not interested into.
This commit is contained in:
Giovanni Mascellani
2025-04-11 22:25:46 +02:00
committed by Henri Verbeet
parent 9db9f3bdaf
commit 3186d66596
Notes: Henri Verbeet 2025-04-16 16:52:31 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1461

View File

@@ -44,8 +44,14 @@ float4 main() : SV_TARGET
} }
[test] [test]
todo(sm>=6) draw quad % DXC generates very strange code here, the first component is emitted with:
probe (0, 0) rgba (1.0, 80.0, 3.0, 80.0) % call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0,
% float sitofp (ppc_fp128 0xM3FF00000000000000000000000000000 to float))
% I don't know what's going on here, but the downstream compilers clearly don't
% like it: NVIDIA fails to create the PSO, AMD returns zero (instead of expected
% one) and WARP loses the device; it's not our bug, we can ignore it.
if(sm<6) draw quad
if(sm<6) probe (0, 0) rgba(1.0, 80.0, 3.0, 80.0)
[pixel shader] [pixel shader]
float4 main() : SV_TARGET float4 main() : SV_TARGET