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

@ -69,8 +69,6 @@ uniform 0 float4 -1.9 -1.0 2.9 4.0
todo draw quad
probe all rgba (-1.0, -1.0, 2.0, 4.0)
[require]
shader model >= 4.0
[pixel shader todo]
uniform int4 i;
@ -88,6 +86,7 @@ float4 main() : sv_target
}
[test]
uniform 0 int4 -2 0 1 -3000000
if(sm<4) uniform 0 float4 -2 0 1 -3000000
if(sm>=4) uniform 0 int4 -2 0 1 -3000000
todo(sm<6) draw quad
probe all rgba (-1.0, 0.0, 1.0, -3000000.0)
probe all rgba (-1.0, 0.0, 1.0, -3000000.0) 4