Repository navigation
Conversation
…#1269) The synthetic compile-time benchmark of xcl-dev#1269 needs console programs that anyone can build, CI included, without game data. This adds the generator it will measure: deterministic RDNA2 programs, assembled with rdna2::encode, from a seed and knobs for the number of operations, divergent ifs (v_cmp, s_and_saveexec, s_cbranch_execz) and how deep they nest, uniform loops (SGPR counter, backward s_cbranch_scc1) and how deep they nest, wave32 or wave64, the VGPR and SGPR pools, and the share of LDS and memory accesses. Knobs that would give more operations than asked for (fewer than two per loop level) are refused. Nothing is timed yet; that comes next, with DXC. The tests count what each knob does in the disassembly of the program, not in the generator: the operations, how deep the ifs and loops nest, that every s_cbranch_execz lands on its EXEC restore and every loop branch on the instruction after its counter is set, the EXEC instructions of each wave size, the LDS and memory shares, the highest VGPR. Every knob combination the tests use translates completely, structured and as the guarded block chain, with as many instructions as the disassembly. Negative control: ten mutations of the generator (seed ignored, loops not nested, loop and execz branch offsets off by one, wave32 using the 64-bit EXEC instructions, if depth ignored, VGPR pool one too large, LDS share ignored, operations miscounted, the operation-count check removed) each make at least one test fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-oom dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A generator of deterministic RDNA2 programs for the synthetic compile-time benchmark of xcl-dev#1269: no game data, so it runs anywhere, CI included. Test-only: one commit in
crates/xcl/tests/compile_bench/, nothing incrates/xcl/src. Nothing is timed yet; the DXC measurement is the next PR, stacked on this one.Part of xcl-dev#1269
What is in it
crates/xcl/tests/compile_bench/gen.rs:program(&Knobs)assembles a program withrdna2::encodefrom a seed and knobs: the number of operations, divergentifs (v_cmp→s_and_saveexec→s_cbranch_execz) and how deep they nest, uniform loops (SGPR counter, backwards_cbranch_scc1) and how deep they nest, wave32 or wave64, the VGPR and SGPR pools, and the share of LDS and memory accesses. Knobs that would give more operations than asked for are refused.crates/xcl/tests/compile_bench/main.rs: 7 tests, CPU only. They check in the disassembly, not in the generator: the operation count, how deep theifs and loops nest, where every branch lands, the EXEC instructions of each wave size, the LDS and memory shares and the VGPR pool; 24 knob combinations translate completely with structured control flow on and off.Tested
cargo test -p xcl --test compile_bench: 7 passed, 0 failed, 0 ignored.cargo test --workspace --no-fail-fast -- --test-threads=4on5ae62c5: 755 passed, 3 failed, 41 ignored (20 binaries); no SKIPPED tests. The failures areplaced_title_textures_share_vram_and_preserve_pixels("3D 64x64x64 4 mips: subresource 2 mismatch") and two tests that then fail on the lock it poisons; the first fails alone onmain930e8b4too (4 of 4 runs). The same failure (same message, RDNA2, same driver) is reported fixed by D3D12.X: map and unmap 3D texture mips separately xcl-dev/xcl#1028 on an RX 6600, RX 6750 XT and RX 6900 XT; D3D12.X: map and unmap 3D texture mips separately xcl-dev/xcl#1028 was not run here.execzbranch offsets off by one, wrong EXEC width,ifdepth ignored, VGPR pool too large, LDS share ignored, operations miscounted, the operation-count check removed); each makes at least one test fail.Regression run
crates/xcl/src.Not tested
scripts/smoke.ps1or any retail title (no game data here; the change does not touch the runtime).AI use
🤖 Generated with Claude Code
Mirror of xcl-dev#1763 (auto-synced, do not edit).