Bug report from Fable 5.2, running on Radeon 8060S - many textures don't load, requests not getting through translation layer. #48

Open
opened 2026-11-26 03:34:30 +00:00 by github-bot · 1 comment
Owner

@⁠SPFCChris on GitHub · 2026-11-25 12:56 UTC · original

Radeon 8060S (Strix Halo), Windows: world geometry drawn with placeholder textures; page-feedback image empty

Summary

On a Radeon 8060S under Windows the world loads and runs at 2 to 5 fps, but
buildings, roads and terrain are black. Props, signs, fences, grass and trees
are lit and textured. A full target dump of one frame shows the colour is
already missing in the G-buffer albedo, the affected draws have the title's
1x1 placeholder texture bound, and the 240x135 page-feedback image is all
zero at present. I could not find where the feedback is lost.

Environment

Commit 71652a2 (same picture on 4cbe9d7)
Build cargo build --profile diag -p victory --features diagnostics
GPU AMD Radeon 8060S (Ryzen AI Max+ 395, RDNA 3.5 integrated), driver 32.0.32029.2010
Memory 128 GB unified, split 64 GB system / 64 GB video in firmware
OS Windows 11, build 10.0.26300
Console profile --console series-x
Settings VICTORY_PRESENT_TARGET=1x1:1, VICTORY_HAIR=1; shader cache reused with VICTORY_SHADER_BUILD_OF
Host capabilities logged wave sizes 32-64, mesh shaders yes

Scene: the opening sequence at night, 60 to 240 s after the world is reached,
with a warm shader and pipeline cache (0 being made in the frame line).

What the frame dump shows

Frame 3137, dumped with VICTORY_CAPTURE, VICTORY_DUMP_TARGETS=1,
VICTORY_DUMP_RAW=1 and wantall. 6,307 passes recorded.

  1. G-buffer albedo (2560x1440, format 27, target 42). Palm trunk, pole,
    pallet and grass are textured. Building walls and the road are black with
    only streak-like detail on them. The geometry is there: the other G-buffer
    targets show the same walls and road.
  2. Placeholder bindings. Over the 612 draws whose pixel shader is
    PS_DeferredTextured* or PS_TexturedDeferred*, the most common placed
    texture in the pixel shader's tables is a 1x1 format-41 texture at title
    address 0xd57a50000 (796 bindings), e.g. at s0+1296 and s0+1304 of
    the same draw. Next are 64x64 f56 (471), 1152x1312 f71 (156) and
    256x256 f61 (156).
  3. Per-draw table bases. In 557 of those 612 draws the pixel shader's
    user data u9 and u10 point at heap slots the pass text prints as
    null; 55 draws have Unordered or Placed there. I do not know whether
    a null first slot is normal for these tables.
  4. Page-feedback image. The 240x135 format-42 texture that
    CS_ProcessFeedbackBuffer reads and CS_ClearPageFeedback clears is all
    zero at present (target values format=42 low=0.0 high=0.0 w=240 h=135).
    Order in the frame: CS_ClearFeedbackSetup (pass 687),
    CS_ProcessFeedbackBuffer (693), CS_ComputeFeedbackList (696),
    CS_ClearPageFeedback (699), then the G-buffer draws from pass 977. If
    the G-buffer draws write feedback into that image after the clear, it
    should not be empty at present. The only passes whose printed heap slots
    name that resource are CS_ClearPageFeedback and one
    MS_VS_LinearDepthPreSkin+PS_LinearDepth draw. It was also empty in a
    dump on 4cbe9d7.

Caveat: I only see the image as it is at present, and only bindings the pass
text prints. Writes through a directly indexed heap slot would not show up
in point 4's list.

Streaming

With VICTORY_LOG=victory_hle::modules::dstorage=debug,victory_gpu::texture=debug,info:

  • No dstorage: request failed lines in the run (tens of thousands of
    requests), so reads, zlib and BCPack all succeed.
  • In the world: 500 to 5,700 requests per 5 s, 3 to 150 MB/s, up to 581
    requests waiting, and at one point 30 workers busy for 3.4 MB/s.
  • 187 a sampled texture's memory is not committed lines, mostly 1024x1024
    with 9 mips whose memory size is 4,096 or 65,536 bytes.

Ruled out

Test Result
VICTORY_ALWAYS_COPY=1 no change
VICTORY_AMBIENT=3 lit objects blow out to white, walls and road stay black
Four minutes in the world black surfaces persist with no pipelines being made
cargo test -p victory-shader --lib -- --test-threads=1 266 passed, 0 failed, 6 ignored

The same test binary run with default threads died once with
0xc0000005 inside d3d10warp.dll.

Other things in the logs

  • 35 compute shaders do not translate (an address in an SGPR that is no root parameter). All 35 containers name XboxBvhBuilder, and
    victory translate emits all 35 offline, so this is the VICTORY_RAYS
    gate, as intended.
  • mesh 72da0ba1efaec1e0 (MS_VS_TransformD_7095f810) does not translate:
    emit: mesh outputs beyond the host's 32 KiB.
  • host pipeline refused error=Unspecified error (0x80004005) for
    compute 39f0e9aeb156a61c (CS_ScreenProbes_ActivateRays_d60186e6), on
    every run.
  • host mesh pipeline refused error=The parameter is incorrect. (0x80070057)
    for mesh f5e50eb2108c425b with pixel ce3f0432a08f1d35
    (PS_WindshieldWiperMask_54c2b473).
  • a bindless unordered access view too big to copy back, logged once per
    run with bytes=11010048 (and bytes=37748736 on the first run).
  • view the host does not allow unordered=true format=53 flags=2 and
    a buffer view the host does not allow first=... count=0 size=4 width=193986560,
    once per run.
  • Two runs out of eleven ended with host GPU device removed ... 0x887A0006 (driver timeout), 1 to 3 minutes into the world.
  • One run died in the menus with unhandled exception 0xc0000005 at ntdll.dll+0x12d844, called from victory.exe+0xe107d.

Frame rate and memory

Median about 2.7 fps in the world (0.9 to 5.0). The process commits about
30 GB and the driver reports about 23 GB of video memory in use. With only
32 GB given to the system the machine paged at 20,000 to 40,000 pages per
second and dropped to about 1.5 fps; the 64/64 split removed the paging.

Question

Is the page-feedback image expected to be empty at present on your machine
in this scene? If it is filled there, that would point at how the G-buffer
shaders' feedback writes reach it on this host. I can attach the pass list,
the target PNGs and logs for the frame, or run other diagnostics.

frame-3137 frame-3137-42-0x29d98d16920-2560x1440-f27
**@⁠SPFCChris** on GitHub · 2026-11-25 12:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/48) # Radeon 8060S (Strix Halo), Windows: world geometry drawn with placeholder textures; page-feedback image empty ## Summary On a Radeon 8060S under Windows the world loads and runs at 2 to 5 fps, but buildings, roads and terrain are black. Props, signs, fences, grass and trees are lit and textured. A full target dump of one frame shows the colour is already missing in the G-buffer albedo, the affected draws have the title's 1x1 placeholder texture bound, and the 240x135 page-feedback image is all zero at present. I could not find where the feedback is lost. ## Environment | | | |---|---| | Commit | `71652a2` (same picture on `4cbe9d7`) | | Build | `cargo build --profile diag -p victory --features diagnostics` | | GPU | AMD Radeon 8060S (Ryzen AI Max+ 395, RDNA 3.5 integrated), driver 32.0.32029.2010 | | Memory | 128 GB unified, split 64 GB system / 64 GB video in firmware | | OS | Windows 11, build 10.0.26300 | | Console profile | `--console series-x` | | Settings | `VICTORY_PRESENT_TARGET=1x1:1`, `VICTORY_HAIR=1`; shader cache reused with `VICTORY_SHADER_BUILD_OF` | | Host capabilities logged | wave sizes 32-64, mesh shaders yes | Scene: the opening sequence at night, 60 to 240 s after the world is reached, with a warm shader and pipeline cache (`0 being made` in the frame line). ## What the frame dump shows Frame 3137, dumped with `VICTORY_CAPTURE`, `VICTORY_DUMP_TARGETS=1`, `VICTORY_DUMP_RAW=1` and `wantall`. 6,307 passes recorded. 1. **G-buffer albedo (2560x1440, format 27, target 42).** Palm trunk, pole, pallet and grass are textured. Building walls and the road are black with only streak-like detail on them. The geometry is there: the other G-buffer targets show the same walls and road. 2. **Placeholder bindings.** Over the 612 draws whose pixel shader is `PS_DeferredTextured*` or `PS_TexturedDeferred*`, the most common placed texture in the pixel shader's tables is a 1x1 format-41 texture at title address `0xd57a50000` (796 bindings), e.g. at `s0+1296` and `s0+1304` of the same draw. Next are 64x64 f56 (471), 1152x1312 f71 (156) and 256x256 f61 (156). 3. **Per-draw table bases.** In 557 of those 612 draws the pixel shader's user data `u9` and `u10` point at heap slots the pass text prints as `null`; 55 draws have `Unordered` or `Placed` there. I do not know whether a null first slot is normal for these tables. 4. **Page-feedback image.** The 240x135 format-42 texture that `CS_ProcessFeedbackBuffer` reads and `CS_ClearPageFeedback` clears is all zero at present (`target values format=42 low=0.0 high=0.0 w=240 h=135`). Order in the frame: `CS_ClearFeedbackSetup` (pass 687), `CS_ProcessFeedbackBuffer` (693), `CS_ComputeFeedbackList` (696), `CS_ClearPageFeedback` (699), then the G-buffer draws from pass 977. If the G-buffer draws write feedback into that image after the clear, it should not be empty at present. The only passes whose printed heap slots name that resource are `CS_ClearPageFeedback` and one `MS_VS_LinearDepthPreSkin+PS_LinearDepth` draw. It was also empty in a dump on `4cbe9d7`. Caveat: I only see the image as it is at present, and only bindings the pass text prints. Writes through a directly indexed heap slot would not show up in point 4's list. ## Streaming With `VICTORY_LOG=victory_hle::modules::dstorage=debug,victory_gpu::texture=debug,info`: - No `dstorage: request failed` lines in the run (tens of thousands of requests), so reads, zlib and BCPack all succeed. - In the world: 500 to 5,700 requests per 5 s, 3 to 150 MB/s, up to 581 requests waiting, and at one point 30 workers busy for 3.4 MB/s. - 187 `a sampled texture's memory is not committed` lines, mostly 1024x1024 with 9 mips whose memory size is 4,096 or 65,536 bytes. ## Ruled out | Test | Result | |---|---| | `VICTORY_ALWAYS_COPY=1` | no change | | `VICTORY_AMBIENT=3` | lit objects blow out to white, walls and road stay black | | Four minutes in the world | black surfaces persist with no pipelines being made | | `cargo test -p victory-shader --lib -- --test-threads=1` | 266 passed, 0 failed, 6 ignored | The same test binary run with default threads died once with `0xc0000005` inside `d3d10warp.dll`. ## Other things in the logs - 35 compute shaders do not translate (`an address in an SGPR that is no root parameter`). All 35 containers name `XboxBvhBuilder`, and `victory translate` emits all 35 offline, so this is the `VICTORY_RAYS` gate, as intended. - `mesh 72da0ba1efaec1e0` (`MS_VS_TransformD_7095f810`) does not translate: `emit: mesh outputs beyond the host's 32 KiB`. - `host pipeline refused error=Unspecified error (0x80004005)` for `compute 39f0e9aeb156a61c` (`CS_ScreenProbes_ActivateRays_d60186e6`), on every run. - `host mesh pipeline refused error=The parameter is incorrect. (0x80070057)` for `mesh f5e50eb2108c425b` with `pixel ce3f0432a08f1d35` (`PS_WindshieldWiperMask_54c2b473`). - `a bindless unordered access view too big to copy back`, logged once per run with `bytes=11010048` (and `bytes=37748736` on the first run). - `view the host does not allow unordered=true format=53 flags=2` and `a buffer view the host does not allow first=... count=0 size=4 width=193986560`, once per run. - Two runs out of eleven ended with `host GPU device removed ... 0x887A0006` (driver timeout), 1 to 3 minutes into the world. - One run died in the menus with `unhandled exception 0xc0000005 at ntdll.dll+0x12d844`, called from `victory.exe+0xe107d`. ## Frame rate and memory Median about 2.7 fps in the world (0.9 to 5.0). The process commits about 30 GB and the driver reports about 23 GB of video memory in use. With only 32 GB given to the system the machine paged at 20,000 to 40,000 pages per second and dropped to about 1.5 fps; the 64/64 split removed the paging. ## Question Is the page-feedback image expected to be empty at present on your machine in this scene? If it is filled there, that would point at how the G-buffer shaders' feedback writes reach it on this host. I can attach the pass list, the target PNGs and logs for the frame, or run other diagnostics. <img width="1920" height="1080" alt="frame-3137" src="https://github.com/user-attachments/assets/b63b15ad-e781-4bc5-bd27-0410a8ceac7a" /> <img width="1280" height="720" alt="frame-3137-42-0x29d98d16920-2560x1440-f27" src="https://github.com/user-attachments/assets/a1c99994-931b-4581-a5a8-e58fe67c4ab9" />
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:34:30 +00:00
Author
Owner

@⁠SPFCChris on GitHub · 2026-11-25 17:09 UTC · original

Follow-up: the cause is found and a fix is in #148. The title and summary of this issue were wrong. It was never textures: the large GPU-culled geometry was not being drawn at all, because scalar loads through a heap-indexed buffer view were emitted as constant buffer reads (details and a test in the PR).

What is below did not belong in the PR but may save someone time.

Still open on the 8060S after the fix

  • Night scenes are far too bright at the default VICTORY_AMBIENT, now that the surfaces exist. VICTORY_AMBIENT=0.07 looks right at night, as the README says.
  • Right after some scene cuts, characters are at their lowest level of detail and an object or two is missing for a while. It may just be streaming at 2 fps; I have not looked into it.
  • Frame rate in the heavy street scene: median about 2 fps at 4,800 to 5,500 draws a frame.
  • Device removals: six in the 28 runs before the fix, none in the five runs since. The PR's test shows the old read suspending the device on its own, so they may have been the same bug; five runs is not enough to say.

Wave packing on the 8060S (compute)

A probe that records, per thread of one group, its lane, wave size and its wave's first flat id (after Marvisak/VIctory#2126's lane_order_tests):

  • With WaveSize(64), groups of 64x2, 64x4, 24x8, 12x12 and 10x10 threads are not packed as wave-aligned runs of flat ids, so the relabelling in Lower::console_flat gives two waves one base and half the ids collide (64 of 128, 128 of 256, 80 of 144, 64 of 100).
  • With WaveSize(32), the same holds for 32x2, 32x4, 32x8, 64x2, 64x4, 32x32, 24x8, 12x12 and 10x10.
  • 1-D groups, 8x8, 16x16, 8x16, 32x32 (at 64), 4x4x4, 8x8x2, 8x8x4 and 16x8x2 are fine.
  • Without a wave size the driver picked 64 lanes for every shape but 8x4 (32).

Only one or two of this title's 1,306 lane-dependent compute programs use an affected shape (one is 6x6), so this was not what removed the geometry, and porting #2126's ticket made no visible difference here. It is still a real hole on this GPU.

Mesh shaders: 64 lanes, threads 0-63 and 64-127, for 128-, 64-, 32- and 16-thread groups, with and without group-shared memory and barriers.

Per-opcode comparison

The fuzzer from Marvisak/VIctory#1614, ported to this fork, 8060S against WARP: 307 opcodes, 160 inputs each, 30 differ. All 30 also differ on the RX 9070 in the run published in #82, with the same number of differing cases per opcode and identical values on all 173 rows the two reports share. The eight extra opcodes in #82 (the f16 FMA family, v_add_f64, v_mul_f64) do not differ here. So nothing at the instruction level sets the 8060S apart from the RX 9070.

Ruled out, each by a run in the title

Tried Result
VICTORY_ALWAYS_COPY=1 no change
VICTORY_COPY_MEMORY=1 same missing geometry, at 0.3 fps
Depth pyramid: mip chain dumped consistent (each mip the minimum of the finer one)
Depth-pyramid passes skipped (VICTORY_SKIP_PIPELINES) more distant objects appear, ground and buildings still missing
Indirect clamp budget, logged when zeroed never above 6.3M of 134M
VICTORY_HOIST_CLAMPS=0 fewer props drawn, same missing geometry
#92 no change
Upstream c0228d93 (9-bit primitive indices) no change
Marvisak/VIctory#2126 (wave ticket) no change
Marvisak/VIctory#2245 (indices written once) no change

GPU-based validation (VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_GBV=1) is what found it, with its first two messages. The title stops during loading under it on this machine, so it could not be used past that point.

#88

Checked on the title's whole shader archive: all 25,605 emitted shaders are byte-identical with and without it, the tallies are the same (26,084 programs translated, the same 195 and 71 refusals), and translating everything takes 61 s instead of 72 to 74 s on 32 threads.

AI-assisted (Claude Code); no game data.

**@⁠SPFCChris** on GitHub · 2026-11-25 17:09 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/48#issuecomment-7169089567) Follow-up: the cause is found and a fix is in #148. The title and summary of this issue were wrong. It was never textures: the large GPU-culled geometry was not being drawn at all, because scalar loads through a heap-indexed buffer view were emitted as constant buffer reads (details and a test in the PR). What is below did not belong in the PR but may save someone time. ## Still open on the 8060S after the fix - Night scenes are far too bright at the default `VICTORY_AMBIENT`, now that the surfaces exist. `VICTORY_AMBIENT=0.07` looks right at night, as the README says. - Right after some scene cuts, characters are at their lowest level of detail and an object or two is missing for a while. It may just be streaming at 2 fps; I have not looked into it. - Frame rate in the heavy street scene: median about 2 fps at 4,800 to 5,500 draws a frame. - Device removals: six in the 28 runs before the fix, none in the five runs since. The PR's test shows the old read suspending the device on its own, so they may have been the same bug; five runs is not enough to say. ## Wave packing on the 8060S (compute) A probe that records, per thread of one group, its lane, wave size and its wave's first flat id (after Marvisak/VIctory#2126's `lane_order_tests`): - With `WaveSize(64)`, groups of 64x2, 64x4, 24x8, 12x12 and 10x10 threads are **not** packed as wave-aligned runs of flat ids, so the relabelling in `Lower::console_flat` gives two waves one base and half the ids collide (64 of 128, 128 of 256, 80 of 144, 64 of 100). - With `WaveSize(32)`, the same holds for 32x2, 32x4, 32x8, 64x2, 64x4, 32x32, 24x8, 12x12 and 10x10. - 1-D groups, 8x8, 16x16, 8x16, 32x32 (at 64), 4x4x4, 8x8x2, 8x8x4 and 16x8x2 are fine. - Without a wave size the driver picked 64 lanes for every shape but 8x4 (32). Only one or two of this title's 1,306 lane-dependent compute programs use an affected shape (one is 6x6), so this was not what removed the geometry, and porting #2126's ticket made no visible difference here. It is still a real hole on this GPU. Mesh shaders: 64 lanes, threads 0-63 and 64-127, for 128-, 64-, 32- and 16-thread groups, with and without group-shared memory and barriers. ## Per-opcode comparison The fuzzer from Marvisak/VIctory#1614, ported to this fork, 8060S against WARP: 307 opcodes, 160 inputs each, 30 differ. All 30 also differ on the RX 9070 in the run published in #82, with the same number of differing cases per opcode and identical values on all 173 rows the two reports share. The eight extra opcodes in #82 (the f16 FMA family, `v_add_f64`, `v_mul_f64`) do not differ here. So nothing at the instruction level sets the 8060S apart from the RX 9070. ## Ruled out, each by a run in the title | Tried | Result | |---|---| | `VICTORY_ALWAYS_COPY=1` | no change | | `VICTORY_COPY_MEMORY=1` | same missing geometry, at 0.3 fps | | Depth pyramid: mip chain dumped | consistent (each mip the minimum of the finer one) | | Depth-pyramid passes skipped (`VICTORY_SKIP_PIPELINES`) | more distant objects appear, ground and buildings still missing | | Indirect clamp budget, logged when zeroed | never above 6.3M of 134M | | `VICTORY_HOIST_CLAMPS=0` | fewer props drawn, same missing geometry | | #92 | no change | | Upstream `c0228d93` (9-bit primitive indices) | no change | | Marvisak/VIctory#2126 (wave ticket) | no change | | Marvisak/VIctory#2245 (indices written once) | no change | GPU-based validation (`VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_GBV=1`) is what found it, with its first two messages. The title stops during loading under it on this machine, so it could not be used past that point. ## #88 Checked on the title's whole shader archive: all 25,605 emitted shaders are byte-identical with and without it, the tallies are the same (26,084 programs translated, the same 195 and 71 refusals), and translating everything takes 61 s instead of 72 to 74 s on 32 threads. AI-assisted (Claude Code); no game data.
This discussion has been locked. Commenting is limited to contributors.
No description provided.