AGC: VLC (PPSA85300) draws only its background; the logo and text draws show nothing although their storage images hold the texels #5731
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?
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-14T08:25:17Z.
VLC (PPSA85300 v0.4, a libvlc 3.0 port that bundles RADV and draws its interface with Dear ImGui 1.92.9b) runs on Windows at about 81 fps, but its first-run setup page shows only the background: a brown-to-black gradient and the four page dots. The "Welcome to VLC" text, the "Choose your language" buttons, the "Continue"/"Skip" hints and the VLC logo never appear. Debug readbacks show the logo and both font atlases hold the right texels, and the draws that should show them are issued with the same captured state as the visible ones.
Setup
maina3aeaf88, Windows 11 Pro 25H2, RTX 3080 (NVIDIA 591.86), WinLibs GCC 15.2.0, Release.--windows --registry --windows-fixed-base 0x400000(VLC reads its GOT at a fixed base, #4013), fresh run folder, 40 to 90 s per run./app0/vlc-ps5.log):0 of 486 imports unresolved,gfx: PlayStation 5 GPU (RADV NAVI21), Vulkan 1.4.354,ui: 7 fallback fonts, and no font or image load errors.What the frames show
APS5_DUMP_FRAMESat presents 0, 600, 1200 and 2400: gradient and dots only, with no pixel above R+G+B > 400 on the 960x540 dump. In VLC's source the hints are drawn at the same alpha as the visible gradient, with no fade-in, so at least the hints are not hidden by the page's entrance animation.None of these change the frame:
APS5_COPY_SYNC,APS5_CPU_COPIES,APS5_DRAIN_ALL,APS5_SYNC_TEXTURE_UPLOAD,APS5_NO_SAMPLER_CACHE,APS5_NO_TEXTURE_HASH.APS5_COPY_VERIFYgives the same pixel hash as the baseline.APS5_NO_TEXTURE_CACHEis inconclusive: at 14.6 fps the 90 s run reached only present ~450, still early in the entrance animation, and showed no text either.APS5_TRACE_SKIPSlogs nothing.Where the texels are
RADV writes the textures with compute stores and color draws, and AnyPS5 samples them through the storage-image path (
APS5_TRACE_TEXTURES):Temporary local prints and readbacks (not part of any branch) showed:
cachedTexturelookup of these three addresses that was printed (the first 5, then every 500th) takes the pending storage view (a new view, then cache hits on the sameTexture). None falls back to a guest-memory snapshot.0x4004460000452x512 down to the mip tail) and the atlases resolve to the sameStorageTextureimage that the sampled view is created on.vkCmdCopyImageToBufferofsource->Image()at present 1000:VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT | VK_IMAGE_CREATE_EXTENDED_USAGE_BIT(Texture.cpp:1111), so the vk 37 (R8G8B8A8_UNORM) view of the vk 41 (R8G8B8A8_UINT) image is valid.The draws
The swapchain gets four draws per frame (captured at present ~1001, two consecutive frames). They have identical scissor (full 3840x2160), viewport,
CB_TARGET_MASK0xf and blend (CB_BLEND0_CONTROL0x65010504, standard ImGui alpha blending, except draw 1 with blending off):The content column is inferred from VLC's ImGui draw order; UVs and vertex data were not captured.
Draws 2 and 4 should sample the same atlas, and their scissor, viewport, target mask and blend match. Draw 2 only needs the white pixel and is visible. Draw 4 samples glyph positions in the 512x256 atlas, which holds them, and nothing appears. Draw 3 samples the logo, whose mips 0 to 3 are fully populated, and nothing appears.
So draws 3 and 4 are issued with the same captured state as draw 2 and contribute no visible pixels. I have not determined whether the difference is in the sampled texels, the UVs or the vertex data. The bind-site print at
ShaderResources.cpp~3351 fired for the first lookups (presents 0 to 5) but not during the captured steady-state draws, so the per-draw T# and descriptor path is the next thing to look at.I can run any diagnostic on this machine (including a print in the graphics T# resolution path if someone points me at it) or capture a RenderDoc trace.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-14T08:27:53Z.
Follow-up on the gap noted above: the 512x256 atlas (
0x4005c00000), which the interface samples from present ~875, does hold the page's glyphs. I read backsource->Image()of its storage view once at present 1200, using the same temporary local hook as before (vkCmdCopyImageToBufferin the general layout).The run itself still showed no text. So the logo (mips 0 to 3) and both atlases hold correct texels in the same
VkImagethat the views sampled by draws 3 and 4 are created on. What is left is the read side of those draws: the T#/S# they resolve, the sampler, or the fragment shader's result.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T10:01:37Z.
It is not Windows- or NVIDIA-specific: Linux with an AMD GPU shows the same page.
Bazzite 44 (Fedora distrobox), GCC 16, Release, RX 7700 XT with RADV (Mesa 26),
maineecf90953plus #4593 (--linux-fixed-base 0x400000; it needs the duplicateR_X86_64_DTPMOD64/DTPOFF64/TPOFF64/STT_TLSlines that #5262 added removed to build). Catalog release,eboot.binunwrapped, 55 s run.gfx: swapchain 3840x2160, format 44, 3 images, FIFO,ui: 7 fallback fonts, no load errors.So the read side you narrowed it to fails the same way on RADV, on a native Linux build, as on the Windows/NVIDIA one.
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T10:18:15Z.
A lead on the read side: on Linux/RX 7700 XT the whole page appears when the draw cache's register key is off.
Same setup as my comment above. Each run: 48 s, a capture of the window at 40 s, and a count of pixels above 52% grey (the baseline frame has 48, which are the page dots).
APS5_NO_DRAW_KEY=1APS5_VERIFY_DRAW_ENTRIES=1NO_DRAW_KEYAPS5_NO_SAMPLED_FROM_STORAGE,NO_RESIDENT_TARGETS,SYNC_DRAWS,IGNORE_DEPTH_TEST,NO_GPL,NO_DRAW_RECIPE,NO_PIPELINE_CACHE,DRAW_KEY_ALL_USER_WORDS,NO_KEY_FAST_PATHNO_RESIDENT_TARGETS)So it isn't only the textured draws: the buttons' rounded rectangles are missing too, and they come back together with the text when a register-key hit is not used.
VERIFY_DRAW_ENTRIESturns each hit into a recapture and draws from that, which is why it shows the page too.What the checks that ship with the cache report for these runs:
APS5_VERIFY_DRAW_RECIPE: nothe decoders read ... register ..., which DrawKeyRegisters lacksand nothe entry's decode differs from a fresh decode, and the page stays missing, so the cached decode is not what goes wrong.APS5_VERIFY_DRAW_ENTRIES: nostage ... of a hit captured differently, so a hit's captured regions equal a fresh capture of the same draw.So the hit path skips something per draw that the miss path does, and that something isn't in the entry's regions or decode. I'm looking at what differs between
drawHitandmaterializeDrawStageinDraw.cppnext.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T11:48:57Z.
One isolating switch I did not see in the run list:
APS5_NO_DRAW_SRT_ENTRIES=1disables the shader-stage draw-entry cache itself (Driver::drawEntries()), whileAPS5_NO_DRAW_KEY=1only switches to the full-content key and still allows entry hits. SinceAPS5_NO_DRAW_RECIPE=1did not restore the UI, testing the full entry bypass would distinguish stale compiled-stage reuse from draw-key calculation. If it restores the page, the next useful comparison is the cached vs freshly recompiledRecompileResult/push constants for a hit, because the captured regions and decode already match.Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T11:50:30Z.
@MarcZX100 it's settled now: the stale part is the compiled stage, not the key calculation. On the mesh path the driver writes each draw's index buffer descriptor into the hidden user words of the front program (
MeshIndexBufferUserWord), and the stage compiled for the first draw bakes that descriptor in. The register key and the entry's regions don't cover those words, so ImGui's later draws, which have the same registers and their own index ranges, hit the entry and redraw the first draw's indices. #5791 keeps the descriptor with each mesh variant, and with it the whole first-run page renders on Linux/RX 7700 XT (my results are on that PR).Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:42:04Z.
#5791 (
fix(agc): validate mesh index descriptors on cached draws) is merged onmainas03c4cb5e7(2026-10-15). It matches the cause found above: the mesh index buffer descriptor is now kept with each mesh stage variant, must match before a cached entry is reused, and is part of variant deduplication (DrawCapture.cpp,DrawLookup.cpp,DrawCache.cpp). It adds the regressiontests/execution/MeshIndexCache.cpp, which the execution-test glob picks up.The PR reports the full first-run page on Windows/RTX 4070 Ti SUPER, and @YossiYad's results on the PR cover Linux/RX 7700 XT. The PR text references this issue without a closing keyword, so it stayed open.
I checked this from the source on
main44df21632only; I did not run VLC.Written with AI assistance (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-16T23:43:11Z.
Fixed by #5791 (
03c4cb5e7), which addresses the cause YossiYad found; the full page now renders on Windows and Linux. Please reopen if VLC still draws only the background on current main.