test(agc): wait for the previous DCC mip case's image before reusing its memory #19335
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19335"
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 chitters2004 on 2026-11-13T04:13:10Z.
What
agc_storage_dcc_mip_writebackfails intermittently under load, with64 KiB R_X 512x512, 3 mips, DCC keys uncompressed, an access to the first unit: the write-back stored 344064 of 344064 texels, expected only the accessed unit's. We saw it on Windows (lavapipe) CI runs ofmain311f0472eeand of other branches. The driver is right; the test's timing is not.Each case of
dccMipWriteBackTestsfrees its block, and the nextVirtualAllocreturns the same address. The previous case's image is still referenced for a short time after its memory is unregistered. Normally it is dropped before the next case creates its image. Under load the drop can land after the DCC case's flush.StorageTexture::storesWhole()then sees another live image over a DCC-keyed mip chain and stores the whole chain, as it must.Before creating its image, each case now waits (reaping, bounded at 10 s) until the previous case's image is gone. If it is not, the test fails with
the previous case's image is still live over the reused memory, so this image would store whole. Test only: +8 lines intests/Recorder.cpp.Tested
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code