Recompiler: bound a shadow traversal with native RayQuery #2189
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!2189
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2189"
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?
@rison1337 on GitHub · 2026-11-25 08:17 UTC · original
rison1337:feat/shadow-rayquery-consumer→main· +1541 −24 · 18 files · 7 commits · openStacked on #2085 and the preceding native-AS preparation branches. Immediate predecessor:
feat/shadow-traversal-matcher(190885bb24ee). Only commit24206a657b11belongs to this PR; earlier commits are dependencies.Connect one verified shadow traversal region to an opt-in native RayQuery upper bound for #1751. A compatible TLAS is bound directly at t0/space2. The original traversal still checks nearer intersections, including t=0, before the native endpoint is merged. No retail FPS benefit is established.
What is in it
Tested
x86_64-pc-windows-gnullvmcross-build, debug tests and release runtime. Executed under Proton Experimental, with DXC 1.9.2609.5 and the local vkd3d-proton compatibility build.cargo test --locked --target x86_64-pc-windows-gnullvm -p xcl --lib --no-run, then run through the local Proton runner with--test-threads=4: 1104 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages.XCL_HOST_RAYQUERY=1; the private shader sample was available throughXCL_SAMPLE_RAYQUERY. No title bytes are committed.main(568e7db7729c), same runner and hardware: 1096 passed, 2 failed, 26 ignored; 24 explicit SKIPPED messages. Both fail the same existing depth-state negative check (gpu_depth_buffer_created_for_unordered_access_is_placed) and XMA voice check (xma2_source_voice_decodes_and_manages_lifetime). Skips include unavailable hardware wave64 and Windows Developer Mode.24206a657b11:cargo build --locked --target x86_64-pc-windows-gnullvm --workspaceandcargo test --locked --target x86_64-pc-windows-gnullvm --workspace --no-runpassed after adapting the four integration-test accesses to the shared-DXILArcAPI in #2085.Regression run
The repository's unchanged
scripts/smoke.ps1generated these blocks, using PowerShell 7.7.0 on Linux and a shell wrapper that executes the EXE through Proton.Z:is mapped for reading the Windows log path. Both clean-source runs use the same title/profile copy, 90 s,XCL_PSO_PRELOAD=0, no automatic input, and a separate Xwayland surface on a background workspace. The PR's opt-in flag is enabled where available. Coverage is startup/start screen/menu, not world loading or native traversal execution.Both runs exited without recorded crashes or device removals. Wine prints 0 MB for process commit, so the memory-growth comparison is not established by this counter. The existing queue-drain warning may be present at timer shutdown.
Not tested
24206a657b11, all 19 non-library workspace executables were attempted under Proton.e2e,pls_quota,gpu_compute_e2eandpredication_e2efail on both main and head. The resource/sync executable aborts with four test threads on both (main: access violation; head: division by zero), so no aggregate pass is claimed.AI use
Codex (GPT-6 family; exact variant unavailable in this session) prepared the implementation, split the commits, cross-built the binaries, ran the listed Linux/Proton checks and drafted this description. No game data or console SDK headers are included.
@DarkPanda69 on GitHub · 2026-11-25 08:34 UTC · original
Native Windows run on AMD (native wave64) and NVIDIA, which the stack lists as untested. I applied this PR's diff against
main, so it includes the lower native-AS branches it is stacked on (#2184–#2188 as of their current heads).Head
24206a6applied onmain568e7db, debug, Windows 11 Pro 26200,XCL_ADAPTERset to each card:cargo test -p xcl --lib -- host_bvh rayquery: 7 passed, 0 failed.gpu_shadow_dxr_builds_and_clones_blas_then_traces_a_tlasran and passed;gpu_retail_shadow_region_matches_console_sceneSKIPPED (noXCL_SAMPLE_RAYQUERY).cargo test -p xcl --lib -- gpu::: 586 passed, 2 failed, 22 ignored. The 2 failures are the AMD fuzz seeds 722 and 1599 tracked in #2115, which fail the same way onmain.cargo test -p xcl --test console_shaders: 3 passed, 0 failed, 4 ignored, no skips.host_bvh rayquery;gpu::588 passed, 0 failed, 22 ignored;console_shaders3 passed, 4 ignored.Not tested: the retail shadow region (no sample),
XCL_SAMPLE_*, a title, release build.AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@luckyteagirl on GitHub · 2026-11-25 09:19 UTC · original
Independent native Windows RX 6800M check of the exact stacked head
24206a657b11ccde6884a3a6cb3bb7a262d18075. The final worktree is clean.Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M, driver
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Tests usedXCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64, andXCL_HOST_RAYQUERY=1unless stated otherwise.Host BVH fixture without the private sample:
hle::d3d12x::host_bvh::testspassed 6/0/0, with no skip. The hardware test identified the RX 6800M, built and cloned a shadow BLAS, traced a TLAS, and reported that its hit distance and miss matched the console BVH fixture. The final clean-head rerun passed. This exercises the host DXR setup and synthetic scene; without the sample it does not execute the new retail native-query differential.Owned retail record, local only: I extracted the exact record selected by the test (FNV-1a
9d51ce32ab9a9ab5) from my own title copy into a localXCL_SAMPLE_RAYQUERYfile; no title or shader bytes are included here.gpu_retail_shadow_region_matches_console_scenepassed 1/0/0 on the final clean head, with no skip. The full retail shader including RayQuery compiled to 89,932 B DXIL; the test identified live vector outputs[28, 31]and its original shadow region produced the expected four lane results on the RX 6800M. This test runs the original region, not the new native-query replacement.Native-query differential limitation: With that sample supplied to the host BVH GPU fixture, the test process exited with Windows access violation
0xc0000005; it did not reach a test result. Temporary local diagnostics showed both original and native variants compiled (22,412 B and 23,980 B DXIL) and both compute pipelines were created. The first case crashed atSetComputeRootSignature, before either pipeline dispatched. It reproduced withXCL_HOST_RAYQUERY=1and with the flag unset, using the helper's other root-signature path. I removed all diagnostic edits and verified the clean PR head. The fault's cause is unresolved, so this run does not establish native-query GPU output parity or title performance on AMD.AI use: OpenAI Codex prepared the local record extraction and temporary diagnostics, ran the listed native Windows tests, restored the exact PR head, and drafted this report. No game data or console SDK headers were posted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.