From e6267dd6b482c393417d86ad15b336125ec6b185 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 20 May 2025 18:01:20 +0200 Subject: [PATCH] tests/hlsl: Do not test for overflowing 16-bit texture sampling. The behavior is not uniform across drivers; in my tests AMD performs as expected by the test, but WARP and NVIDIA return infinity. --- tests/hlsl/sampler.shader_test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hlsl/sampler.shader_test b/tests/hlsl/sampler.shader_test index e669e2111..ce6cfad67 100644 --- a/tests/hlsl/sampler.shader_test +++ b/tests/hlsl/sampler.shader_test @@ -171,7 +171,7 @@ native-16-bit [srv 0] size (2d, 2, 2) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -0.0 0.0 0.0 0.0 262144.0 0.0 -262144.0 0.0 +0.0 0.0 0.0 0.0 2621.0 0.0 -2621.0 0.0 [pixel shader] sampler s; @@ -184,4 +184,4 @@ float4 main() : sv_target [test] draw quad -probe (0, 0) rgba(65504.0, 0, -65504.0, 0) +probe (0, 0) rgba(655.0, 0, -655.0, 0)