Scripts: skip BVH shaders without an embedded root signature #1719
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1729"
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?
Imported from ivall/xcl. Originally posted by jeroenhaentjens on 2026-11-24T19:59:54Z.
The BVH shader extractor can write valid DXBC files with no RTS0 chunk. The layout checker passed
Noneto the root-signature parser and stopped at the first such file. It now reports the file and continues with the rest of the directory.What is in it
scripts/re/check_layout.py. Add a command-line regression test and document the behavior.Tested
4a16b1f6438ce81db295e86c0fd95566d4d13c96and GitHub head7992dff9cf15eb62794c1521c24df2d46e0ed968have the same Git tree and parent. The runs used the local commit.cargo build --workspace --lockedpassed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4reported 863 passed, 0 failed, 42 ignored.XCL_ADAPTER=nvidiaandXCL_HEAP_WINDOWS=1. The bundled title tests passed.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.python -B -m unittest discover -s scripts -p 'test_*.py'passed all 17 tests. The new test failed before the fix withTypeErrorand now passes. Also checked with DXC-compiled compute shaders, including a directory with one rootless shader and one shader with an embedded root signature.Regression run
Not tested
XCL_SAMPLE_*inputs were supplied.AI use
gpt-6.2-sol) investigated, wrote the change and regression test, ran the tests and drafted this description.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:37:44Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T01:06:08Z.
On
7992dff9cf15eb62794c1521c24df2d46e0ed968I compiled a tiny compute shader with and without an embedded root signature using DXC 1.9.2609.5. I exercised signature versions 1.0 and 1.1 and both container orders. For each of the four inputs I ranbvhb_shaders.pyon a synthetic binary containing the two containers, thencheck_layout.pyon its output directory. Both extracted files matched their compiler output by SHA-256. The checker reported the rootless file, passed only the rooted file to the native disassembler stand-in, and counted its one on-boundary load.Mixed-directory regression and file-handle fix. The in-process regression exposed a Python
ResourceWarningfrom reading shader files without closing them explicitly. With the context manager and fixture in place,python -B -W always::ResourceWarning -m unittest discover -s scripts -p "test_*.py"passed 18/18 without a resource warning.Windows 11, Core i7-13700, Python 3.14.3. The containers and root signatures came from DXC; the scalar listing came from a stand-in. No Xbox builder DLL, retail asset, GPU execution or real XCL disassembly. OpenAI Codex (GPT-6) wrote the fixtures and ran the tests.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:47Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:36:19Z.
Triage (#1607) – head
7992dffNo merged change covers this: main's
scripts/re/check_layout.pystill callslayout(rs)withrs = Nonefor a shader without RTS0 and crashes instruct.unpack_from.#1196 and #2151 also skip shaders without RTS0 (silently,
if not rs: continue/if rs is None: continue) as part of wider CLI/validation rewrites of the same script; this PR is the minimal fix and also reports the skipped file. Whichever lands first makes the other's guard redundant.The test builds a valid one-part DXBC container and checks the output lines; no problems found in the diff. The README note is optional for a script fix.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.