Module: vkd3d Branch: master Commit: 669e85171e59e0aca1e1323ce1f0396b78ddf29c URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/669e85171e59e0aca1e1323ce1f039...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Tue Jun 18 12:56:27 2024 -0500
tests: Run combined-samplers.shader_test on sm1 as well.
Now that we have if() this is easier.
---
tests/hlsl/combined-samplers.shader_test | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/tests/hlsl/combined-samplers.shader_test b/tests/hlsl/combined-samplers.shader_test index 8972b541..28e9f1a7 100644 --- a/tests/hlsl/combined-samplers.shader_test +++ b/tests/hlsl/combined-samplers.shader_test @@ -1,5 +1,4 @@ [require] -shader model >= 4.0 shader model < 6.0 options: backcompat
@@ -49,7 +48,8 @@ todo(glsl) draw quad probe (0, 0) rgba (0, 0, 0, 1)
-% Textures for new separated samplers are allocated before regular textures. +% On sm4, textures for new separated samplers are allocated before regular textures. +% On sm1, textures for new combined samplers are allocated before regular samplers. [pixel shader] Texture2D tex; sampler sam; @@ -61,7 +61,23 @@ float4 main() : sv_target
[test] todo(glsl) draw quad -probe (0, 0) rgba (10, 10, 10, 11) +if(sm<4) todo probe (0, 0) rgba (1, 1, 1, 11) +if(sm>=4) probe (0, 0) rgba (10, 10, 10, 11) + + +[pixel shader] +Texture2D tex; +sampler sam; + +float4 main() : sv_target +{ + return 10 * tex.Sample(sam, float2(0, 0)) + tex2D(sam, float2(0, 0)); +} + +[test] +todo(glsl) draw quad +if(sm<4) todo probe (0, 0) rgba (1, 1, 1, 11) +if(sm>=4) probe (0, 0) rgba (10, 10, 10, 11)
[pixel shader todo(sm<4)] @@ -74,7 +90,7 @@ float4 main() : sv_target }
[test] -todo(glsl) draw quad +todo(sm<4 | glsl) draw quad probe (0, 0) rgba (21, 21, 21, 11)
@@ -91,10 +107,11 @@ float4 main() : sv_target
[test] todo(glsl) draw quad -probe (0, 0) rgba (12, 12, 12, 111) +if(sm<4) probe (0, 0) rgba (102, 102, 102, 111) +if(sm>=4) probe (0, 0) rgba (12, 12, 12, 111)
-[pixel shader] +[pixel shader notimpl(sm<4)] Texture2D tex[2][2]; sampler sam;