Repository navigation
Check two live mixed-type descriptor lookups in one translated pixel shader - #6866
kacper-serewis wants to merge 2 commits into
Conversation
|
Tested Both filtered fixtures passed on Linux. Three shaders passed SPIR-V validation. The mixed draw and the draw with the two descriptor keys exchanged each matched all 4,096 pixels. The single-descriptor SINT, UINT and miss cases also passed. I tested whether changing just the second lookup leaves the first lookup intact. In a temporary harness build I copied the signed texture key into both heap slots, kept both views registered, and used the original mixed shader and coordinates. All 4,096 pixels returned RGBA AI-assisted verification. |
|
Tested
This adds an AMD/RDNA2 run to the existing RTX 5070 result. No game files involved. AI-assisted. |
|
Tested
Synthetic fixtures only. AI-assisted with Codex. |
|
Verified at aff46ac merged with current main 023952c: both harness scripts compile, the tempfile/os imports and the run_readback-to-run cwd kwarg chain are consistent, and the new modes are wired into both check.py's results and run_gpu_tests' DRAWN_TEST path. The two .asm fixtures are hand-written with hand-derived expected words — clean under the game-data rule. The vk_texture_test readback paths need a GPU and were not exercised here, so the CTest jobs are the real gate. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
shayderrr
left a comment
There was a problem hiding this comment.
Summary: Adds table-fetch coverage for descriptor T# key selection. runtime/test/shaders/check.py gains a cwd parameter on run() and table_fetch_test(), with two new autonomous shaders ps_table_fetch.asm and ps_table_fetch_mixed.asm. runtime/test/vk_texture_test.cpp gains fetch-sint, fetch-uint, fetch-miss, fetch-mixed and fetch-mixed-swap modes: they register signed, unsigned and float T# keys in the descriptor hash table, exchange keys for the alias case, build a magenta fallback view and assert all 4096 RGBA32F pixels match exact expected values. scripts/run_gpu_tests.py imports and dispatches both new checks.
Why merge: Directly verifies signed, unsigned and float descriptor-key fetch selection plus miss fallback on GPU, closing a real correctness gap.
Verdict: Approve
|
Summary: Adds table-fetch coverage for descriptor T# key selection. runtime/test/shaders/check.py gains a cwd parameter on run() and table_fetch_test(), with two new autonomous shaders ps_table_fetch.asm and ps_table_fetch_mixed.asm. runtime/test/vk_texture_test.cpp gains fetch-sint, fetch-uint, fetch-miss, fetch-mixed and fetch-mixed-swap modes: they register signed, unsigned and float T# keys in the descriptor hash table, exchange keys for the alias case, build a magenta fallback view and assert all 4096 RGBA32F pixels match exact expected values. scripts/run_gpu_tests.py imports and dispatches both new checks. Why merge: Directly verifies signed, unsigned and float descriptor-key fetch selection plus miss fallback on GPU, closing a real correctness gap. Verdict: Approve |
|
AI-assisted GPU verification of
Each filtered run translated and validated all three shader modules. The fixtures were synthetic. |
|
Tested Built Result:
(Synthetic repo tests only; no game data. AI-assisted.) |
|
Tested MSVC 19.44.35230, Python 3.12.10, llvm-mc 23.1.6, SPIRV-Tools 2026.4, Vulkan SDK 1.4.363.0. The six Vulkan harnesses were rebuilt from this exact PR head.
Synthetic fixtures only. AI-assisted verification and follow-up with Codex. |
|
Tested Built the Vulkan test programs with MSVC 19.44 and ran
Synthetic fixtures only. No game files used. AI-assisted. |
TEST-PS-MIXED-SLOTS claim
Depends on: #6833
The fixed synthetic pixel shader reads two eight-word T# keys at heap offsets 256 and 288. The production DescriptorTable at set 0 binding 2 maps them to elements 1 and 2 of the same sampled-image binding 0. The FORMAT in each key selects the matching numeric alias. #6833 tests one live view per draw. This fixture exercises two live views and exports both results in one draw.
The mip-zero reads address (1,2) and (3,4). The SINT and SFLOAT images and the fallback are 8×8. Exchanging the entire keys in the heap preserves valid view types and changes every output channel. The integer view sign extends two bytes and the float view widens two half floats before their word values are converted for readback.
Windows, RTX 5070, driver 616.56, LLVM-MinGW and WSL llvm-mc-21. Ran scripts/run_gpu_tests.py with --require-pass and filters ps_table_fetch and ps_texture_sample. All shaders translated and passed spirv-val. All 4096 pixels matched in each mixed draw, the existing SINT/UINT/miss checks passed, and both gradient cases passed.
The seven cached deferred-depth identities still need independent bounds for every reachable resource and physical-address access. This result covers synthetic data only. Zero private draws. AI-assisted.