gpu: copy out-of-reach descriptor tables into aside ring #80

Closed
github-bot wants to merge 1 commit from github-bot/gh-80 into main AGit
Owner

@⁠Not4Eric on GitHub · 2026-12-01 17:00 UTC · original
Not4Eric:fix/unplaced-descriptor-heap-aside → main · +12 −0 · 1 files · 1 commits · closed without merging

Problem

On Series S (or any profile using the console amd_fidelityfx_upscaler_xbox.dll), FSR4 calls unplaced CreateDescriptorHeap, which allocates from PortHeap above 0x20_0000_0000 (since commit 88c9c29).

In crates/victory-gpu/src/draw.rs, table.checked_sub(space).filter(|&at| at < REACH) fails for those addresses and hits continue without binding the table:

WARN victory_gpu::draw: a descriptor table outside the card's first reach of title memory reads nothing

Every FSR4 upscaler dispatch then reads/writes nothing, leaving the 3D scene black while 2D HUD/UI renders normally.

Fix

When a descriptor table is outside the 3.5 GiB direct REACH, check that it lies in-bounds of a bound Heap and fall back to self.beside(list, table, n, &[]) to copy it into the GPU-reachable records::aside ring (matching the existing cpu_ask fallback directly above).

Testing

  • Built with cargo build --locked --release -p victory (0 warnings).
  • Verified on RX 9070 XT (RADV, CONSOLE=series-s, 1920x1080): the outside the card's first reach warning is gone and 3D gameplay renders.
**@⁠Not4Eric** on GitHub · 2026-12-01 17:00 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/80) `Not4Eric:fix/unplaced-descriptor-heap-aside` → `main` · +12 −0 · 1 files · 1 commits · closed without merging ## Problem On Series S (or any profile using the console `amd_fidelityfx_upscaler_xbox.dll`), FSR4 calls unplaced `CreateDescriptorHeap`, which allocates from `PortHeap` above `0x20_0000_0000` (since commit `88c9c29`). In `crates/victory-gpu/src/draw.rs`, `table.checked_sub(space).filter(|&at| at < REACH)` fails for those addresses and hits `continue` without binding the table: ``` WARN victory_gpu::draw: a descriptor table outside the card's first reach of title memory reads nothing ``` Every FSR4 upscaler dispatch then reads/writes nothing, leaving the 3D scene black while 2D HUD/UI renders normally. ## Fix When a descriptor table is outside the 3.5 GiB direct `REACH`, check that it lies in-bounds of a bound `Heap` and fall back to `self.beside(list, table, n, &[])` to copy it into the GPU-reachable `records::aside` ring (matching the existing `cpu_ask` fallback directly above). ## Testing - Built with `cargo build --locked --release -p victory` (0 warnings). - Verified on RX 9070 XT (RADV, `CONSOLE=series-s`, `1920x1080`): the `outside the card's first reach` warning is gone and 3D gameplay renders.
Unplaced descriptor heaps (e.g. console amd_fidelityfx_upscaler_xbox.dll on Series S) allocate from PortHeap above 0x20_0000_0000, outside the GPU's 3.5 GiB direct REACH. Previously draw::plan_tables skipped binding them with a warning, causing FSR4 upscaling passes to read/write nothing and leaving the 3D scene black while 2D UI rendered.

Fall back to self.beside(...) when the table is outside REACH and lies in-bounds of a bound descriptor heap, matching the existing cpu_ask path.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:01:13 +00:00
Author
Owner

@⁠Not4Eric on GitHub · 2026-12-01 17:32 UTC · original · edited 2026-12-01 19:57 UTC

resolves #62

**@⁠Not4Eric** on GitHub · 2026-12-01 17:32 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/80#issuecomment-7319459886) · edited 2026-12-01 19:57 UTC resolves #62
Author
Owner

@⁠AlexandrosMelissas on GitHub · 2026-12-01 18:58 UTC · original

About #79, Tested this PR on RX 9070 XT (Bazzite host, Arch distrobox, Wine 11.22), fresh image cache:
still crashes with int3 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d ~frame 1100,
black screen until then.

2026-12-01T18:56:48.280303Z  INFO victory_gpu::queue: shaders from the cache and translated so far hits=2692 misses=0
VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20
  r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0
  #0  victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  #1  victory-image-b99f876b74d4a77f.dll+0x4e52a83
  #2  victory-image-b99f876b74d4a77f.dll+0x4e529c4
  #3  victory-image-b99f876b74d4a77f.dll+0x5ab13ed
  #4  victory-image-b99f876b74d4a77f.dll+0x21b70b1
  #5  victory-image-b99f876b74d4a77f.dll+0x1d83996
  #6  victory-image-b99f876b74d4a77f.dll+0x81afb9
  #7  victory-image-b99f876b74d4a77f.dll+0x53ec079
  #8  victory-image-b99f876b74d4a77f.dll+0x53ebf66
  #9  victory-image-b99f876b74d4a77f.dll+0x661f0
  #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9
  #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d
  #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a
  #13 victory.exe+0x5c879b
  #14 victory.exe+0x5ce334
  #15 victory.exe+0x145846
  #16 kernel32.dll+0x11719
  #17 ntdll.dll+0x10e0f
VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20
  r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0
  #0  victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  #1  victory-image-b99f876b74d4a77f.dll+0x4e52a83
  #2  victory-image-b99f876b74d4a77f.dll+0x4e529c4
  #3  victory-image-b99f876b74d4a77f.dll+0x5ab13ed
  #4  victory-image-b99f876b74d4a77f.dll+0x21b70b1
  #5  victory-image-b99f876b74d4a77f.dll+0x1d83996
  #6  victory-image-b99f876b74d4a77f.dll+0x81afb9
  #7  victory-image-b99f876b74d4a77f.dll+0x53ec079
  #8  victory-image-b99f876b74d4a77f.dll+0x53ebf66
  #9  victory-image-b99f876b74d4a77f.dll+0x661f0
  #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9
  #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d
  #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a
  #13 victory.exe+0x5c879b
  #14 victory.exe+0x5ce334
  #15 victory.exe+0x145846
  #16 kernel32.dll+0x11719
  #17 ntdll.dll+0x10e0f
**@⁠AlexandrosMelissas** on GitHub · 2026-12-01 18:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/80#issuecomment-7321928460) About #79, Tested this PR on RX 9070 XT (Bazzite host, Arch distrobox, Wine 11.22), fresh image cache: still crashes with int3 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d ~frame 1100, black screen until then. ``` 2026-12-01T18:56:48.280303Z INFO victory_gpu::queue: shaders from the cache and translated so far hits=2692 misses=0 VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20 r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0 #0 victory-image-b99f876b74d4a77f.dll+0x4dcbc9d #1 victory-image-b99f876b74d4a77f.dll+0x4e52a83 #2 victory-image-b99f876b74d4a77f.dll+0x4e529c4 #3 victory-image-b99f876b74d4a77f.dll+0x5ab13ed #4 victory-image-b99f876b74d4a77f.dll+0x21b70b1 #5 victory-image-b99f876b74d4a77f.dll+0x1d83996 #6 victory-image-b99f876b74d4a77f.dll+0x81afb9 #7 victory-image-b99f876b74d4a77f.dll+0x53ec079 #8 victory-image-b99f876b74d4a77f.dll+0x53ebf66 #9 victory-image-b99f876b74d4a77f.dll+0x661f0 #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9 #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a #13 victory.exe+0x5c879b #14 victory.exe+0x5ce334 #15 victory.exe+0x145846 #16 kernel32.dll+0x11719 #17 ntdll.dll+0x10e0f VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20 r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0 #0 victory-image-b99f876b74d4a77f.dll+0x4dcbc9d #1 victory-image-b99f876b74d4a77f.dll+0x4e52a83 #2 victory-image-b99f876b74d4a77f.dll+0x4e529c4 #3 victory-image-b99f876b74d4a77f.dll+0x5ab13ed #4 victory-image-b99f876b74d4a77f.dll+0x21b70b1 #5 victory-image-b99f876b74d4a77f.dll+0x1d83996 #6 victory-image-b99f876b74d4a77f.dll+0x81afb9 #7 victory-image-b99f876b74d4a77f.dll+0x53ec079 #8 victory-image-b99f876b74d4a77f.dll+0x53ebf66 #9 victory-image-b99f876b74d4a77f.dll+0x661f0 #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9 #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a #13 victory.exe+0x5c879b #14 victory.exe+0x5ce334 #15 victory.exe+0x145846 #16 kernel32.dll+0x11719 #17 ntdll.dll+0x10e0f ```
Author
Owner

@⁠Not4Eric on GitHub · 2026-12-01 19:57 UTC · original

About #79, Tested this PR on RX 9070 XT (Bazzite host, Arch distrobox, Wine 11.22), fresh image cache: still crashes with int3 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d ~frame 1100, black screen until then.

2026-12-01T18:56:48.280303Z  INFO victory_gpu::queue: shaders from the cache and translated so far hits=2692 misses=0
VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20
  r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0
  #0  victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  #1  victory-image-b99f876b74d4a77f.dll+0x4e52a83
  #2  victory-image-b99f876b74d4a77f.dll+0x4e529c4
  #3  victory-image-b99f876b74d4a77f.dll+0x5ab13ed
  #4  victory-image-b99f876b74d4a77f.dll+0x21b70b1
  #5  victory-image-b99f876b74d4a77f.dll+0x1d83996
  #6  victory-image-b99f876b74d4a77f.dll+0x81afb9
  #7  victory-image-b99f876b74d4a77f.dll+0x53ec079
  #8  victory-image-b99f876b74d4a77f.dll+0x53ebf66
  #9  victory-image-b99f876b74d4a77f.dll+0x661f0
  #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9
  #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d
  #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a
  #13 victory.exe+0x5c879b
  #14 victory.exe+0x5ce334
  #15 victory.exe+0x145846
  #16 kernel32.dll+0x11719
  #17 ntdll.dll+0x10e0f
VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20
  r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0
  #0  victory-image-b99f876b74d4a77f.dll+0x4dcbc9d
  #1  victory-image-b99f876b74d4a77f.dll+0x4e52a83
  #2  victory-image-b99f876b74d4a77f.dll+0x4e529c4
  #3  victory-image-b99f876b74d4a77f.dll+0x5ab13ed
  #4  victory-image-b99f876b74d4a77f.dll+0x21b70b1
  #5  victory-image-b99f876b74d4a77f.dll+0x1d83996
  #6  victory-image-b99f876b74d4a77f.dll+0x81afb9
  #7  victory-image-b99f876b74d4a77f.dll+0x53ec079
  #8  victory-image-b99f876b74d4a77f.dll+0x53ebf66
  #9  victory-image-b99f876b74d4a77f.dll+0x661f0
  #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9
  #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d
  #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a
  #13 victory.exe+0x5c879b
  #14 victory.exe+0x5ce334
  #15 victory.exe+0x145846
  #16 kernel32.dll+0x11719
  #17 ntdll.dll+0x10e0f

Sorry, I just now realized that the person replying saying that they have a similar issue and your issue are not the same. I'll remove the issue mention

**@⁠Not4Eric** on GitHub · 2026-12-01 19:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/80#issuecomment-7323765635) > About #79, Tested this PR on RX 9070 XT (Bazzite host, Arch distrobox, Wine 11.22), fresh image cache: still crashes with int3 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d ~frame 1100, black screen until then. > > ``` > 2026-12-01T18:56:48.280303Z INFO victory_gpu::queue: shaders from the cache and translated so far hits=2692 misses=0 > VIctory: first-chance exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d > rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20 > r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0 > #0 victory-image-b99f876b74d4a77f.dll+0x4dcbc9d > #1 victory-image-b99f876b74d4a77f.dll+0x4e52a83 > #2 victory-image-b99f876b74d4a77f.dll+0x4e529c4 > #3 victory-image-b99f876b74d4a77f.dll+0x5ab13ed > #4 victory-image-b99f876b74d4a77f.dll+0x21b70b1 > #5 victory-image-b99f876b74d4a77f.dll+0x1d83996 > #6 victory-image-b99f876b74d4a77f.dll+0x81afb9 > #7 victory-image-b99f876b74d4a77f.dll+0x53ec079 > #8 victory-image-b99f876b74d4a77f.dll+0x53ebf66 > #9 victory-image-b99f876b74d4a77f.dll+0x661f0 > #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9 > #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d > #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a > #13 victory.exe+0x5c879b > #14 victory.exe+0x5ce334 > #15 victory.exe+0x145846 > #16 kernel32.dll+0x11719 > #17 ntdll.dll+0x10e0f > VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x4dcbc9d > rax 0x17fb0 rbx 0x50 rcx 0xd446495c8 rdx 0x1bd79e0 rsi 0x6c0 rdi 0xd446495c8 rsp 0x1bd7900 rbp 0x1bdfa20 > r8 0x6c0 r9 0x0 r10 0xd4b70e0d0 r11 0x1 r12 0x8 r13 0x0 r14 0x6ffff7b6c000 r15 0x2001060cd0 > #0 victory-image-b99f876b74d4a77f.dll+0x4dcbc9d > #1 victory-image-b99f876b74d4a77f.dll+0x4e52a83 > #2 victory-image-b99f876b74d4a77f.dll+0x4e529c4 > #3 victory-image-b99f876b74d4a77f.dll+0x5ab13ed > #4 victory-image-b99f876b74d4a77f.dll+0x21b70b1 > #5 victory-image-b99f876b74d4a77f.dll+0x1d83996 > #6 victory-image-b99f876b74d4a77f.dll+0x81afb9 > #7 victory-image-b99f876b74d4a77f.dll+0x53ec079 > #8 victory-image-b99f876b74d4a77f.dll+0x53ebf66 > #9 victory-image-b99f876b74d4a77f.dll+0x661f0 > #10 victory-image-b99f876b74d4a77f.dll+0x1d109c9 > #11 victory-image-b99f876b74d4a77f.dll+0x5a91c0d > #12 victory-image-b99f876b74d4a77f.dll+0x56a1e5a > #13 victory.exe+0x5c879b > #14 victory.exe+0x5ce334 > #15 victory.exe+0x145846 > #16 kernel32.dll+0x11719 > #17 ntdll.dll+0x10e0f > ``` Sorry, I just now realized that the person replying saying that they have a similar issue and your issue are not the same. I'll remove the issue mention
github-bot closed this pull request 2026-12-01 22:14:23 +00:00
Author
Owner

@⁠Not4Eric on GitHub · 2026-12-01 22:12 UTC · original

Cherry-picked into main as b3cc597 via #83, closing

**@⁠Not4Eric** on GitHub · 2026-12-01 22:12 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/80#issuecomment-7327432012) Cherry-picked into main as b3cc597 via #83, closing

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.