Skip to content

[upstream #1729] Scripts: skip BVH shaders without an embedded root signature - #399

Draft
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1729
Draft

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1729

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

The BVH shader extractor can write valid DXBC files with no RTS0 chunk. The layout checker passed None to 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

  • Skip files with no RTS0 chunk in scripts/re/check_layout.py. Add a command-line regression test and document the behavior.

Tested

  • Windows 11 Pro 26200, Intel i7-9750H, 32 GB RAM, NVIDIA Quadro RTX 3000 (driver 32.0.15.9706), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2609.5, debug builds without debug symbols or incremental compilation.
  • Local commit 4a16b1f6438ce81db295e86c0fd95566d4d13c96 and GitHub head 7992dff9cf15eb62794c1521c24df2d46e0ed968 have the same Git tree and parent. The runs used the local commit.
  • cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 reported 863 passed, 0 failed, 42 ignored. XCL_ADAPTER=nvidia and XCL_HEAP_WINDOWS=1. The bundled title tests passed.
  • Two wave64 skips counted as passes by Cargo: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_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 with TypeError and 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

  • Script, test and documentation change.

Not tested

  • Native wave64 hardware, the 42 explicitly ignored tests and real game/SDK data. No XCL_SAMPLE_* inputs were supplied.

AI use

  • Codex (gpt-6.2-sol) investigated, wrote the change and regression test, ran the tests and drafted this description.

Mirror of xcl-dev#1729 (auto-synced, do not edit).

The extractor can write DXBC containers without RTS0. Report those files and continue checking the remaining inputs. Exercise two rootless containers in the command-line regression test.

Assisted-by: Codex (gpt-6.2-sol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants