diff options
| author | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 13:10:05 +0100 |
|---|---|---|
| committer | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 13:10:05 +0100 |
| commit | e4f10932786aafa56d433ea1548929947dc8d5b1 (patch) | |
| tree | d7dec4e43c95475525f7a417bd52daadf65200b5 /scripts/run_gpu_tests.py | |
| parent | 2e7d374cb4d2081a3c89cf333cf8335f158a6062 (diff) | |
M2 test: sampler control (ps_m2_uoff, WRAP left / CLAMP right, CPU-predicted pixels)
With U in range, a POINT/CLAMP sampler, a POINT/WRAP one and the fallback sampler give the same pixels, so the
first pass cannot tell which sampler a draw used. The control adds 1 to U before image_sample and picks the sampler
per half through the sampler table: 4096 of 4096 pixels match the CPU prediction and 1536 differ from the plain pass.
Sampler control suggested and measured by @Vonsek in #1489.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index fa065eed7..a6beb6fec 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -536,7 +536,7 @@ def check_clip_half(raw_path: str, want_b: float, want_a: float) -> tuple[bool, | |||
| 536 | # arguments and code base). They are still assembled and translated here, so a translator regression shows, but no | 536 | # arguments and code base). They are still assembled and translated here, so a translator regression shows, but no |
| 537 | # checker runs them: the test program that owns them judges them. | 537 | # checker runs them: the test program that owns them judges them. |
| 538 | OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test", | 538 | OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test", |
| 539 | "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test"} | 539 | "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test", "ps_m2_uoff": "d3d12_m2_textured_test"} |
| 540 | 540 | ||
| 541 | 541 | ||
| 542 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). | 542 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). |