Recompiler: Return BVH misses for unmapped memory windows #2542

Open
github-bot wants to merge 1 commit from github-bot/gh-2542 into main AGit
Owner

@⁠Lkxex on GitHub · 2026-11-25 22:25 UTC · original
Lkxex:fix/bvh-missing-window → main · +57 −4 · 4 files · 1 commits · draft

Reject unmapped UMA windows before interpreting a BVH node. Zero-filled reads can otherwise appear to be a box with valid child zero. Both HLSL and direct DXIL now return the correct box or triangle miss.

What is in it

  • Equivalent window checks in both recompilers.
  • A synthetic GPU regression with mixed box and triangle lanes.

Tested

  • AMD Radeon RX 6600, Windows x64, DXC 1.8.2502.11.
  • Focused HLSL GPU test: 1 passed, 0 failed, 0 skipped.
  • Direct DXIL BVH GPU tests: 4 passed, 0 failed, 0 skipped.

Regression run
Pending. This draft has no matching main/head game smoke captures.

Not tested
Whole workspace test suite, real title smoke, FPS, and lighting.

AI use
OpenAI Codex (GPT-6.2 Sol) assisted with implementation and tests.

**@⁠Lkxex** on GitHub · 2026-11-25 22:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2542) `Lkxex:fix/bvh-missing-window` → `main` · +57 −4 · 4 files · 1 commits · draft Reject unmapped UMA windows before interpreting a BVH node. Zero-filled reads can otherwise appear to be a box with valid child zero. Both HLSL and direct DXIL now return the correct box or triangle miss. **What is in it** - Equivalent window checks in both recompilers. - A synthetic GPU regression with mixed box and triangle lanes. **Tested** - AMD Radeon RX 6600, Windows x64, DXC 1.8.2502.11. - Focused HLSL GPU test: 1 passed, 0 failed, 0 skipped. - Direct DXIL BVH GPU tests: 4 passed, 0 failed, 0 skipped. **Regression run** Pending. This draft has no matching main/head game smoke captures. **Not tested** Whole workspace test suite, real title smoke, FPS, and lighting. **AI use** OpenAI Codex (GPT-6.2 Sol) assisted with implementation and tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:33:21 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 22:32 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!

**@⁠DavidM1911** on GitHub · 2026-11-25 22:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/2542#issuecomment-7176482489) 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!
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 23:24 UTC · original

Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 166 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of the bvh filter (14 tests incl. the new unmapped-window misses): all passed.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-25 23:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/2542#issuecomment-7177528079) **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 166 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of the `bvh` filter (14 tests incl. the new unmapped-window misses): all passed. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2542/head:github-bot/gh-2542'
git switch 'github-bot/gh-2542'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2542'
git switch 'github-bot/gh-2542'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2542'
git switch 'github-bot/gh-2542'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2542'
git switch 'main'
git merge --squash 'github-bot/gh-2542'
git switch 'main'
git merge --ff-only 'github-bot/gh-2542'
git switch 'main'
git merge 'github-bot/gh-2542'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.