Repository navigation
d3d12_texture_uav_test: fill the tagged descriptor table for its bare .spv (GPU-TEXTURE-UAV-1D-REGRESSION) - #2261
CodingRule wants to merge 1 commit into
Conversation
… .spv (GPU-TEXTURE-UAV-1D-REGRESSION) Since 9f98dcc the translator's default is --descriptor-table tagged: a module reads the kind word next to each index and takes the array's fallback when its T# is not marked as bound there. The device fills that word only when a shader library's index says a module reads it; with no library it uses the plain layout. This test hands the device one .spv and no library, so every store of cs_texture_uav landed on the fallback and the first GPU case read back its seed (got 0x11, expected 0x3f9). The kind word is additive and a plain module never reads it, so the test asks for the tagged table unless LEONIDA_DESCRIPTOR_TABLE is set. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
|
Partial independent verification of head Windows 11 Pro, RTX 4070 SUPER (NVIDIA 621.01), MSVC 19.52.37029, RelWithDebInfo.
Diff read: the variable is set before the D3D12 device is created, which is where No game files used. AI-assisted (Claude Code). |
|
I ran the shader-backed NVIDIA check requested in the earlier review on a physical RTX 4090, Windows 11, driver 616.64, with LLVM 23.1.6. I applied the test-program change from
The plain control used a second validated module produced from the same synthetic input with AI-assisted hardware verification with OpenAI Codex (GPT-6). |
|
Additional independent hardware evidence for the historical head The unchanged baseline executable fails Report-only #2558 includes reproduction, source heads, complete-suite before/after counts, and coverage limits. Counts/controls independently checked against raw logs by a second agent. Synthetic inputs only, no game files or services. Existing fix remains yours. AI-assisted: OpenAI Codex. |
…U-RX9060XT-WIN) First record of an RX 9060 XT (RDNA4, GFX1200 / Navi 44): run_gpu_tests.py 247/268 passed, 19 skipped, 2 failed (cs_imgatomic_ext #1518, cs_texture_uav #2261) natively and with LEONIDA_W64_EMULATE=1; build.py and check.py with #1444; ctest with the four known failures and their pull requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue as: GPU-TEXTURE-UAV-1D-REGRESSION (#1608 (comment))
What and why
cs_texture_uavinscripts/run_gpu_tests.py(the D3D-78 fixture, run throughd3d12_texture_uav_test <spv>) fails onmainwherever the test program is built:The first GPU case reads back its seed: the dispatch stored nothing.
Cause, found by bisecting the translator against one fixed set of test programs (
ed94fbefgood,a73a57e13bad, first bad9f98dcc61):9f98dcc61made--descriptor-table taggedthe translator's default. A tagged module reads the kind word next to each table index and takes the array's fallback (index 0, where stores are dropped) when the word does not mark its T# as bound in that array.descriptor_table_census); with no library the layout is plain and the word stays 0 (d3d12_vulkan_device.cpp, "descriptor table: plain (all 0 modules)")..spvand no library. The sibling tests (d3d12_m4_compute,d3d12_buffer_uav, ...) load a folder withindex.json, which is why they were not affected, and ctest runs this one with--descriptors-only, which is why CI did not see it.It is the shader, not the program: yesterday's
d3d12_texture_uav_testfails with today's module, today's passes with yesterday's module.The fix is in the test: when it is given a shader and
LEONIDA_DESCRIPTOR_TABLEis not set, it asks for the tagged table. The kind word is additive and a plain module never reads it, so that suits a module of either translation; the variable still decides when someone sets it.One file, test only. I left the device's no-library default alone: whether a device with no index should fill the kind word is a runtime decision for whoever owns that contract, and this does not depend on it.
Tested
maina73a57e13,scripts\build_runtime.ps1(MSVC 14.44.35207, RelWithDebInfo), llvm-mc 21.1.8, SPIRV-Tools v2026.4.python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_texture_uavLEONIDA_W64_EMULATE=1LEONIDA_DESCRIPTOR_TABLE=plain(forced mismatch, to show the variable still decides)LEONIDA_DESCRIPTOR_TABLE=taggedAfter:
texture UAVs: 14 GPU cases (10 compared with WARP), format/range/refusal checks passed.ctest -R texture_uav(the--descriptors-onlymode, which this does not touch) passes.The records that list
cs_texture_uavas failed so far (#2204) say the test program was not built there; this is the failure a machine that does build it gets.GPUs tested: NVIDIA GeForce RTX 4090, driver 591.86, Vulkan 1.4.325, Windows 11 Pro build 26200
AI-assisted: yes (Claude Code found the failure, bisected it, wrote the change and ran the tests)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code