Bug report from Fable 5.2, running on Radeon 8060S - many textures don't load, requests not getting through translation layer. #48
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#48
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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
71652a2(same picture on4cbe9d7)cargo build --profile diag -p victory --features diagnostics--console series-xVICTORY_PRESENT_TARGET=1x1:1,VICTORY_HAIR=1; shader cache reused withVICTORY_SHADER_BUILD_OFScene: the opening sequence at night, 60 to 240 s after the world is reached,
with a warm shader and pipeline cache (
0 being madein the frame line).What the frame dump shows
Frame 3137, dumped with
VICTORY_CAPTURE,VICTORY_DUMP_TARGETS=1,VICTORY_DUMP_RAW=1andwantall. 6,307 passes recorded.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.
PS_DeferredTextured*orPS_TexturedDeferred*, the most common placedtexture in the pixel shader's tables is a 1x1 format-41 texture at title
address
0xd57a50000(796 bindings), e.g. ats0+1296ands0+1304ofthe same draw. Next are 64x64 f56 (471), 1152x1312 f71 (156) and
256x256 f61 (156).
user data
u9andu10point at heap slots the pass text prints asnull; 55 draws haveUnorderedorPlacedthere. I do not know whethera null first slot is normal for these tables.
CS_ProcessFeedbackBufferreads andCS_ClearPageFeedbackclears is allzero 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. Ifthe 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_ClearPageFeedbackand oneMS_VS_LinearDepthPreSkin+PS_LinearDepthdraw. It was also empty in adump 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:dstorage: request failedlines in the run (tens of thousands ofrequests), so reads, zlib and BCPack all succeed.
requests waiting, and at one point 30 workers busy for 3.4 MB/s.
a sampled texture's memory is not committedlines, mostly 1024x1024with 9 mips whose memory size is 4,096 or 65,536 bytes.
Ruled out
VICTORY_ALWAYS_COPY=1VICTORY_AMBIENT=3cargo test -p victory-shader --lib -- --test-threads=1The same test binary run with default threads died once with
0xc0000005insided3d10warp.dll.Other things in the logs
an address in an SGPR that is no root parameter). All 35 containers nameXboxBvhBuilder, andvictory translateemits all 35 offline, so this is theVICTORY_RAYSgate, 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)forcompute 39f0e9aeb156a61c(CS_ScreenProbes_ActivateRays_d60186e6), onevery run.
host mesh pipeline refused error=The parameter is incorrect. (0x80070057)for
mesh f5e50eb2108c425bwithpixel ce3f0432a08f1d35(
PS_WindshieldWiperMask_54c2b473).a bindless unordered access view too big to copy back, logged once perrun with
bytes=11010048(andbytes=37748736on the first run).view the host does not allow unordered=true format=53 flags=2anda buffer view the host does not allow first=... count=0 size=4 width=193986560,once per run.
host GPU device removed ... 0x887A0006(driver timeout), 1 to 3 minutes into the world.unhandled exception 0xc0000005 at ntdll.dll+0x12d844, called fromvictory.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.
rx9070xtbranch #218@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
VICTORY_AMBIENT, now that the surfaces exist.VICTORY_AMBIENT=0.07looks right at night, as the README says.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):WaveSize(64), groups of 64x2, 64x4, 24x8, 12x12 and 10x10 threads are not packed as wave-aligned runs of flat ids, so the relabelling inLower::console_flatgives two waves one base and half the ids collide (64 of 128, 128 of 256, 80 of 144, 64 of 100).WaveSize(32), the same holds for 32x2, 32x4, 32x8, 64x2, 64x4, 32x32, 24x8, 12x12 and 10x10.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
VICTORY_ALWAYS_COPY=1VICTORY_COPY_MEMORY=1VICTORY_SKIP_PIPELINES)VICTORY_HOIST_CLAMPS=0c0228d93(9-bit primitive indices)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.