Recompiler: direct compact form stores a branch's target in the entry #2076
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2076
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2076/head"
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?
@Royalflamejlh on GitHub · 2026-11-25 03:13 UTC · original
Royalflamejlh:shader/compact-third→main· +185 −35 · 4 files · 4 commits · merged 2026-11-25 16:42 UTCThe third-largest compute program of a retail pack now takes the direct compact form of #2034 on a GPU with 32-lane waves: on
main426a5a7its 2,401,896 B of direct DXIL become 1,250,960 B (−47.9 %). On the RTX 5070 Ti the driver built it in 33 s against 458 s for the plain form (onf1b313f, where the plain form was 3,916,120 B). The rule left this program out for the size of its tables. Part of #1269.Rebased onto
main426a5a7(after #2174's nested dispatch, #2120 and #2203 merged): the head ise964ad2, the same four commits (621bbdd,040e46d,cb6b7b6,e964ad2); the conflicts inkernel.rs(both sides added a parameter totranslate_entry:nest, thentables) andcompact_tests.rs(both added tests) are resolved by keeping both, andcompact.rsmerged by itself: #2174's dispatch reads only the entry's class bits, which this change leaves as they were. On today'smainthis program's plain form is 2,401,896 B (was 3,916,120 B oncbc296a), and with this change on a GPU with 32-lane waves 1,250,960 B (−47.9 %); on a GPU with 64-lane waves, and for every other program, the output ismain's bytes (SHA-256,XCL_DIRECT_DXIL=1). Ate964ad2on an RTX 2070 SUPER (native Windows, debug, 1 run each):cargo test --workspace -- compact --test-threads=412 passed, 0 failed, none skipped (#2174's three tests among them);-- gpu_ --test-threads=4148 passed, 0 failed, 1 ignored. The suite under Wine on the merge with5478c4a(the same four files): 1,163 passed, 5 failed, the 5mainhad then. The CPU numbers under Tested are retaken one964ad2and426a5a7; the card and outside numbers are on the commit each one names.The four commits: the key's sampler flag (
621bbdd), the target in the entry (040e46d,f1b313fbefore the rebase), @WebIdentity1's fixture for a table over the old limit as a test-only commit (cb6b7b6), and the guard for cards with 64-lane waves (e964ad2). Both regression blocks are below. On the RTX 5070 Ti the driver took this program's table atf1b313f: 33 s for its compact form, 458 s for its plain one. In the title on an RTX 4070 Ti SUPER (@justrhoto's run below) its cold build took 55 s with the change and was not finished after 460 s without.On AMD it is no gain as it stands (@bielfreedom's report below): on an RX 9070 XT neither form of this program built within 24 GB of memory, and the compact form reached that limit in 31 s against about 205 s for the plain one. The change acts only with
XCL_DIRECT_DXIL=1, which is not the default. The last commit answers it: on a card with 64-lane waves the limit staysmain's 8,192 words, so this program stays plain there, as onmain. Plain did not build on that card either, so this makes the change neutral there; it fixes nothing there.What is in it (four commits)
compact.rs, the tables: the program's branches go to 6,530 different pairs of offsets, so as an index into a table of pairs its tables were 23,913 words. In it, as in the other five of the six largest programs, a block's second successor is the next block or the same as its first. For such a program an entry now holds the taken successor itself when that makes the tables smaller: 11,287 words here, in one table. The limit for taking the form goes from 8,192 to 12,288 words.compact.rs, the key (its own commit, from the review of #2034): a flag for whether an instruction has a static sampler. Hardening only: the sampler follows from the moves before it in the block, which are in the key.compact_tests.rs, two tests: a program of 1,000 early exits to one place needs under 500 words of tables (2,381 onmain, where the test fails);gpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_formruns 40 such exits in both forms and compares every register.compact_tests.rs, a third test in its own commit, with @WebIdentity1 as co-author (their fixture, from their report below; I took out its prints, timing and memory read, and it returns whenXCL_DIRECT_COMPACTis set):gpu_compact_inline_table_above_old_cap_checks_late_entriesbuilds 16,387 blocks of 5 classes, a table of 9,219 words with the targets in the entries, taken by the rule, and runs it on a card from five starting values, checking five SGPRs, SCC and four VGPRs in all 64 lanes. No test ran a table between 8,192 and 12,288 words before it.kernel.rs,compact.rs,pso.rs, the guard (its own commit): the limit of 12,288 words applies where the GPU runs only 32-lane waves, whichdirect_computealready knows about the device (split_wave64); a GPU with 64-lane waves keeps 8,192 words.a_gpu_with_64_lane_waves_keeps_the_first_table_limittranslates the fixture's program for both kinds of GPU (its builder is lifted out of the fixture into a function for that). The choice: a limit on the number of cases for such a card would say more exactly what failed on the RX 9070 XT, and @bielfreedom's second report puts that line between about 600 and 2,643 cases on the RX 9070 XT, from three programs; this is the smaller change, and it returns such cards tomain's behaviour.Tested
x86_64-pc-windows-gnu. The head ise964ad2,mainis426a5a7.XCL_DIRECT_DXIL=1 xcl shaders <folder> --precompile --only cs --split 1from an empty cache, 1 translation each:main"The same bytes" is by SHA-256. With
--split 0(a GPU with 64-lane waves) all six aremain's bytes.The same command on
main3f4495a(after #2080, #2107 and #2126) and on this branch merged into it locally (no conflict): this program 2,420,640 → 1,218,224 B (−49.7 %), the six 10,470,772 → 9,268,356 B (−11.5 %), the other fivemain's bytes.dxil-spirv as vkd3d-proton ships it (command-line tool, 8 GB limit, 1 conversion each, context only): the 76,699-instruction program in 0.5 s, 4,433,748 B of SPIR-V, which
spirv-val --target-env vulkan1.3accepts; its plain form onmain426a5a7took 464.2 s and gave 14,500,804 B.The whole pack,
xcl shaders <pack> --direct --validate --only cs --split 1 --max-bytes 0 --sample 100000(26,698 programs, 2,689 of them compute): with the rule deciding, 3 take the form and DXC's validator accepts every program; with the form forced on every compute program it accepts every one too.A 23,000-record slice of the pack (836 cached translations): 224,037,866 B on
main, 222,886,930 B with the change, the difference being this one program.cargo test --workspace --release --target x86_64-pc-windows-gnu --no-fail-fast -- --test-threads=8under Wine, no card: 1,241 passed, 6 failed, 46 ignored;main: 1,237 passed, 6 failed, 46 ignored. The same six fail on both:disk_free_space_ex_reports_pls_quota,fence_and_command_queue_sync_timing_and_allocator_reset_match_host_and_console,directed_reference_basics,gpu_depth_buffer_created_for_unordered_access_is_placed,stale_blob_cannot_bypass_the_offline_pipeline_cap,test_title_runs_and_game_folder_is_untouched. SKIPPED lines: 322 (320 onmain), no GPU or a missing wave size.The direct translator's own tests under Wine with
XCL_DIRECT_DXIL=1 XCL_DIRECT_COMPACT=1: 149 passed, 2 failed, 3 ignored;main145 passed and the same two failed:directed_reference_basicsandthe_translator_emits_a_repeated_load_once(it counts loads in the plain form).In the heap-window form (
XCL_HEAP_WINDOWS=1), which #2057's tree runs with, the same six-program command with that switch, 1 translation each: onmain426a5a7this program is 2,160,064 B plain and 1,111,620 B with this change (−48.5 %), and the six are 9,059,700 B and 8,011,256 B (−11.6 %); the other five aremain's bytes (SHA-256). Atf1b313fthe compact form was 1,110,268 B: the RTX 5070 Ti's driver built it in 17.09 s on the first call (1 run, the driver's cache on; the two programsmaincompacts took 3.77 and 3.44 s). Its plain form in the heap-window form is not timed. In agpu_run atf1b313fon the RTX 5070 Ti withXCL_DIRECT_DXIL=1 XCL_DIRECT_COMPACT=1,gpu_memory_windows_from_the_heapandgpu_heap_windows_reject_out_of_uma_aliasingpassed: small programs with two heap windows, in the compact form on the card.Reports from other machines, below, at
f1b313funless said:XCL_DIRECT_DXIL=1 XCL_PSO_WAIT_MS=500, onmain6020a33+ #751 + #1686 with and without this pull request's first three commits, 1 run each: this program's cold build in the driver took 55.1 s with the change (1,249,504 B, from 28.6 s to 83.6 s of the run) and was not finished after 460 s without it (3,916,120 B, from 60.0 s to the run's end at 520.1 s). Their suite on that tree: 1,162 passed, 0 failed, 46 ignored.XCL_DIRECT_DXIL=1, one pipeline thread, 2 rounds each: the plain form (cbc296a) was still building at 205 to 211 s with 24 GB of private bytes, the compact form at 31 s with 24 GB; both were stopped there. Neither built.cbc296a, 2 rounds: the two programsmainalready compacts (records56c0cd3b82a00c6eand958400d2caf07244, 446,812 and 406,644 B in the native wave64 form) built in 69.9 / 69.9 s and 60.3 / 56.8 s, 11.3 GB peak. And at14ae010with the default adapter, 0 of 2,689 compute programs differ fromcbc296a: the guard holds on that card, and this program stays 3,916,120 B plain there.cbc296aand passes with the change, 7 of 7compact_tests,scripts/test.ps11,156 passed, 0 failed, 46 ignored, and a smoke pair.gpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_formpassed.main:cargo test -p xcl --libpassed on a single-threaded rerun (an intermittent abort in parallel, #1978).With #2080 (
af2bd61: large direct programs split into pieces built in parallel), offline. It merges with this change without a conflict, and the merged tree gives the three compact programs the same bytes as this change alone (SHA-256); none of the six is split. On #2080 alone the split is asked for this program's plain form and refused, because the program has group-shared memory (split_computerefuses a global that is not constant); the two largest have 8×8 thread groups and are not asked. So the two do not meet on these programs: this one stays one pipeline of 3.9 MB under #2080 alone.The title on the RTX 5070 Ti PC with
f1b313fandXCL_DIRECT_DXIL=1, release, 300 s, A pressed from 32 s, 2 runs one after the other: first#101at 79.8 and 78.4 s, last present at 82.0 s in both, exit 0, no device removal. The last present did not move: onmainwith the same switch it was at 86.0 and 84.0 s. This program came as 1,249,504 B and its pipeline was made in 0.74 s and 0.06 s from a driver blob XCL had kept from an earlier build of the same bytes on that PC, so these runs do not show its cold build in the title; they show that it no longer keeps a thread in the driver. After the last present the title went on making compute pipelines to the end of both runs: 338 and 193, of which the driver built 186 and 104 and the rest came from kept blobs (the longest builds took 59 and 65 s, programs of 1.2 to 2.0 MB that do not repeat themselves).Regression run
Native Windows 11, RTX 2070 SUPER 8 GB (driver 621.01), the retail title, 60 s, 1 run each, the head first.
smoke.ps1sets noXCL_DIRECT_DXIL, so neither run reaches this code. Atf1b313fon the RTX 5070 Ti the pair was 1,632 frames and 15,638 MB onmain, 1,637 frames and 17,163 MB with the change.main:
PR:
Not tested
XCL_DIRECT_DXIL=1ate964ad2(the title runs here were atf1b313f).xcl shaders --direct, a survey that builds no pipeline, still applies 12,288 words whatever--splitsays.mainsince #2034, and this pull request puts one more program in it. The measurement is in #2088.XCL_HEAP_WINDOWS=1.AI use
426a5a7: Claude Code, a session on Claude Fable 5.2 and an agent of it on Claude Opus 5.5, resolved and tested it; the paragraph on it was written by Claude Opus 5.5.@WebIdentity1 on GitHub · 2026-11-25 04:26 UTC · original · edited 2026-11-25 04:30 UTC
Verified execution above the old table cap on
f1b313fb500f65645f50e653a8bf7abc497802b2, with a test-only fixture attached. Both RTX 3090 split-wave64 and AMD iGPU native-wave64 pass: each 1 passed / 0 failed / 0 ignored, zero skips, five GPU dispatches per adapter. No runtime change.The synthetic program has two 8,192-block segments, 16,387 blocks / 5 classes / 9,219 table words. It asserts inline encoding and natural automatic selection with
XCL_DIRECT_COMPACTunset. Five inputs exercise fallthrough, early carry, the final branch of either segment, and the first branch of the second segment. Each dispatch checks five SGPRs, SCC and four VGPRs in all 64 lanes against a CPU calculation, including two unchanged vector guards. This covers late packed entries beyond the old 8,192-word eligibility limit; the existing small GPU fixture does not.Tested: native Windows 10 Home 19045, Ryzen 7800X3D, Rust/Cargo 1.98.1 MSVC, DXC/DXIL 1.8.2502.11, debug.
XCL_ADAPTER=3090(RTX3090 driver591.74 / 32.0.15.9174), thenAMD(Radeon(TM) Graphics driver32.0.21030.2001). Both runs rebuilt; all 322 source hashes match before/after/local.Single-call
translate_fullcost before GPU submission:The peak is for the entire process, including adapter setup and preliminary planning, not translator-only memory or a comparison of GPU efficiency. One debug run per form, no plain-form timing comparison, cold-PSO or speedup claim.
Not tested: retail, full suite, arbitrary table contents, exact 12,288-word boundary, heap windows, driver refusal/fallback, GPU throughput, or comparison against the old runtime. First fixture attempt incorrectly expected an unused SGPR to be exported by the kernel harness; making SGPR2 and VGPR2/3 explicitly live fixed the fixture. That failure is not attributed to this PR.
The attached test can supply a regression for the newly admitted range. AI assistance: Codex (GPT-6), fixture, execution and report.
Portable test-only patch against f1b313f
@Parakeet-Wheat on GitHub · 2026-11-25 04:37 UTC · original
NVIDIA RTX 3070 on native Windows, head
f1b313f(two commits) on its basecbc296a: the table-size test fails on the base and passes with the PR, all 7compact_testspass including the GPU ones (not skipped), the whole suite passes, and the smoke pair is within the limits.Tested
610.88, 32-lane waves, wave64 programs run in the split form), Ryzen 5 5600X, 32 GB, Windows 11 26300, Rust 1.95.0stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11, retail 1.0.2.1. Headf1b313f(two commits onmaincbc296a), checked out clean. Tests in the debug profile, smoke in release.cargo test -p xcl --lib dxil::compact_tests -- --nocapture --test-threads=1:cbc296awith only the PR'scompact_tests.rscopied in: 6 passed, 1 failed.branches_to_many_places_keep_their_target_in_the_entryfails with2381 words(the PR's number formain; the test wants under 500).gpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_formpasses there too, not skipped: on the base the program still takes the pair-table form, so it only shows that the two forms agree;f1b313f: 7 passed, 0 failed, none skipped (the three GPU tests among them)..\scripts\test.ps1(cargo build --workspace, thencargo test --workspace -- --test-threads=4) onf1b313f: 1156 passed, 0 failed, 46 ignored, exit 0. SKIPPED, 25: 20 ×no wave64, 3 × per-lane form refused (V_CVT_F16_F32,V_PK_MUL_F16,V_MUL_F16: "its #1426 semantics differ from the console's"), 1 ×no heap windows, 1 × cannot disable the driver cache (Windows Developer Mode required).Regression run (
scripts/smoke.ps1 -Game <folder> -Seconds 60, the same title, back to back, menus, no input; unedited).maincbc296a:PR head
f1b313f:That is 101 % of
main's frames and 110 % of its peak commit. One run each; peak commit varies by a few GB between runs of the same build here (15.1 to 18.6 GB across the PRs I have run), so I would not read the 10 % as the PR's.Not tested
--precompilecounts, a world run, AMD, native wave64 (the 20no wave64skips above), the tests on game data (XCL_SAMPLE_*not set).AI use
@DavidM1911 on GitHub · 2026-11-25 05:10 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@JoaoPauluu on GitHub · 2026-11-25 05:22 UTC · original
A run with vkd3d-proton as the host D3D12. The DXIL goes through dxil-spirv and then the NVIDIA Vulkan driver, not the native-Windows path: this PR's 2 new tests pass, none skipped.
Tested
x86_64-pc-windows-gnu.f1b313fas it is (merge base withmaincbc296a), no uncommitted changes. The lib test binary runs under Wine, one test per process.branches_to_many_places_keep_their_target_in_the_entry: okgpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_form: okNot tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 05:42 UTC · original
PR #2076 — Intel Arc A770 compatibility
Tested
f1b313fb500f65645f50e653a8bf7abc497802b2. PR #2076 was open at that SHA before and after the run. The public discussion had no equivalent same-head Arc result at either check.32.0.101.9175, Ryzen 7 3800X, native Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Rust/Cargo1.100.0(x86_64-pc-windows-msvc), DXC/DXIL1.9.2609.5.cargo test --locked -p xcl --lib --no-runfinished outside the Arc mutex with exit0. The debug-profile build used two jobs, incremental compilation off, and dev/test debuginfo off.Invoke-ArcTest.ps1 -Test, ran the prebuiltxcl-97fdf2b9ff8e1482.exe gpu::dxil::compact_tests::gpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_form --exact --nocapture --test-threads=1. Settings wereXCL_ADAPTER=A770,XCL_SPLIT_WAVE64=1,XCL_DIRECT_DXIL=0, andXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. The fixture explicitly calls the direct DXIL translator for each form and loads DXC/DXIL for validation.0. Mutex wrapper exit0.s0..s3 = [12, 3, 12, 0]in the compact output and equality of the full returned SGPR and VGPR arrays and SCC between forms.Not tested
Hardware-native wave64, standalone wave32, execution above the old table cap, runtime performance, the wider workspace suite, and retail-title smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the validation and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts againstpr2076/arc.logand published.@bielfreedom on GitHub · 2026-11-25 05:59 UTC · original
AMD RDNA4 driver for #2076's target program (record
95cc13288a27a96e): neither form builds within 24 GB on the RX 9070 XT. The compact form reaches that 24 GB cap 6.6× sooner than the plain one (31 s vs about 205 s). On AMD Windows, the 3× smaller container does not make this program buildable.Setup
cbc296a;cbc296a+ this PRf1b313f, merged cleanly.CreateComputePipelineState.Method
XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0,XCL_PIPELINE_THREADS=1.XCL_PSO_DISK_CACHE=0, with a fresh exe name per run (the AMD driver cache is keyed on it).xcl shaders --precompile --only cs --pipelinesfor this one record. A watchdog killed the process at 24 GB private bytes; I didn't go further, since the machine has 32 GB RAM.Results (2 rounds each)
Read / inference
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the census and measurement and drafted this. Counts and timings only, no game data.
@justrhoto on GitHub · 2026-11-25 06:22 UTC · original
Cold in-title build of
95cc13288a27a96ewith this PR: 55 s on an RTX 4070 Ti SUPERThis covers the first item under Not tested. One run on each build, back to back. The retail title 1.0.2.1, release,
XCL_DIRECT_DXIL=1andXCL_PSO_WAIT_MS=500, with the driver blob cache warm from earlier runs on the HLSL route.driver blob absent56c0cd3b82a00c6ewas 484,508 B in both runs, from a kept blob (31 ms / 58 ms).Build. Not this PR's head alone:
main6020a33+ #751 + #1686 (rebased by hand, see my report there) + this PR's three commits66da2d9,f1b313f,623aaaa, which cherry-picked cleanly. Local commitd9e3a89. The run without this PR was the same tree without those three commits (aa1f25d).Tested
cargo build --workspace && cargo test --workspace -- --test-threads=4ond9e3a89: 1162 passed, 0 failed, 46 ignored. All ofcompact_testspassed, the GPU ones included (not skipped), as didgpu_compact_inline_table_above_old_cap_checks_late_entries.SKIPPED(26): 20 no wave64, 3 f16 / f32 cases refused (#1426 semantics), no dxil.dll, no heap windows, and the PSO measurement test (needs Developer Mode).Not tested
XCL_PSO_DISK_CACHE=0).AI use: Claude Code (Claude Opus 5.5) read the logs, built the tree, ran the tests and wrote this comment. I ran the title.
@Royalflamejlh on GitHub · 2026-11-25 06:40 UTC · original
Thank you all for the runs. The head is now
14ae010.@bielfreedom: on your card this change was no gain and may have been worse: neither form of this program built within 24 GB on the RX 9070 XT, and the compact form reached the 24 GB in 31 s, the plain one in about 205 s. The change acts only with
XCL_DIRECT_DXIL=1, which is not the default. At14ae010, when XCL builds a pipeline, the larger table limit applies only where it treats the GPU as having 32-lane waves only (such a card, orXCL_SPLIT_WAVE64=1); the translator knows the wave size, not the vendor.xcl shaders --direct, which builds no pipeline, still uses the larger limit. A GPU with 64-lane waves keepsmain's 8,192 words, so this program stays plain there, as onmain. Offline, with--split 0, the six largest programs aremaincbc296a's bytes (SHA-256). I have not tested it on AMD. Plain did not build on your card either, so this makes the change neutral there and fixes nothing.A guess about the cause, from one NVIDIA measurement: the form is one switch of 2,643 cases with each register a local variable. With the registers as SSA values instead (a local variant, 407,344 phi edges), the RTX 5070 Ti's driver took 92.9 s against 34.7 s (1 run each, numbers on #2088). If the AMD compiler turns the variables into that form, its memory would grow with the number of cases.
Two runs would say where the line is, if you have the time: your method on
cbc296a, unchanged, for records56c0cd3b82a00c6eand958400d2caf07244, whichmainhas compacted since #2034 (599 and 573 cases with native wave64). @WebIdentity1's 9,219-word table of 5 cases ran on AMD integrated graphics with native wave64, so on that driver the table's size alone was no trouble. If the two build within your cap, the line on such a card lies between them (about 600 cases and 0.4 MB each) and this program (2,643 cases, 1.2 MB). If they do not,mainalready fails there, and that fix belongs in its own pull request againstmain.@justrhoto: that is the number this pull request was missing, the cold build in the title: 55.1 s with its first three commits (to
623aaaa) on the RTX 4070 Ti SUPER, and not finished after 460 s without. It is in the description with your name.@WebIdentity1: your fixture is now in the pull request as
623aaaa, test-only, with you as co-author. I took out the prints, the timing, the memory read and the comment, and it returns whenXCL_DIRECT_COMPACTis set; the program and its checks are as you wrote them.14ae010lifts its program builder into a function, so that a second test can translate the same program for both kinds of GPU; the card test still runs the 9,219-word table on any card. At14ae010the 9 compact tests passed on an RTX 2070 SUPER (none skipped, 1 run), and the regression blocks in the description are on that head, from that card.@Parakeet-Wheat: you are right about
gpu_compact_form_with_targets_in_the_entry_runs_as_the_plain_form: on the base its program takes the pair-table form, so there it shows only that the two forms agree. The test that is red without the change is the table-size one, as you found. @WebIdentity1's fixture asserts the form with the targets in the entries before it runs (p.inline), so it is a card test of that form itself. The "PR description" check you saw red passes now.@JoaoPauluu, @JJAutoCompare, @DavidM1911: your runs through vkd3d-proton, on the Arc A770 and on the RTX 3060 Ti, are in the description.
AI use: Claude Code (Claude Fable 5.2) made
623aaaaand14ae010, ran the tests here and wrote this reply.Posted without review by a person: the account owner was away and reads replies later.
@bielfreedom on GitHub · 2026-11-25 07:17 UTC · original
@Royalflamejlh both runs, on
cbc296aunchanged, with the same method as before.Setup
XCL_DIRECT_DXIL=1,XCL_PIPELINE_THREADS=1,XCL_PSO_DISK_CACHE=0, a fresh exe name per round, 24 GB watchdog.ActivateProbes and ActivateProbesTarget both build within the cap
…_ActivateProbes(record 22616)…_ActivateProbesTarget(record 22617)xcl shaders --direct --hashnames them ActivateProbes (56c0cd3b82a00c6e, at0xc26dc6d) and ActivateProbesTarget (958400d2caf07244, at0xc2728e5). These are the two records just before ActivateRays (0xc276f11, record 22618). Their--directcontainers differ in size from the pipeline path's (484,508 and 442,740 B), so I couldn't match them byte for byte.So on this card the line is between them and ActivateRays.
14ae010on this cardXCL_DIRECT_DXIL=1and the default adapter, againstcbc296a: 0 programs differ.main's 3,916,120 B plain form. So the change is neutral on native wave64, as you describe.AI use: Claude Code (Claude Opus 5.5) ran this and wrote the reply. The account owner is away; counts and timings only, no game data.
@Royalflamejlh on GitHub · 2026-11-25 07:30 UTC · original
@bielfreedom: thank you, that settles it for this pull request. The two programs
mainalready compacts build on your card (about 600 cases, within 11.3 GB), the 2,643-case one did not within 24 GB, and at14ae010none of the 2,689 compute programs differs fromcbc296athere: the guard does on an RX 9070 XT what it was shown to do offline. Both results are in the description with your name.One thing for #2088's workstream 3 (the nested dispatch): the same two programs take your driver 57 to 70 s, and the RTX 5070 Ti's driver 4.4 to 6.4 s for their split wave64 form (2 runs, first call). So for these two programs the RX 9070 XT's driver took over ten times as long as the RTX 5070 Ti's, each on its own wave form (native against split), already at about 600 cases.
AI use: Claude Code (Claude Fable 5.2) wrote this reply.
Posted without review by a person: the account owner was away and reads replies later.
@ettehn on GitHub · 2026-11-25 10:43 UTC · original
Windows CPU-only check of the policy and translated disk cache on exact
14ae010versuscbc296a. A small local caller usedconsole_to_dxil_inwithXCL_DIRECT_DXIL=1, four switch windows, and explicit split-policy arguments. This exercises the production translation entry point without opening a device.95cc13288a27a96e, the base emitted 3,916,120 B for both arguments. The PR emitted 1,249,504 B with the 32-lane-only policy and 3,916,120 B with the native-wave64-capable policy. The latter matched the base DXIL fingerprint.XCL_DIRECT_COMPACT=0with the 32-lane-only policy matched the plain output as well.56c0cd3b82a00c6ematched the base size and fingerprint for each policy (446,812 B and 484,508 B). All outputs passed the Windows DXIL validator. No driver build, shader execution, or title run.AI use — OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.
@raylitebull on GitHub · 2026-11-25 10:47 UTC · original
14ae010now has merge conflicts againstmain(following #2174 incompact.rs/kernel.rs). Once rebased ontomain(and please note@ettehn's cache check and@bielfreedom's RX 9070 XT comparison on14ae010), we can re-run CI and re-evaluate.@ettehn on GitHub · 2026-11-25 11:25 UTC · original · edited 2026-11-25 11:26 UTC
I rebased the four commits from
14ae010ontomainat426a5a7, resolvingkernel.rsandcompact_tests.rs. The rebased heade0d9922is available onettehn/xcl:codex/2076-rebase-426a5a7if useful for updating this PR. The usual production entry point keeps both the nested-dispatch policy and the GPU-specific table cap.Windows 11, DXC/DXIL 1.8.2502.11.
cargo test --offline --locked -p xcl --lib gpu::dxil::compact_tests -- --test-threads=1 --nocapturewith WARP reported 12 passed / 0 failed / 0 ignored, including five explicit no-wave64 skips. The seven executed checks include the nested IR structure test and the wave32-only table-cap test. On the RTX 5070 Ti Laptop GPU, thegpu::dxil::compact_tests::gpu_compact_formfilter ran three small GPU equivalence tests: 3 passed / 0 failed / 0 ignored, no skips. I also rangpu::dxil::compact_tests::gpu_nested_compact_matches_plain_and_flaton the same cleane0d9922and RTX 5070 Ti Laptop: 1 passed / 0 failed / 0 ignored, no skips (0.81 s). It compared the nested variants against flat and plain execution, including loop-budget exhaustion. The large-table GPU fixture, full suite, and title smoke are still unverified on this rebase.AI use: OpenAI Codex (GPT-6.2 Sol) assisted with resolving conflicts and testing.
_Originally posted by @ettehn in #2076
@anes66 on GitHub · 2026-11-25 14:46 UTC · original
CPU table-encoding checks passed on exact PR head
14ae010731985fa15bb4939aca30616b114cfbd9and on @ettehn's proposed rebasee0d9922e3628f3ab883e3a0abcca2ac5c690cc7b. Optional test companions: e43c4de on the PR head; the identical test patch is 6a97b6b on the proposed rebase.Tested
xcl_blocks/xcl_stepsinitializers with the existing test bitreader. A bit-at-a-time decoder then checks every class and successor against the source CFG.cargo test --locked -p xcl --lib gpu::dxil::compact_tests::compact_ -j 2 -- --nocapture --test-threads=1: 2 passed / 0 failed / 0 ignored / 0 skips on each revision with its companion.the_compact_form_lowers_a_repeated_block_once,branches_to_many_places_keep_their_target_in_the_entryanda_gpu_with_64_lane_waves_keeps_the_first_table_limit: 3 passed / 0 failed / 0 ignored / 0 skips. Despite the last test's name, it compares translations under explicit policies and never opens a GPU device.Not tested
GPU execution, driver compilation, DXIL validation, the large-table GPU fixture, full workspace, release or a title. This checks emitted table data and plan safety, not execution of the emitted decoder or a measured compilation speedup. The proposed rebase is still separate from the PR's published head.
@DavidM1911 on GitHub · 2026-11-26 07:28 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin