Skip to content

Recompiler: Return BVH misses for unmapped memory windows - #2542

Draft
Lkxex wants to merge 1 commit into
xcl-dev:mainfrom
Lkxex:fix/bvh-missing-window
Draft

Lkxex wants to merge 1 commit into
xcl-dev:mainfrom
Lkxex:fix/bvh-missing-window

Conversation

@Lkxex

@Lkxex Lkxex commented Nov 25, 2026

Copy link
Copy Markdown

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@SlopTart

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants