Repository navigation
Conversation
The `title:` line of an xcl-smoke block printed the game folder's name, and folder names are whatever people called their copy, so PR descriptions ended up naming specific copies of a commercial game (xcl-dev#677). It now prints the first 8 hex digits of the SHA-256 of the folder name (trimmed, UTF-8). pr_check.py only compares the main and PR blocks' titles for equality, so the check is unchanged, and two different folders still get different titles. Existing blocks can be converted with the same function (Python: hashlib.sha256(name.strip().encode()).hexdigest()[:8]). -Title <label> prints a label of your choice instead. Control, format and line/paragraph separator characters and backticks are refused: pr_check.py splits lines with str.splitlines(), so a U+2028 in a label would otherwise add keys such as `commit:` to the block. scripts/smoke-title.tests.ps1 checks hashes of ASCII, accented, CJK and emoji names against Python's, a trailing backslash, -Title, and the refused labels, with a stand-in for xcl.exe. Fixes xcl-dev#677
…v#1307) The structured form wraps the items that follow a forward jump in a guard that lists every pending skip flag, and reopens it whenever the set changes. With many flags pending at once that grows with the square of the flags. Since b8b1f49 one compute program of the retail pack reaches it: 148 MB of HLSL from 334 KB of code (3 861 flags, guards of up to 597 terms, 99 MB in guard lines), against 14 MB as pc blocks. DXC on that fits the host's commit growing about 1 GB/s until it runs out, seen with b8b1f49 and not without it. Structured code longer than 128 bytes per byte of program is now translated as pc blocks. Over the whole pack (CPU-side translation of every program, macOS), only that program changes, to 13.8 MB. The next largest structured program is at 61 bytes per byte. Every other program comes out as it does on main, so b8b1f49's gain stays (1 670 -> 170 programs as pc blocks). oversized_structured_code_falls_back_to_pc_blocks: 200 conditional forward jumps whose targets all follow them, in order, cross the bound; 50 do not. 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
Scripts: smoke blocks name the game folder by a hash, not its name
The switch was read inside translate(), so it also overrode an explicit
Options { structured: true }: three tests that assert what the
structured form generates failed whenever a developer ran the suite
with it set (as I did: 3 of 843), with output that reads like a
regression in the translator rather than a configuration switch.
Read it in Options::default() (the runtime asks for the default), where
an explicit request then wins, and have the tests that check the
structured form ask for it outright.
Assisted-by: OpenCode (Gemini 4 Neon)
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.
The
XCL_RECOMP_NO_STRUCTURED=1debug switch was read insidetranslate()(recomp/mod.rs:1481), so it also overrode an explicitOptions { structured: true }. The tests that assert what the structured form generates therefore failed whenever a developer ran the suite with the switch set — with output that reads like a translator regression, not a configuration switch.This reads the switch in
Options::default()— which is what the runtime asks for — so an explicit request wins, and the tests that check the structured form ask for it outright (includingoversized_structured_code_falls_back_to_pc_blocks, from xcl-dev#1321, whose size bound is also about what the structured form generates).What is in it
crates/xcl/src/gpu/recomp/mod.rs:Default for OptionssetsstructuredfromXCL_RECOMP_NO_STRUCTURED;translateno longer reads the environment.crates/xcl/src/gpu/recomp/tests.rs:hlsl_is_generated_for_straight_line_and_branches,far_jumps_are_direct_branchesandoversized_structured_code_falls_back_to_pc_blockspassOptions { structured: true, ..Default::default() }(the loop test already did).Evidence (same machine,
cargo test -p xcl --lib -- --test-threads=4):XCL_RECOMP_NO_STRUCTURED=1on4178e88:840 passed; 3 failed; 22 ignored—far_jumps_are_direct_branches,hlsl_is_generated_for_straight_line_and_branches,jumps_to_outer_loop_heads_are_structurede9e94ce:843 passed; 0 failed; 22 ignored843 passed; 0 failed; 22 ignored— unchangedTested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 892 passed, 0 failed, 42 ignored (SKIPPED: 2no wave64; 1no heap windows; 1cannot disable the driver cache (Windows Developer Mode is required))Regression run
main (
e9e94ce, clean tree, no local changes):PR (
f46ebd6, clean tree, no local changes):Not tested
AI use
XCL_RECOMP_NO_STRUCTURED=1andXCL_CONSOLE_LISTS=1, found the switch overriding explicit requests, wrote the change, rebased ontoe9e94ce(where the newoversized_structured_code_falls_back_to_pc_blocksneeded the same explicit option) and confirmed both configurations pass, ran the test suite andscripts/smoke.ps1regression runs with Scripts: smoke blocks print the game folder's name xcl-dev/xcl#677's title hashing, and drafted this PR description.Mirror of xcl-dev#1810 (auto-synced, do not edit).