Repository navigation
Tests: exercise both BGRA formatted stores through the GPU runner - #1394
evilclanker9000 wants to merge 2 commits into
Conversation
dcastell1
left a comment
There was a problem hiding this comment.
Found one blocking problem: this branch does not pass the repo's own CPU suite.
python -I tests/test_shader_checks.py on 554b1d1 → Ran 40 tests, FAILED (failures=14); main (aae4d99) → Ran 35 tests, OK. The cause is the new 8-word cs_store expectation in runtime/test/shaders/check.py: test_shader_checks.py feeds cs_store a hard-coded line in run_checks() (out[0..7] = 1073774847 3758097407 1006649344 4008636142 1073757184 3154130944 0 0, i.e. the old six words plus 0 0), so cs_store now reports a mismatch and every test that asserts status == 0 from run_checks() fails (test_full_wave_checks_pass_with_expected_results, test_wave32_only_device_skips_full_wave_checks, test_emulated_wave64_runs_without_a_64_wide_subgroup, test_fmt_1010102_child_env_is_private, …).
Fix: update that line to ... 3154130944 1090486272 1072693248 (0x40FF8000 0x3FF00000), and the failure count goes to zero. tests/test_run_gpu_tests.py + tests/test_run_gpu_tests_paths.py are green (47 passed, 29 subtests), so it is only that fixture.
I could not run the GPU half here (the 5090 is compiling one of the two giant ScreenProbes modules), so the new BGRA words themselves are unverified by me.
|
Windows Runtime failed only d3d12_present at line 139, d.create(true). The Windows run on base c2967a5e has the identical single failure. #908 already makes that no-device branch return CTest's configured skip code. AI-assisted. |
|
Tested
That includes both BGRA stores. Toolchain: llvm-mc 21.1.8 (WSL), Vulkan SDK 1.4.363.0 / SPIRV-Tools v2026.4, MSVC 19.44. No game data used. |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass. |
Model the eight-word GPU dump independently so wave-size and error-reporting checks can exercise their intended paths after the fixture gained two BGRA stores.
#1394 added two words to CS_STORE (the BGRA formatted stores); the fake harness still printed the old six, so check.py counted cs_store as a mismatch and every total in Wave64Checks was one short. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
No game files. AI-assisted (Claude Code). |
…matted-stores # Conflicts: # tests/test_shader_checks.py
|
Tested 554b1d1 on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass. The PR's diff applied cleanly to
|
|
Closing this zero-diff PR after checking main at bb2e184. The BGRA store implementation landed through #1341 at dac5489. Main then merged the GPU-fixture commit 554b1d1 from this PR at 4d75d96. The maintainer updated the wave-check mock to use CS_STORE at bb2e184. The latest branch includes that version and has the same tree as main. On that integrated tree, all 42 shader-check tests passed. The normal cs_store runner translated and validated the shader, and read all eight expected words on RTX 5080 and integrated Radeon, including 0x40ff8000 and 0x3ff00000. AI-assisted. |
Claimed in the coordination issue as the SHADER-212 GPU fixture follow-up.
What and why
The production change from #1341 landed at dac5489. The extra test commit arrived after the merge and is absent from c2967a5. This patch adds two BGRA cases to the existing cs_store fixture, so the ordinary runner can verify both the 8/8/8/8 store and the packed, one-red-component 10/10/10/2 store on a GPU. The same shader also checks the paired RGBA views with identity selectors.
Tested
Run
python -I scripts/run_gpu_tests.py --filter cs_store --build <runtime-build>. One shader translated and passed spirv-val before and after. Using the pre-fix f85582e translator with the new fixture, the checker failed on the last two readback words, 400080ff and 000003ff. With the merged implementation on c2967a5, the same words were 40ff8000 and 3ff00000 on RTX 5080 (Windows 616.92) and AMD Radeon Graphics (32.0.21045.16010). All six preceding words matched on both runs. The check.py compute oracle also accepted all eight words on both adapters.Checklist
AI-assisted.