fix(agc): store resident linear color targets at completion points, limited to their drawn rectangles #9685
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9685"
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 thuanquang on 2026-10-22T08:29:16Z.
What
A recorded draw into a resident linear color target stored the whole image to guest memory right after the draw (
keepRecordedDraw'sFlushPending(..., "linear target")). Every draw copied the full surface and waited for the previous draw's store in the open batch (the pending-writer check ofFlushPending). The recorded copy also landed over CPU stores made afterDrawreturned (#8152).A draw now records its scissor, clipped to the image, in the target, and lists the target as drawn. The target keeps the rectangles themselves; two merge only when their union is a rectangle. The listed targets are stored before each point where the guest can first observe that the draws completed:
APS5_SYNC_FLIP=1;VulkanDevice::WaitIdle;WriteLabelOnGpu);RELEASE_MEMinpreparePacketMemoryand incommitLabel, which submit the store's batch before the interrupt can be delivered.The idle store, the access hooks and the eviction store run as before, and they also store by rectangles. The CPU-kept access hook no longer skips or evicts a drawn target, because that target's store writes CPU-written blocks inside its rectangles. This is the synchronization contract with regression coverage that @MarcZX10 asked for on #9217 (proposal).
A store of a drawn target copies the rectangles' bounding box out of the image and writes, row by row at the guest pitch, only the union of the rectangles' column runs on each row into the host import. Each run of 64 KiB blocks gets one
MarkWritten.main's rule that CPU-written 64 KiB blocks stay the CPU's.A store no longer waits for the same target's previous store: when the target has a host import, the pending-writer check skips the write notes of the target's own stores.
APS5_PROFILE_DRAWadds the drawn targets' stores by reason, and the pending drawn targets (count, MiB, oldest), to the[storage]line.With stores at completion points, #8126's rule that keeps newer image results over a direct write's completion stamp (
StampKeepingNewerResults) also covers targets with drawn results and images that are already being flushed. A dispatch that writes a drawn target's memory through its host import and has completion work can complete inside that target's store, and its second stamp made the draws recorded after it look older than the dispatch, so the store dropped them all. A drawn target is tracked as one unit, so after a change anywhere else in it (a CPU store into another 64 KiB block) the whole-image check fails; the stamped 64 KiB blocks are then checked one by one. A block with no change since the image's generation keeps its draws past the stamp (completionKept, whichwriteBackLayersreads), and a block the CPU wrote keeps the CPU's bytes outside the drawn rectangles. Whole-image keeps of drawn targets are rechecked for CPU stores after the stamp.Why
PPSA14363 (METAL GEAR SOLID - Master Collection Version, own dump) draws its PS1 game into three linear 3072x2048 RGBA8 color targets. With them resident (#1191's import-creating case, applied locally for these runs),
main's per-draw store copies up to 69.7 GB per 10 s out of the images, and the PS1 part runs slower than on the synchronous path. In MGS1's PS1 part every store of these targets covers one rectangle (a local counter over a 300 s run: no fallback to a whole or per-draw store). Bring-up thread: #9615.Tested
Windows 11 26200, Radeon RX 6700 XT (gfx1031), AMD driver 32.0.21045.16010, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.Current head
d6d8966bba:mainb930da950dmerged in, for @oneandonlydean (comment). Onlycore/libs/prx/libSceAgcDriver/CMakeLists.txtconflicted:main's newagc_submit_progresstests and this PR's completion-point tests went into the sameif(BUILD_TESTING)block, and both are kept. It still merges cleanly withmainf595326943. On this head, on the RX 6700 XT, the build is clean. The focused set plusagc_driver_bda_*(54ctestentries) passes 3 of 3. With the Khronos validation layer, 54 of 54 pass with 0VUID-lines (the layer was inserted 73 times, no "was not found" line).ctest -R "^(agc|shader)_"passes 1011 of 1014; the 3 failures are thesample_ordertestsmainfails on this GPU.Earlier head
d36311d661: the per-block keep at the end of What, for @oneandonlydean's review (comment).agc_driver_linear_target_direct_write_completiongains that ordering as a third case, on write-watched and on unwatched memory: a fill over block 0 with completion work, a draw into block 0, a CPU store into block 1 made under the GPU mutex while the fill's completion is still pending (the test reads the fill's copied buffer in the same hold, and again at the label, so each run reports whether the completion was pending at the store and had run by the label), then the label. Red on5b5dcaeaff: the write-watched case fails, with 9984 of the 9984 pixels the draw covered holding the fill's pattern, the completion pending at the store and run by the label; the other three cases pass. Green on this head: 20 of 20, and 10 of 10 with the output kept, each write-watched run with the completion pending at the CPU store and run by the label. On unwatched memory the keep rule does not apply and the fill's completion had already run when the CPU store landed, so that variant passes before and after the change. The same test onmain8a85a5c848fails as well: the fill-then-draws case loses 9856 of the 19712 drawn pixels (the first draw), and in the third case the draw's own store onmainruns the fill's completion first, drops the draw's 9984 pixels, and its whole-target store writes the target's old bytes (0x5a5a5a5a) over the block-1 CPU store. Also on this head: the focused set above plusagc_driver_bda_*(53ctestentries) 3 of 3; with the Khronos validation layer 53 of 53, 0VUID-lines, the layer inserted 70 times;ctest -R "^(agc|shader)_"997 of 1000, with the same 3sample_orderfailures asmain.Earlier head
5b5dcaeaff:main11d6efa06cmerged in (eefe6d1380; onlycore/libs/prx/libSceAgcDriver/CMakeLists.txtconflicted, resolved as in @oneandonlydean's merge on #9879), then5b5dcaeaff, the keep-rule change at the end of What, with a new test. A review of the merge against #8126 found the dropped draws.agc_driver_linear_target_direct_write_completionhas two cases: a direct fill with completion work and then two draws, and the reverse order. It skips without a host import, and when the device does not keep the import write-watched. With the new test on7ad5d33a66(the same commits rebased onto11d6efa06c, without the change), the first case fails: at the label after the draws, 19712 of the 19712 pixels the draws covered hold the fill's pattern. With it, the test passes 20 of 20. The runs below are on605de8157c, the same change rebased onto11d6efa06c. Its tree differs from this head only in the position of oneadd_testblock inCMakeLists.txtand in the debt entry on this gap:agc_driver_direct_write_completion,main'sagc_driver_copied_writer_*,agc_driver_draw_cache_*and label-order entries: 46ctestentries, 3 of 3.agc_driver_copied_writer_label_orderand its_drainentry skip on this GPU (minStorageBufferOffsetAlignment 4), as onmain;VUID-lines, the layer inserted 64 times, no "was not found" line;ctest -R "^(agc|shader)_": 997 of 1000 pass; the 3 failures aremain'sagc_driver_sample_order,_grid_referenceand_recipe_depth_locationson this GPU.Other devices, on
cee2512ef8: @Dextroid17 on lavapipe (comment), and @BKlaasWerkman on Intel Arc with the validation layer (comment).Previous head
cee2512ef8, rebased ontomainff191e29d1because #6948 and #6682 made it conflict; it still merges cleanly with513ca7e558. RX 6700 XT, AMD driver 32.0.21045.16010: the focused set plusmain'sagc_driver_linear_readback_labelandagc_recorder_*entries, 25ctestentries, pass 3 of 3. With the Khronos validation layer on the same set,main513ca7e558passes 16 of 16 (the entries that exist there; layer inserted 19 times) and this head 25 of 25 (32 times), with 0VUID-lines and no "was not found" line on either. The rebase keeps #6948'sStoreReadbackBeforeLabelnext to this PR'sStoreDrawnLinearat labels and end-of-pipe interrupts, this PR's first, so its stored count still setsworkOpenfor the interrupt submit; the readback store then finds queue 0's drawn targets already stored, and on other queues it stores them limited to their drawn rectangles.e5edf0cd4afixedagc_driver_linear_target_draw_bindingsfor memory outside the write watch (llvmpipe CI): the test runs its scenario watched and with the block taken out of the write watch, and expects no submission from the second copying draw in the first case and exactly one in the second. The older results below are from the commits they name.New tests (4 executables, 6
ctestentries), on this branch onmaind6eafa54d0:agc_driver_linear_target_completion_points(with_sync_flipand_unpipelinedvariants): a flip, a drain, a label and an interrupt-onlyRELEASE_MEMthroughAgcDriver::Submit, with the queue held by aWAIT_REG_MEM, inside and outside the write watch. They pass onmaintoo, becausemainstores after every draw. They pin the contract, so a label-only policy would fail them. They skip on a device without host import, where the target is never resident.agc_driver_linear_target_completion_stores: a target stays pending across draws and labels untilWaitIdle, without a submission.agc_driver_linear_target_cpu_writes: #8152's CPU stores afterDraw, seeded and unseeded, inside and outside the write watch, each also with a driver read of the target (GuestMemory::Read) between the CPU stores and the store. Ported from @MarcZX10'sLinearTargetCpuWritesin #8246.agc_driver_linear_target_rectangle_bound: after one seeding draw and wait, two draws with different scissors, then CPU stores outside both rectangles, between them inside their bounding box, and in the gap before a target that starts past a 64 KiB boundary; and a second case with 17 one-row scissors and a CPU store between two of them.agc_driver_linear_target_draw_bindings,agc_driver_linear_target_dispatch_accessand theagc_driver_address_passes_draw_transitionsentry (withAddressPasses --synchronous-target-read) come with the last three commits: a draw's snapshot bindings prepared after its drawn-target store, the store before an address-based dispatch, and the store before a synchronous draw that reads a drawn target.ctestentries on10a8319a94).main's production files (atd6eafa54d0) and the new tests,completion_stores,cpu_writesandrectangle_boundfail; the threecompletion_pointsentries pass, as above. Without theAccessKeptByCpucheck,cpu_writesfails at the driver read. With the bounding box of the third commit,rectangle_boundfails with both sentinels between the rectangles lost.Khronos validation layer,
ctest -Von the focused set (15 tests ate430b0d07a; on10a8319a94the 18 entries pass with 0VUID-lines and the layer inserted 29 times) (the 6 above,agc_driver_linear_target_resident,agc_driver_address_passesand_targets_split,agc_driver_clamped_global_fill,agc_driver_flip_stores_small_results,agc_driver_storage_flush_ordering,agc_driver_storage_read_during_idle_store,agc_driver_store_idle_resultsandagc_driver_store_over_untracked): 15 of 15 pass on this branch, and 12 of 15 withmain's production files atd6eafa54d0(the three red tests above). Both sides have 0VUID-lines;VK_LOADER_DEBUG=layershows the layer inserted 25 times, with no "was not found" line.ctest -R "^agc_"(896 tests,-j 1) one430b0d07a: 891 pass; on10a8319a94(899 tests, run by huy): 894 pass. The 5 failures are the onesmaind6eafa54d0has on this GPU and toolchain:agc_driver_sample_order,_grid_reference,_recipe_depth_locationsandagc_driver_tessellation(#9313 for the sample order; #8861 for tessellation, fixed by #8884);agc_driver_image_array_window_past_layer_limit(its 64 KiBalignaswith this MinGW toolchain).agc_driver_address_passesand its_targets_splitvariant failed on the first commit: the linear-target case reads, through the address table, the target the previous draw rendered in the same submission, and with the store deferred that read saw the bytes from before the draw. The second commit stores drawn targets before a draw or dispatch that reads their memory in place or writes it, and all of them for address-based work.PPSA14363, MGS1's PS1 part, with the targets resident through #1191's import line, applied locally on both sides (so both summary lines show
dirty):maind6eafa54d0againste430b0d07a, onlylibSceAgcDriver.prxswapped, both with #9115's trophy fix. Same scripted route, 300 s,APS5_TRACE_SUMMARY_EVERY=10, frame dumps only in the first 50 s, a trace window at 200 s, GPU and build locks held. Per 10 s window from 80 s, when the PS1 part starts, without the window that ends with the trace write:main+ import lineSummary lines of the trace window (200 to 220 s),
mainfirst:In that window
mainspends 102.6 ms per frame inRecorder.Sync, behind the whole-target stores, and the GPU is busy 95.3 ms per present against 1.68 ms with this change.tools/performance_compare.pyon these lines and thetools/trace_digest.pytables of both runs are in this comment. Traces are not attached, because these runs come from a commercial title. An earlier 600 s run of the first commit onmain6ef5a1c4c9+ #9115, #9188, #9202 and #9373, with the same import line, reached Dock gameplay with no stop at 591 to 600 presents per 10 s.Overlap:
LinearTargetCpuWritestest with credit.PacketMemory.cpp,VulkanDevice.cppandTexture.cppfor label readback stores. Neither builds on the other, and whichever merges second rebases.Left for a follow-up, with a debt entry: a CPU store into a 64 KiB block of a drawn target that lands in the window while the direct write's completion checks and stamps that same block drops the draws in that block (the stamp's own collect records the store per page only, so the block reads as written by the driver). The CPU store itself survives.
Not tested: GPUs other than the RX 6700 XT, Linux, a title whose linear targets are resident on
mainwithout the import case.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T08:39:56Z.
Review: CHANGES_REQUESTED
The focused code review found a correctness gap in rectangle tracking. I ran
python3 tools/check_conventions.py --base upstream/main --head refs/review/9685with the PR title/body; it passed. GitHub’s product build/test jobs are skipped for this draft. I could not run the new AGC runtime tests in this checkout: there is no build configured for this head, and this host is the Xeon E5-1620 v2 used in prior Vulkan attempts that lacks the required CPU features. I did not treat the author’s Windows/Radeon runs as locally reproduced.Please preserve the exact union of drawn row spans (or otherwise ensure the store cannot cover pixels between disjoint scissors), and add a regression that CPU-writes into such an internal gap after both draws. The present test’s two scissors have a bounding-box gap, but its sentinels are outside the bounding box; it therefore does not check that case. The repository performance-report rule also calls for the actual matching
mainand change summary lines with traces attached; the table is useful, but the traces/raw report are not attached here.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T09:53:41Z.
Review: COMMENTED
Ran this on NVIDIA and lavapipe on Linux, which the PR lists as not tested. One part of the new coverage only runs on the NVIDIA card here, so CI's lavapipe doesn't guard it.
Ubuntu 26.04, i7-8700, GCC 15.2, Release,
BUILD_TESTING=ON, headc95a0fd31(based6eafa54d). The green and mutation rows were run on both9d5263767andc95a0fd31with the same result; the red row on9d5263767, whose testsc95a0fd31does not change,ANYPS5_REQUIRE_VULKAN=1. GPUs: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), each picked withANYPS5_GPUand checked in theSelected GPUline.agc_driver_linear_target_*entries, this PRagc_driver_linear_target*,agc_driver_address_passes*), this PRd6eafa54dproduction files + the new testscompletion_stores,cpu_writes,rectangle_boundfail; the 3completion_pointspassownNotes.clear()right before thePendingWriterSerialcheck inStorageTexture::FlushPendingcompletion_storesfailsThe two devices take different branches of the tests:
[write-watch] host imports resolve write protection: yes, so the target is not write-watched.completion_storesprintsthe target is outside the write watch ... the submission checks are skipped, and theflip, write-watched memorycase ofcompletion_pointsruns withwatched at the store: 0.host imports resolve write protection: no ... imported ranges stay watched, so the target stays watched, thewatched at the store: 1case runs, andcompletion_storesmakes itsrecorder->Submissions()checks.With the mutation, a store waits for the target's previous store again, which is the "a store no longer waits for the same target's previous store" part of this PR. On the 3070
completion_storescatches it withthe second label: storing the drawn linear target before the label waited for recorded work (1 submissions). On lavapipe all six pass, because those checks are skipped there. So a regression of that part would pass CI.ctest -R "^agc" -j1on the 3070 (867 tests, without the flip, DCC display and 64-bit LDS atomics tests): everything passes exceptagc_driver_sample_order,_grid_referenceand_recipe_depth_locations, which fail the same way ond6eafa54dhere (#9313).GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Ubuntu 26.04; lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-22T10:57:32Z.
@MarcZX10 thanks, both points hold.
Bounding box replaced by the exact union (
e430b0d07a). A target now keeps the clipped scissor rectangles of its draws instead of their bounding box. Two rectangles merge only when their union is itself a rectangle: one inside the other, or the same columns that overlap or touch in rows, or the same rows that overlap or touch in columns. The store copies the rectangles' bounding box out of the image into its scratch buffer, as before, but writes to guest memory only, for each row, the union of the column runs of the rectangles that cover that row. So no pixel between two disjoint scissors is stored. At most 16 rectangles wait for a completion point: a draw that brings a 17th stores the target right after it, with all 17, and the next draw starts a new list. A target that the rectangle store does not cover (an attachment proxy, several mips or layers, a 3D or DCC surface, or results of a dispatch, fill or copy) is now stored after each draw, as onmain, instead of whole at the next completion point.The regression is in
agc_driver_linear_target_rectangle_bound: CPU sentinels at (30, 6) and (10, 25), inside the bounding box of the two scissors but outside both, written after both draws, and a second case with 17 one-row scissors and a CPU store between two of them. Ona27273ab06(still the bounding box) it fails with "a drawn linear target's store overwrote CPU stores between two draws' scissor rectangles" (2 of the 2 sentinels lost); one430b0d07ait passes. The case draws and waits once before its draws: without that, the target's upload ran in the same batch as the draws, after the CPU stores, so the bounding-box store wrote the CPU's own bytes back and the old test could not see it.Review fixes since your review. Two independent reviews of the first commit (huy's, and a four-dimension review on my side with an adversarial check of each finding) agree on these.
c95a0fd316:workOpenwas computed before the label's store, so the interrupt could wait in an unsubmitted batch until a later submission. Both label paths,preparePacketMemoryandcommitLabel, now store the drawn targets beforeWriteLabelOnGpuand submit that store with the label, as the interrupt-only branch already does.DrawPipeline::HeldReads). The entry named labels only.a27273ab06:MarkDrawncheckeddirtyin a second critical section afterMarkSliceDirty. A flush on another thread could take the image out of the pending set in between, and the draw's scissor was then never added, so its pixels outside the earlier area were neither stored nor pending. It now checkslayerPending, which changes only under the GPU lock; the flusher reads the drawn area after taking that lock, so it stores the widened area.AccessKeptByCpuand its eviction still assumed that a store leaves CPU-written blocks alone, but a drawn target's store writes CPU-stamped blocks inside its rectangles. A hooked read of up to 1 MiB after the CPU wrote every block of the target dropped the draw's results. The hook no longer skips or evicts a drawn target; the access flushes it instead.agc_driver_linear_target_cpu_writesadds aGuestMemory::Readof row 0 between the CPU stores and the store, which returns the drawn pixels only with the fix.main, because the pending registry holds raw pointers.agc_driver_linear_target_completion_pointsskips on a device without host import, where the target is never resident, instead of passing without testing anything.Left as they are:
MarkWrittencan later be overwritten by a stale texel. That is the same collect-to-stamp windowmain's whole-target store has.9d52637676); a fill or copy does not. A target that a fill or copy writes after its draws were listed is stored whole at the next completion point and keepsmain's rule that CPU-written 64 KiB blocks stay the CPU's. The debt entry says so.Summary lines. PPSA14363, MGS1's PS1 part, with the targets resident through #1191's import line, applied locally on both sides (so both lines show
dirty):maind6eafa54d0, this PR's base, against this heade430b0d07a. OnlylibSceAgcDriver.prxis swapped, both sides have #9115's trophy fix, and both runs use the same scripted route, 300 s,APS5_TRACE_SUMMARY_EVERY=10, frame dumps only in the first 50 s and a trace window at 200 s, with the GPU and build locks held. Per 10 s window from 80 s, when the PS1 part starts, leaving out the window that ends with the trace write:maind6eafa54d0+ import linee430b0d07a+ import lineThe summary lines of the trace window (200 to 220 s),
mainfirst:tools/performance_compare.pyon these two lines: mean frame 118.748 to 16.683 ms, p99 338.727 to 17.372 ms, GPU busy per present 95.308 to 1.676 ms.Driver.Drawgoes from 100.2 to 0.69 ms per frame; onmain, 102.6 ms per frame isRecorder.Sync, the wait behind every draw's whole-target store.tools/trace_digest.pyon both runs' summary filesmaind6eafa54d0+ import line:29 intervals, 0.0 to 292.6 s, 6556 presents
AMD Radeon RX 6700 XT, AMD proprietary driver 26.10.1 (AMD proprietary shader compiler), Windows 10.0.26200, 1920x1080, commit
d6eafa54d0(dirty)This PR
e430b0d07a+ import line:29 intervals, 0.0 to 290.3 s, 17255 presents
AMD Radeon RX 6700 XT, AMD proprietary driver 26.10.1 (AMD proprietary shader compiler), Windows 10.0.26200, 1920x1080, commit e430b0d07ab2 (dirty)
The trace files stay local, because the runs come from a commercial title; I asked on #9373 whether summary lines plus the tools' output are enough for such a title (comment).
A local counter over a 300 s run of the PS1 part (not committed) shows every store of these targets covering one rectangle, with no store at a draw and no fallback, so the 16-rectangle limit costs this title nothing.
Tested on
e430b0d07a, RX 6700 XT, AMD Windows driver 32.0.21045.16010:ctestentries),agc_driver_linear_target_resident,agc_driver_address_passesand_targets_split,agc_driver_clamped_global_fill,agc_driver_flip_stores_small_results,agc_driver_storage_flush_ordering,agc_driver_storage_read_during_idle_store,agc_driver_store_idle_resultsandagc_driver_store_over_untracked.e430b0d07a. Withmain's production files atd6eafa54d0and these tests, 12 of 15 pass:completion_stores,cpu_writesandrectangle_boundfail, the last with all 3 outside sentinels and both sentinels between the rectangles lost. Both sides have 0VUID-lines, andVK_LOADER_DEBUG=layershows the layer inserted 25 times with no "was not found".AccessKeptByCpucheck,cpu_writesfails at the new driver read ("a driver read of row 0 before the store: pixel (0, 0) holds (0.000000, 0.000000, 0.000000, 1.000000), not the second draw's"). Witha27273ab06's bounding box,rectangle_boundfails as above.ctest -R "^agc_"(896 tests): 891 pass. The 5 failures are the onesmaind6eafa54d0has on this GPU and toolchain:agc_driver_sample_order,_grid_reference,_recipe_depth_locations,agc_driver_tessellationandagc_driver_image_array_window_past_layer_limit.tools/check_conventions.pypasses.The description is updated to match.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-22T20:48:42Z.
Review: CHANGES_REQUESTED
The full Linux Build (llvmpipe, run 39837492452) fails on the new test at
10a8319a94:agc_driver_linear_target_draw_bindings:AGC graphics: the second copying draw submitted recorded work(LinearTargetDrawBindings.cpp:299,recorder->Submissions() == submitted + 1).maindoes not have this test, so it is not a pre-existing failure./dev/udmabuf(shared direct memory is copied instead of imported,dma-buf imports keep write protection: unknown), and the test passesHostImportFor(...)anyway, so the import here is not write-watched. With that, the second copying draw ends up submitting an extra batch.Please decide whether that extra submit is correct for an unwatched import (then the test should assert what holds in both cases), or whether the store before a synchronous draw (
10a8319a94) should not submit there. Either way the test has to pass on the CI runner, which cannot import dma-bufs; the earlier lavapipe runs from @jotitadev predate this test.The rest of the diff is unchanged from the previous review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T03:31:26Z.
Review: COMMENTED
Thanks for the update. The PR now addresses the previously identified rectangle-union gap and reports the new completion-point / CPU-write coverage. However, the current exact head still has an unresolved CI-specific failure from the latest independent review:
agc_driver_linear_target_draw_bindingsfails 3/3 on the unwatched import path (the default and llvmpipe/CI path) because the second copying draw submits an extra batch. Please resolve that expectation/behavior and rerun the focused test on the CI-relevant path; the current hosted product jobs are skipped. I have not rerun locally because this host cannot execute the required Vulkan path.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T12:58:25Z.
Review: APPROVED
Reviewed current head
d6d8966bba, including the later per-64-KiB completion-generation fix and the latest merge from main. The generation fallback keeps older completion stamps from erasing newer draw results in blocks without a CPU write, while the tests cover the direct-write ordering and drawn-rectangle preservation cases. The author reports the current focused set passing 54/54 three times on an RX 6700 XT, and 54/54 with the Khronos validation layer and zero VUID lines; the reported 1011/1014 fullagc|shaderresult has the same three sample-order failures on main. I did not reproduce GPU tests locally on this host. Hosted eligibility, conventions, labels, and report pass; product build jobs are skipped by eligibility. The complementary #8246 byte-exact merge remains a separate follow-up proposed to land after this PR.