tests: Remove [require] directives for tests that use int and bool uniforms.

These tests should actually compile and run in SM1, which is possible
if we pass the int and uint uniforms in the expected IEEE 754 float
format for SM1 shaders.

Also, bools should be passed as 1.0f or 0.0f to SM1.
This commit is contained in:
Francisco Casas
2024-01-31 17:10:29 -03:00
committed by Alexandre Julliard
parent 22c47e57f5
commit 6a8939e19f
Notes: Alexandre Julliard 2024-02-13 23:11:43 +01:00
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/616
14 changed files with 220 additions and 176 deletions

View File

@@ -13,10 +13,8 @@ uniform 4 float4 0.0 -10.0 10.0 100.0
draw quad
probe all rgba (2.0, 0.00292968750, 4096.0, 6.33825300e+030) 2
[require]
shader model >= 4.0
[pixel shader]
[pixel shader todo(sm<4)]
uniform int4 x;
uniform int4 y;
@@ -26,9 +24,11 @@ float4 main() : SV_TARGET
}
[test]
uniform 0 int4 2 3 4 5
uniform 4 int4 0 -10 10 100
draw quad
if(sm<4) uniform 0 float4 2 3 4 5
if(sm<4) uniform 4 float4 0 -10 10 100
if(sm>=4) uniform 0 int4 2 3 4 5
if(sm>=4) uniform 4 int4 0 -10 10 100
todo(sm<4) draw quad
probe all rgba (2.0, 0.00292968750, 4096.0, 6.33825300e+030) 2