Skip to content

DXIL: swap GPURT traversal loops for native RayQuery (XCL_HW_RT_TRAVERSE) - #3705

Open
Kalmarv wants to merge 6 commits into
xcl-dev:mainfrom
Kalmarv:pr/hw-rt-traverse
Open

Kalmarv wants to merge 6 commits into
xcl-dev:mainfrom
Kalmarv:pr/hw-rt-traverse

Conversation

@Kalmarv

@Kalmarv Kalmarv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Add direct-DXIL GPURT inline traversal loop recognition and native RayQuery lowering (XCL_HW_RT_TRAVERSE=1, requiring XCL_HW_RT=1 and XCL_RAYTRACING not disabled). Off by default; compute disk translation cache entries are isolated via a compute-only _hwrt3 filename suffix in translated::file_for so enabling XCL_HW_RT_TRAVERSE=1 reuses all existing graphics (VS/PS/MS) translated caches instead of busting the global cache directory.

Part of #1751. Stacked on #3704 (only commit 1f488ac7c belongs here).
Related: #2184, #2185, #2186, #2187, #2188, #2189.

Why this PR is over 800 changed lines: The diff is +1171 / -6 lines across 5 files, consisting of ~870 production lines (gpurt.rs CFG liveness, visibility and translucent loop recognizers, and Lw::traversal_swap/Lw::translucent_swap lowering; kernel.rs loop-entry hook; pso.rs compute-scoped _hwrt3 cache discriminator; shaders.rs semantic pipeline setting) and ~301 lines of synthetic RDNA2 and cache-isolation unit tests. The native top-level table, Shader::native_tlas, and shared-heap descriptor reservation were already split into #3704; splitting the loop recognizers from the Lw lowering or their validation tests would either add unused code or land unverified DXIL emission.

What is in it

  • crates/xcl/src/gpu/dxil/gpurt.rs & mod.rs:
    • traverse_enabled() delegating directly to hw_rt::traverse_enabled(), plus test helper with_traverse_for_tests (mutex + drop-guard reset).
    • CFG liveness and single-entry / single-exit natural-loop extraction for GPURT image_bvh64_intersect_ray sites.
    • visibility_of: recognizes opaque first-hit visibility loops (single live-out hit VGPR read only via zero comparisons after the loop, no side-effecting memory ops and no non-node BUFFER_/TBUFFER_/S_LOAD/S_BUFFER_LOAD/SCRATCH_/FLAT_ or non-BVH IMAGE_ loads, known ray and top-level registers, single instance-mask test).
    • translucent_of: recognizes translucent closest-hit loops with folded FORCE_NON_OPAQUE ray flags (no culling), proving front-face 0xFE hit-kind polarity directly on the lane mask SGPR driving every V_CNDMASK_B32 write to front (V_CMP_EQ_U32 0xFE with (front, min) or V_CMP_NE_U32 0xFE with (min, front) in the same block), plus committed-pointer, optional iteration-cap, and post-loop LDS checks.
    • Lw::traversal_swap / Lw::translucent_swap: looks up each active lane's console TLAS VA in MEM_HW_RT_TABLE; if any active lane misses, the whole wave falls back to the software BVH walk; otherwise each active lane with an ordered valid ray interval (tmax >= tmin, Pred::FOGe) traces via Shader::trace_any_hit or Shader::trace_translucent and jumps past the loop (zeroing capped for all active lanes).
    • Synthetic RDNA2 unit tests verifying visibility recognition and rejection of non-node loads (BUFFER_LOAD_DWORD and IMAGE_SAMPLE), translucent S3 polarity acceptance and rejection (inverted polarity and unrelated 0xFE mask), S4 fcmp oge float guard emission, and DXC 1.9 validation.
  • crates/xcl/src/gpu/dxil/kernel.rs: wire gpurt::swaps into non-compact compute/kernel translation, routing each swapped loop's entry edge through lw.swap(...).
  • crates/xcl/src/gpu/recomp/pso.rs: scope the XCL_HW_RT_TRAVERSE=1 translation disk cache discriminator strictly to Stage::Compute via a _hwrt3 filename suffix in translated::file_for / file_for_with (leaving global translated::identity_from_source() unchanged so graphics shaders VS/PS/MS keep their existing cache directory and files; direct_output_identity keeps xcl-hw-rt-traverse-3 for rerouted enormous compute shaders, and hw_rt::traverse_enabled() is process-constant OnceLock so in-RAM ShaderCache cannot mix entries). Adds hw_rt_traverse_cache_key_is_compute_only covering identity_from_source, file_for_with / file_for across graphics and compute stages, and disk round-trip non-collision.
  • crates/xcl/src/shaders.rs: add XCL_HW_RT_TRAVERSE to semantic_pipeline_setting (and assert it in warm_settings_ignore_waits_watchdogs_and_traces_but_keep_pipeline_switches) so warm pipeline preparation tracks the compute setting without altering global translation_cache_identity.

Tested
Hardware: Windows 11 x64 (10.0.26200), NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074 / 610.74, 15995 MiB VRAM, DXR Tier 1.1), AMD Ryzen 9 9950X, rustc 1.99.0, DXC 1.9.2609.5 (XCL_DXC_DIR).

  • cargo build --release -p xcl (commit 1f488ac7c3ce247b23a6a0b9a54092f105aee9ab): succeeded, 39 warnings (0 new vs main).
  • .\scripts\test.ps1 (commit 1f488ac7c3ce247b23a6a0b9a54092f105aee9ab): 3004 passed, 0 failed, 52 ignored across 43 test suites; 24 GPU tests skipped on this adapter (22 no wave64, 2 no heap windows), including hw_rt_traverse_cache_key_is_compute_only, warm_settings_ignore_waits_watchdogs_and_traces_but_keep_pipeline_switches, and both gpu::dxil::gpurt synthetic tests (visibility_loop_recognized_and_translates_with_s4_guard and translucent_loop_polarity_s3_and_s4_guard).
  • Prior live 180 s 16-window XCL_HW_RT=1 XCL_HW_RT_TRAVERSE=1 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 run on previous revision 112374d1907e1d234a2cea4a9edd1eb1a83ca540 (same traversal lowering, before the compute-scoped cache fix; XCL_PREPARE=0, XCL_NETWORK=0, XCL_PSO_EVICT_FRAMES=600, automated title-screen advance): exit: 0x0, 1971 frames shown, 0 device removals, 0 crashes:
    • D3D12.X: XCL_HW_RT_TRAVERSE: native top-level table at descriptor 22 (8 entries)
    • 4 shaders translated with [SHADER] direct DXIL: 1 ray traversal loop(s) swapped for a native RayQuery when the top level has one
    • D3D12.X: XCL_HW_RT_TRAVERSE: native top-level table: 3 published, 0 taken out
    • HW RT shadow (XCL_HW_RT): live 2620 BLAS / 5 TLAS / 134 rehydrated (240 MiB AS, 123 MiB pools); built 1331 BLAS (0 updates, 1327 skipped), 150 TLAS (80 complete, 70 hybrid, 0 skipped); insts 106502 resolved / 0 null / 2194 rehydrated-skip / 33102 missing-skip; 1764 rehydrated recorded (1618 built natively, 146 count mismatch), 159 stale invalidated, 0 copy-invalidated, 0 copied natively, 0 alloc-err, 0 budget-skip
  • Prior live 180 s default-layout XCL_HW_RT=1 XCL_HW_RT_TRAVERSE=1 run on previous revision 112374d1907e1d234a2cea4a9edd1eb1a83ca540 (same settings): exit: 0x0, 1947 frames shown, 0 device removals, 0 crashes; 4 shaders swapped, native top-level table: 2 published, 0 taken out:
    • HW RT shadow (XCL_HW_RT): live 2 BLAS / 5 TLAS / 225 rehydrated (1 MiB AS, 10 MiB pools); built 2 BLAS (0 updates, 13247 skipped), 536 TLAS (240 complete, 296 hybrid, 0 skipped); insts 259119 resolved / 0 null / 9506 rehydrated-skip / 236718 missing-skip; 4526 rehydrated recorded (0 built natively, 388 count mismatch), 0 stale invalidated, 0 copy-invalidated, 0 copied natively, 0 alloc-err, 0 budget-skip

Regression run

Base (main):

xcl-smoke v1
commit: 5eaadb54c14e0fc29597b2a1689d7dbd83491303
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1658 (PresentX 1658)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 16763 MB

PR (pr/hw-rt-traverse):

xcl-smoke v1
commit: 1f488ac7c3ce247b23a6a0b9a54092f105aee9ab
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1702 (PresentX 1702)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16691 MB

Not tested

  • The 180 s live XCL_HW_RT_TRAVERSE=1 runs were performed on previous revision 112374d19 and were not re-run after scoping the disk cache key on 1f488ac7c (the traversal lowering itself did not change).
  • No runtime counter shows a swapped dispatch traced a native top level. The live runs show swapped shaders (4 shaders), published entries (3 on 16-window, 2 on default), and 0 device removals.
  • Visibility loops: the console ray's cull flags are not checked. The native query is opaque first-hit with no culling, so a loop that culls back faces would find more hits natively.
  • GLOBAL_ loads in the loop are accepted as node fetches (same as translucent_of), so an alpha test that fetches only through global loads with no image sample or buffer/scalar load would not be caught.
  • Translucent loops: the front-face side of the 0xFE select is proven. That the commit (t max, pointer) happens only on the back-face side is not proven separately; the FORCE_NON_OPAQUE fold and the 0xFE min imply it.
  • Pixel-level A/B image diff between software BVH walk and native RayQuery traversal.
  • Underlying shadow-builder stability on the 16-window layout: see D3D12.X: opt-in XCL_HW_RT shadow builder #3700 Known limitations Olympus: validate launcher and texture inputs #6 (1 of 3 XCL_HW_RT=1 16-window runs ended in 0x887a0006; this PR's 180 s 16-window XCL_HW_RT_TRAVERSE=1 run completed cleanly with 0 device removals).
  • AMD/Intel GPUs, native wave64 GPU tests (22 skipped on RTX 5070 Ti), and sample-gated tests (XCL_SAMPLE_* unset).

AI use

  • Claude Code (Claude Opus 5.5): architecture, traversal loop safety audit (S3 front-face polarity proof, S4 tmax >= tmin guard, visibility non-node load rejection, B4 env gating, B5 synthetic test cleanup).
  • Antigravity (Gemini 4 Neon): implementation, rebase onto main, compute-scoped _hwrt3 cache key fix and cache-isolation unit tests, synthetic RDNA2 unit tests, release build, full test suite, regression smoke, live 16-window and default XCL_HW_RT_TRAVERSE=1 verification, and PR description.

Kalmarv and others added 5 commits December 2, 2026 09:23
…GPU views

Add outer XboxBvhBuilder.dll HLE hooks (BuildRaytracingAccelerationStructureBatched2X and RehydrateRaytracingAccelerationStructureBatched2X, extern "system-unwind") that ask view_want (Path::BvhBuild) for every range a build or rehydrate names whole before forwarding to the DLL.

The builder's compute programs reach vertex and index buffers through addresses inside uploaded geometry descriptions and reach destination, source, and scratch through root views, which view_want only asks for 64 KiB from their base address. On the 16-window GPU-view layout, tiles past that first 64 KiB stay unmapped until requested. Asking for each item's result, source, scratch, instance descriptions, per-geometry vertices/indices/transforms/AABBs (handling R16_TYPELESS=53 as 2 bytes), and postbuild destinations sized via GetRaytracingAccelerationStructurePrebuildInfo closes that gap:

- Resolve GetRaytracingAccelerationStructurePrebuildInfo directly from the mapped XboxBvhBuilder.dll module when wrapping any export (including ordinal imports) instead of waiting for the title to import it.
- Cache UpdateScratchDataSizeInBytes on ALLOW_UPDATE builds so a later PERFORM_UPDATE whose prebuild query returns 0 reuses the cached size (or falls back to scratch_size.max(update_scratch_size).max(SCRATCH_GUESS)) instead of dropping the scratch range.
- For ARRAY_OF_POINTERS TLAS builds, translate the GPU-VA pointer table via list_x::cpu_at, read it under shader::readable, and request coalesced 64-byte D3D12_RAYTRACING_INSTANCE_DESC target ranges alongside the pointer array.

Wrapping is gated on Uma view windows existing, so default 4-window runs are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Antigravity (Gemini 4 Neon)
Add the pure acceleration-structure shadow registry and DXR 1.1 triangle geometry and TLAS instance translation helpers in hle::d3d12x::hw_rt. Nothing calls this module yet; the shadow command-list builder and XboxBvhBuilder hooks follow in a stacked PR.

Tracks native BLAS/TLAS entries keyed by console GPU VA, validates DXR 1.1 PERFORM_UPDATE refits against build flags and per-geometry signatures, marks referencing TLASes stale whenever a BLAS GPU VA relocates or is invalidated, canonicalizes console typeless index formats (R16_TYPELESS / R32_TYPELESS) to PC typed uint formats, and gates opt-in XCL_HW_RT=1 against XCL_RAYTRACING=0.

Part of xcl-dev#1751.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Antigravity (Gemini 4 Neon)
Wire the opt-in native D3D12 DXR 1.1 BLAS/TLAS shadow builder (XCL_HW_RT=1, off by default) into XboxBvhBuilder.dll's BuildBatched2X, RehydrateBatched2X, and CopyRaytracingAccelerationStructure hooks.

Builds native DXR 1.1 bottom-level and top-level acceleration structures alongside the console compute path (leaving console output untouched for software fallback):
- Translates triangle BLAS geometry (including R16_TYPELESS/R32_TYPELESS canonicalization) and rewrites TLAS instance descriptors to native BLAS GPU VAs (masking unresolved instances cleanly).
- Builds rehydrated BLASes natively when their geometry has at least as many triangles as the archive header's primitive count, and clones native structures on clone/compact copies.
- Invalidates stale entries on every skipped rebuild or fallback, marks referencing TLASes stale when a BLAS GPU VA relocates or is removed, and retires replaced AS buffers past RETIRE_FRAMES presents into late_release::hold_owned_resource so active GPU queues finish before drop.
- Respects XCL_RAYTRACING=0 dynamically on every hook and logs a periodic summary line in host.rs when active.

Part of xcl-dev#1751.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Antigravity (Gemini 4 Neon)
Add direct-DXIL inline ray tracing support on Shader without changing any runtime path yet:

- RaytracingAccelerationStructure SRVs (static t# binding and ResourceDescriptorHeap indexing requiring SM 6.6+, kind 16, U32 element type, PSV0 SrvRaw).
- allocateRayQuery (requiring SM 6.5+), rayQuery_TraceRayInline, Proceed, Abort, CommitNonOpaqueTriangleHit, and StateScalar / StateVector queries (committed and candidate status, type, t, barycentrics, instance index / ID, geometry, primitive, front face).
- Opcodes, overloads, and attributes match DXC 1.9 (state queries are readonly so CSE never merges them across Proceed); Feature::RaytracingTier1_1 sets metadata bit 25 and container bit 0x100000.
- Helpers Shader::trace_any_hit (opaque first-hit shadow query with SKIP_PROCEDURAL_PRIMITIVES so procedural AABBs cannot stall the single-Proceed search) and Shader::trace_translucent (FORCE_NON_OPAQUE Proceed loop committing back faces and tracking the nearest front face).
- DXIL 1.9 validator, SM 6.5/6.6 guard tests, and WARP DXR 1.1 execution tests comparing closest hit (t0 and descriptor heap, 48 single-triangle BLAS instances so the comparison does not depend on WARP's multi-triangle BLAS builder), non-zero primitive index on a 2-triangle BLAS, first hit, procedural-AABB skip in trace_any_hit, translucent back-face commit, FRONT_COUNTERCLOCKWISE, negative-determinant mirrored transform (object-space winding per DXR spec), front1/back2, and fronts-only against a CPU walk / f64 Moller-Trumbore reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Antigravity (Gemini 4 Neon)
Add the GPU-visible native top-level table (hw_rt_table) and Shader::native_tlas lookup so translated shaders can look up complete native DXR TLASes by console VA.

Reserve 9 fixed descriptors in the shared heap (MEM_HW_RT_TABLE + 8 MEM_HW_RT_TLAS slots, shifting MEM_FIXED_END by +9). Complete native TLASes are published only after STABLE_FRAMES (4) presents in the same buffer, removed immediately when relocated/invalidated/incomplete, and freed slots are quarantined for STABLE_FRAMES presents. Empty slots retain their own TLAS descriptor index (MEM_HW_RT_TLAS + k) and updates write only changed slots with write-combining fences so concurrent GPU readers never observe torn entries or descriptor index 0.

Also add hw_rt::traverse_enabled() (gating XCL_HW_RT_TRAVERSE on hw_rt::enabled() dynamically so XCL_RAYTRACING=0 is respected), wire hw_rt_table::sync() from hw_rt build/rehydrate/copy/summary paths, add direct-DXIL RayQuery copy verification to warp_rehydrated_and_copied_blas_are_native, and extend ray_query WARP tests with swap_kernel lookup + trace cases.

Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Antigravity (Gemini 4 Neon)
@github-actions github-actions Bot added area:d3d12 D3D12.X runtime, command lists, resources, sparse memory area:hle kernelx, XGameRuntime, XAudio2, VFS, PE loader, TLS, EH area:memory Virtual/physical memory, arenas, VRAM budget, UMA area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 gpu:amd Code is specific to AMD / RDNA / wave64 GPUs (scope tag; see needs:amd-test) labels Dec 2, 2026
@KDenKC

KDenKC commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@Kalmarv a heads-up for #3705 from reading the retail title's main ray program (not a run yet; we'll run your stack as soon as our rig is free):

  • The program is 8994bb33444988e6 (compute). Its node test is a GPURT site: image_bvh at 0x3a84 with s19 = 0x890003ff (your GPURT_DESC_W3).
  • Its innermost loop around that test is 0x3818-0x479c: one external entry (0xb7c: s_branch 0x3818), one exit (the fall-through at 0x47a0); 0x3810 is only reached from the back edge. So the loop itself should pass the single-entry/single-exit check.
  • But the program is about 11,700 instructions (47,768 B of code), above compact.rs's LARGE_INSTS (10,000), so it most likely gets a compact plan, and kernel.rs only swaps when plan.is_none(). If that holds, DXIL: swap GPURT traversal loops for native RayQuery (XCL_HW_RT_TRAVERSE) #3705 leaves this program alone, and it's the one the title's ray tracing depends on.
  • Why it matters for us: in the interior scene we measure, every lane that enters this loop leaves it before the node test (the v51 == 3 check at 0x3a38, after the loop-guard block at 0x39d4-0x39e8), so node tests stay at 0. A native RayQuery in place of this loop would bypass that.

Would the swap be possible before compact planning (or inside it, per region)? Happy to test whatever you try. Your loyal testing minion, rig permitting.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

@Kalmarv

Kalmarv commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up @KDenKC — confirmed on the code: kernel.rs:477 currently gates gpurt::swaps on plan.is_none(), so any compute shader that triggers compact::automatic_plan (LARGE_INSTS = 10_000 / LARGE_BLOCKS = 2_000) skips the swap in this PR.

Yes, wiring the swap into the compact path is doable cleanly in a follow-up PR: gpurt::swaps(&cfg, o.wave64) already runs on the pre-compaction Cfg, so compact::emit can intercept the entry -> header edge (or dispatch a swap case in the state switch) to run lw.swap(...) and branch cur to exit's compact index on the native path or header's compact index on wave fallback.

One caveat to check when testing 8994bb33444988e6 (0x3818–0x479c): #3705 only recognizes opaque first-hit visibility loops (single live-out hit VGPR, no non-node BUFFER_/IMAGE_/S_LOAD/etc. loads) and FORCE_NON_OPAQUE translucent loops (0xFE front-face min). If 0x3818–0x479c returns full closest-hit attributes (e.g. t, barycentrics, primitive/instance IDs) or loads non-node buffers/textures inside the loop, it will also need a closest-hit recognizer on top of compact-path support.

Keeping #3705 scoped to the non-compact path as-is (it's already +1073 lines and CI-green), and we'll look at compact-form swap support + checking what gpurt::swaps says about 8994bb33444988e6 in a follow-up stacked PR.

@KDenKC

KDenKC commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@Kalmarv a correction to my note above, sorry: I counted the whole listing (~11,700 lines), not what compact.rs counts. For 8994bb33444988e6 the reachable blocks are 878 (under LARGE_BLOCKS 2,000) and the reachable non-terminator instructions 8,648 (under LARGE_INSTS 10,000), and its two buffer_atomic_add have GLC=0, so it most likely lowers plain and plan.is_none() holds: #3705 should get to try the swap on it after all.

For the matcher, from the disassembly: the loop is 0x3810-0x479c (back edge to 0x3810), 83 blocks / 757 instructions, entered from 0xa88 -> 0x3818 besides the latch, one exit 0x4788 -> 0x47a0, one image_bvh64 (0x3a84). The values read right after the exit come from the commit block at 0x4600-0x4660: v22 (committed t), v27 (t compared at 0x47a4), v31 (flags, bit 2), v33 (record index), v38 (a 10-bit field of the hit record), v32 (tested against -1), v28-v30. We'll confirm with a run of your stack (XCL_HW_RT=1 XCL_HW_RT_TRAVERSE=1) as soon as our rig is free and report what the swap log says for this program.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

@Kalmarv

Kalmarv commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the correction and the live-out breakdown @KDenKC! Good news that plan.is_none() holds on 8994bb33444988e6.

From those live-outs (v22, v27, v28–v33, v38 — committed t, record index, hit-record fields, etc.), 8994bb33444988e6 looks like a general closest-hit loop rather than the opaque visibility (1 live-out hit VGPR) or FORCE_NON_OPAQUE translucent (tmax/front/committed/capped) shapes #3705 recognizes, so #3705 will likely leave it on the software walk and it would be a natural target for a dedicated closest-hit matcher follow-up on top of #3705. Looking forward to seeing what your run reports!

…RSE)

Add gpurt.rs recognition and direct-DXIL lowering for opt-in XCL_HW_RT_TRAVERSE=1 (requiring XCL_HW_RT=1 and XCL_RAYTRACING not disabled).

Recognises single-entry/single-exit GPURT visibility loops and translucent closest-hit loops (folded FORCE_NON_OPAQUE without culling, proving front-face 0xFE polarity directly on the lane mask driving V_CNDMASK_B32 for the nearest-front register). At each loop's entry, checks the native top-level table (MEM_HW_RT_TABLE); when every active lane finds a native TLAS, valid lanes (ordered tmax >= tmin) trace with Shader::trace_any_hit / Shader::trace_translucent and jump past the loop, while waves with any missing TLAS fall back to the software walk.

Cache keying is scoped strictly to Stage::Compute via a `_hwrt3` filename suffix in `translated::file_for` (and `direct_output_identity` for rerouted enormous compute shaders) rather than modifying the global `translated::identity_from_source()` directory hash, so enabling `XCL_HW_RT_TRAVERSE=1` reuses all existing graphics (`VS`/`PS`/`MS`) translated caches instead of forcing a full graphics rebuild. `XCL_HW_RT_TRAVERSE` is also listed in `shaders::semantic_pipeline_setting` for warm pipeline preparation.

Includes synthetic RDNA2 unit tests covering visibility and translucent loop recognition, S3 front-face polarity acceptance/rejection, S4 tmax >= tmin guarding, DXC 1.9 validation, compute-only cache key isolation, and warm pipeline setting keying.

Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Antigravity (Gemini 4 Neon)
@github-actions github-actions Bot added area:shaders Shader cache, PSO compilation, pipeline libraries, precompilation needs-1st-check Passes gates; needs first independent merge-check (#3041) labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:d3d12 D3D12.X runtime, command lists, resources, sparse memory area:hle kernelx, XGameRuntime, XAudio2, VFS, PE loader, TLS, EH area:memory Virtual/physical memory, arenas, VRAM budget, UMA area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 area:shaders Shader cache, PSO compilation, pipeline libraries, precompilation gpu:amd Code is specific to AMD / RDNA / wave64 GPUs (scope tag; see needs:amd-test) needs-1st-check Passes gates; needs first independent merge-check (#3041)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants