mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #2261] d3d12_texture_uav_test: fill the tagged descriptor table for its bare .spv (GPU-TEXTURE-UAV-1D-REGRESSION) #2264
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2264
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2261
Author: @CodingRule
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:texture-uav-test-tagged-table📝 Commits (1)
409da28d3d12_texture_uav_test: fill the tagged descriptor table for its bare .spv (GPU-TEXTURE-UAV-1D-REGRESSION)📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
runtime/test/d3d12_texture_uav_test.cpp(+11 -0)📄 Description
Claimed in the coordination issue as: GPU-TEXTURE-UAV-1D-REGRESSION (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190199537)
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.