vkd3d-shader/hlsl: Lower SLT instructions for pixel shaders.

Properly passing the inverse-trig.shader_test tests whose qualifiers
have been removed requires making spirv.c capable of handling ABS.
The same happens for the ps_3_0 equality test in
float-comparison.shader_test.
This commit is contained in:
Francisco Casas
2023-11-01 17:07:46 -03:00
committed by Alexandre Julliard
parent 4133c4d801
commit 5c986b9cde
Notes: Alexandre Julliard 2024-03-14 23:24:02 +01:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/706
11 changed files with 113 additions and 38 deletions

View File

@@ -25,7 +25,7 @@ todo(sm<4) draw quad
probe all rgba (9.0, 10.0, 11.0, 12.0)
[pixel shader todo(sm<4)]
[pixel shader]
uniform float i;
float4 main() : SV_TARGET
@@ -36,16 +36,16 @@ float4 main() : SV_TARGET
[test]
uniform 0 float 0
todo(sm<4) draw quad
draw quad
probe all rgba (11.0, 11.0, 11.0, 11.0)
uniform 0 float 1
todo(sm<4) draw quad
draw quad
probe all rgba (12.0, 12.0, 12.0, 12.0)
uniform 0 float 2
todo(sm<4) draw quad
draw quad
probe all rgba (13.0, 13.0, 13.0, 13.0)
uniform 0 float 3
todo(sm<4) draw quad
draw quad
probe all rgba (14.0, 14.0, 14.0, 14.0)