agc: with APS5_ASYNC_DRAW_COMPILE a dispatch whose shader is prepared in the background is dropped silently; vkQuake loses BLAS builds and every refit faults #25225
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 Ketz7 on 2026-11-21T19:39:10Z.
What happens
With
APS5_ASYNC_DRAW_COMPILEset, a compute dispatch whose shader is still being prepared or specialized on the library prebuild pool is dropped without any log line:Dispatch.cppcatchesDrawCompilePendingand returns (froma9259f8865). A dropped draw costs one frame, but a dropped compute dispatch loses data the guest keeps using.vkQuake (PPSA99010) builds each animated model's BLAS once at level load. When the encode pass of a BLAS is one of the dropped dispatches, the structure never gets its header (
bvh_offset) or its root parent link (0xffffffff, written by RADV'sencode.comp). Every refit of that BLAS afterwards (0x20c61cb00) walks up to the root, reads a parent link of 0 instead of the invalid marker, computes a wrappedparent_index, and does itsatomicAddoninternal_ready_count128 MiB past the buffer. That gives a steady stream ofBDA access failed ... instruction=0xf60 bytes=4 reason=1(about 5,000 a minute), and each failing refit's write-back is discarded.This happens even with every pipeline cached. The background preparation still runs once per shader per session, and the first dispatches of each shader at level load are the ones that get dropped.
Title, test or build step
PPSA99010 (vkQuake homebrew), demo playback,
APS5_ASYNC_DRAW_COMPILE=1AnyPS5 commit
0e001115a9(main); also seen on1122de2b35and on branches built from9dcf983System
Windows 11 Pro 10.0.26300, AMD Radeon RX 7900 XT, AMD proprietary driver 26.10.1 (32.0.32015.7029)
Host report
n/a
Steps to reproduce
APS5_ASYNC_DRAW_COMPILE=1.instruction=0xf60in stderr.Log
What was checked
APS5_ASYNC_DRAW_COMPILE: 0 faults.bvh_offsetreads 0 at every refit. Every BLAS whose encode was recorded has root parent0xffffffffand never faults.ready_count + 4 * (((0 - first_internal) >> 7) + 1).note_bda_writetracking and with the write bitmap of #22944.