Repository navigation
perf(agc): store only the depth plane units a read overlaps - #9026
Conversation
A read of memory inside a stale D32 Z_X depth plane (FlushDepthPlanes) stored the whole plane: a copy of the depth image into the mirror, MarkWholeWritten and a write-back of every byte. In Super Meat Boy 3D (boykopovar#8840) a read-only buffer ending about 3 KiB inside a stale 3840x2160 plane makes ShaderResources::Revalidate flush ~1000 times per 5 s, each one moving 31.9 MiB, bound by transfer bandwidth. A depth surface now tracks its plane as 64 KiB units, each one 128x128 tile of the mirror's block units: a stale bit and a write generation per unit replace memoryStale and the plane-wide syncedGeneration. - FlushDepthPlanes stores only the stale units the range overlaps: the depth to mirror copy takes one region per unit rectangle (UnitRects, from the mirror's slice windows), the mirror marks just those units written (MarkUnitsWritten) and the write-back covers their hull. The other units stay stale and the plane stays registered. Stale bits are cleared only after the copy was recorded, and the stored units' generations advance only when FlushPending stored them. A depth fast clear still pending at the store rewrites the whole image, so it makes every unit stale first. - SyncFromMemory copies from the mirror only the units the guest wrote since their own generation (one ChangedBlocks scan; untracked memory counts as unwritten, as WrittenSince did), so a guest write into one unit no longer replaces GPU depth that is still unstored in the others. - Flushes followed by a retire keep the whole-plane store: the color target flush in Draw and a written storage view (DepthPlaneScope::Whole). The retire of an overwritten surface in DepthSurfaceTexture first stores its remaining stale units the guest did not write. - A mirror without block units (APS5_NO_BLOCK_TRACKING, unaligned base) falls back to the whole-plane copy, and APS5_DEPTH_PLANE_WHOLE_STORE=1 tracks the plane as one unit, the previous behaviour. - DepthPlaneStoreCounts reports stores, units and bytes stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DepthPlanePartialStore draws depth 0.5 into a 384x200 D32 Z_X plane (3x2 64 KiB tiles, the last row 72 texels high) over memory filled with 1.0 and checks the plane's memory unit by unit: - a read ending 3 KiB into the plane stores unit 0 alone (one store, one unit, 64 KiB counted) and leaves the plane stale; the same read again stores nothing; - a read of the whole plane stores the other five units, the edge tiles holding 128x72 depth values with their padding left as it was; - a guest write into unit 4 after unit 0 was stored wins in unit 4 only: a later whole read stores the four other stale units over 1.0, and a LESS draw at 0.6 passes exactly over unit 4 (the plane-wide generation synced every unit from memory instead); - the retire of a surface the guest wrote into, through a view with two levels, stores its stale units the guest did not write; - a color target over unit 5 retires the surface after storing units 1-4; - over unwatched memory a partial store leaves the other units on the GPU, so a LESS draw at 0.6 passes nowhere. TextureTiling checks that the 64KB Z_X equation of 4-byte elements reads only x and y bits below 7, so each 64 KiB unit of a 3840x2160 D32 plane is exactly one 128x128 tile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request is labeled |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Captures, as the perf label asks. Setup. Super Meat Boy 3D (PPSA31162), level 1-1 on the scripted route. Release libs, 12 GB cap, RTX 4070 Ti, driver 595.99.02, Linux. This base run came up in the middle mode (22 to 26 presents per 10 s), not the slow one. Two earlier untraced pairs on the same two builds:
The 210:10 window:
The PR's trace reports dropped events. Queue worker 0x0's event buffer filled 9.6 s into the 10 s window, and 11,952 events were lost; the summary line's
{"commit":"b6fe513b9abb","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":".","APS5_TRACE_SECONDS":"210:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 595.99.02","os":"Linux 6.8.0-147-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":32022,"title_id":"PPSA31162","title":"Super Meat Boy 3D","content_version":"02.000.001","resolution":"3840x2160","window":{"spec":"seconds 210:10","first_present":1294,"ms":10121.916},"presents":23,"frame_ms":{"p50":428.134,"p90":526.003,"p99":562.642,"max":562.642},"gpu_busy_ms_per_present":105.370,"worker_busy_pct":{"queue worker 0x0":98.120,"queue worker 0x20":99.937},"top_phases_ms_per_frame":{"Driver.Packet":871.504,"Driver.Packet.memory_wait":438.229,"Driver.Packet.draw":284.086,"Driver.Draw":282.779,"Graphics.Draw":215.928,"Graphics.Draw.draw_and_resource_release":197.122,"Resources.Complete":97.064,"Driver.Draw.prepare":90.256},"trace_dropped":false,"trace":"aps5-trace-b6fe513b9abb-3.json.gz"}This PR's summary line: {"commit":"7bf7be589d68","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":".","APS5_TRACE_SECONDS":"210:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 595.99.02","os":"Linux 6.8.0-147-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":32022,"title_id":"PPSA31162","title":"Super Meat Boy 3D","content_version":"02.000.001","resolution":"3840x2160","window":{"spec":"seconds 210:10","first_present":1355,"ms":10063.348},"presents":37,"frame_ms":{"p50":271.465,"p90":315.265,"p99":321.558,"max":321.558},"gpu_busy_ms_per_present":106.659,"worker_busy_pct":{"queue worker 0x0":97.481,"queue worker 0x20":100.016},"top_phases_ms_per_frame":{"Driver.Packet":537.066,"Driver.Packet.memory_wait":270.252,"Driver.Packet.draw":138.428,"Driver.Draw":137.231,"Graphics.Draw":94.026,"Graphics.Draw.draw_and_resource_release":78.745,"Driver.Packet.device_lock":53.040,"Driver.Packet.dispatch":48.173},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":9.622,"events_lost":11952,"totals_full":false}},"trace":"aps5-trace-7bf7be589d68-3.json.gz"}
|
| thread | busy | wait | untraced | in slices < 20 us | largest |
|---|---|---|---|---|---|
| queue worker 0x0 | 347.5 (79 %) | 37.0 (8 %) | 55.5 | 205.2 | Driver.Packet 384.5, Driver.EndSubmission 0.0 |
| draw committer | 160.6 (36 %) | 10.2 (2 %) | 269.2 | 39.5 | Graphics.Draw 157.0, Recorder.Submit 2.4 |
| queue worker 0x20 | 1.5 (0 %) | 437.9 (99 %) | 0.7 | 0.8 | Driver.Packet 439.3, Driver.EndSubmission 0.1 |
| presenter | 26.2 (6 %) | 6.5 (1 %) | 407.3 | 0.1 | VideoOut.Flip 32.7 |
| gpu | 105.4 (24 %) | 0.0 (0 %) | 334.7 | 0.0 | batch 105.4 |
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 823.8, Driver.Packet.memory_wait 437.9, Driver.Packet.draw 269.4, Driver.Draw 268.2, Graphics.Draw 203.1, Graphics.Draw.draw_and_resource_release 187.6, batch 105.4, Resources.Complete 96.9, Driver.Draw.prepare 78.8, Driver.Draw.draw_enqueued 62.6
Longest waits
- Driver.Packet.memory_wait (queue worker 0x20) 379.6 ms at 6504 ms, present 1308
- Driver.Packet.memory_wait (queue worker 0x20) 373.0 ms at 5954 ms, present 1307
- Driver.Packet.memory_wait (queue worker 0x20) 371.2 ms at 1840 ms, present 1298
- Driver.Packet.memory_wait (queue worker 0x20) 358.7 ms at 4559 ms, present 1304
- Driver.Packet.memory_wait (queue worker 0x20) 319.3 ms at 9788 ms, present 1316
- Driver.Packet.memory_wait (queue worker 0x20) 319.2 ms at 3175 ms, present 1301
- Driver.Packet.memory_wait (queue worker 0x20) 298.0 ms at 4121 ms, present 1303
- Driver.Packet.memory_wait (queue worker 0x20) 292.3 ms at 5485 ms, present 1306
- Driver.Packet.memory_wait (queue worker 0x20) 291.4 ms at 1394 ms, present 1297
- Driver.Packet.memory_wait (queue worker 0x20) 291.1 ms at 3671 ms, present 1302
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
- batch 53361: 12.3 ms at 11 ms, present 1294: GPU no ranges; recorded by no CPU slices
- batch 55143: 12.3 ms at 4453 ms, present 1304: GPU no ranges; recorded by GpuMutex.wait.label (queue worker 0x0) 10.9, Driver.Packet (queue worker 0x0) 0.3, Driver.Packet.prepare_memory (queue worker 0x0) 0.3
- batch 54051: 11.7 ms at 1705 ms, present 1298: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5
- batch 53880: 11.6 ms at 1259 ms, present 1296: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
- batch 55877: 11.3 ms at 6347 ms, present 1307: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.2, Driver.Packet.device_lock (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 0.5, Driver.Dispatch (queue worker 0x0) 0.5
tools/trace_digest.py, this PR
seconds 210:10 from present 1355: 37 presents, frame p50 271.5 / p90 315.3 / p99 321.6 / max 321.6 ms, GPU busy 106.7 ms per present
NVIDIA GeForce RTX 4070 Ti, NVIDIA 595.99.02, Linux 6.8.0-147-generic, 3840x2160, commit 7bf7be5, dropped: yes
{"commit":"7bf7be589d68","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":".","APS5_TRACE_SECONDS":"210:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 Ti","driver":"NVIDIA 595.99.02","os":"Linux 6.8.0-147-generic","cpu":"13th Gen Intel(R) Core(TM) i7-13700K","cpu_threads":24,"memory_mib":32022,"title_id":"PPSA31162","title":"Super Meat Boy 3D","content_version":"02.000.001","resolution":"3840x2160","window":{"spec":"seconds 210:10","first_present":1355,"ms":10063.348},"presents":37,"frame_ms":{"p50":271.465,"p90":315.265,"p99":321.558,"max":321.558},"gpu_busy_ms_per_present":106.659,"worker_busy_pct":{"queue worker 0x0":97.481,"queue worker 0x20":100.016},"top_phases_ms_per_frame":{"Driver.Packet":537.066,"Driver.Packet.memory_wait":270.252,"Driver.Packet.draw":138.428,"Driver.Draw":137.231,"Graphics.Draw":94.026,"Graphics.Draw.draw_and_resource_release":78.745,"Driver.Packet.device_lock":53.04,"Driver.Packet.dispatch":48.173},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":9.622,"events_lost":11952,"totals_full":false}},"trace":"aps5-trace-7bf7be589d68-3.json.gz"}Slowest frames (largest slices inside each, inclusive)
- present 1380: 321.6 ms at 6869 ms: Driver.Packet (queue worker 0x20) 321.4, Driver.Packet.memory_wait (queue worker 0x20) 320.2, Driver.Packet (queue worker 0x0) 271.3, Driver.Packet.draw (queue worker 0x0) 135.9
- present 1372: 319.7 ms at 4534 ms: Driver.Packet (queue worker 0x20) 319.5, Driver.Packet.memory_wait (queue worker 0x20) 314.8, Driver.Packet (queue worker 0x0) 250.4, Driver.Packet.draw (queue worker 0x0) 160.2
- present 1379: 315.3 ms at 6554 ms: Driver.Packet (queue worker 0x20) 315.1, Driver.Packet.memory_wait (queue worker 0x20) 313.7, Driver.Packet (queue worker 0x0) 262.9, Driver.Packet.draw (queue worker 0x0) 120.7
- present 1374: 315.3 ms at 5131 ms: Driver.Packet (queue worker 0x20) 315.0, Driver.Packet.memory_wait (queue worker 0x20) 313.8, Driver.Packet (queue worker 0x0) 265.1, Driver.Packet.draw (queue worker 0x0) 151.1
- present 1361: 309.5 ms at 1650 ms: Driver.Packet (queue worker 0x20) 309.2, Driver.Packet.memory_wait (queue worker 0x20) 307.8, Driver.Packet (queue worker 0x0) 250.0, Driver.Packet.draw (queue worker 0x0) 150.4
Threads (ms per frame)
| thread | busy | wait | untraced | in slices < 20 us | largest |
|---|---|---|---|---|---|
| queue worker 0x0 | 191.1 (70 %) | 16.7 (6 %) | 64.2 | 204.2 | Driver.Packet 207.8, Driver.EndSubmission 0.0 |
| draw committer | 62.8 (23 %) | 7.7 (3 %) | 201.5 | 44.9 | Graphics.Draw 58.3, Recorder.Sync 2.2 |
| queue worker 0x20 | 1.4 (1 %) | 270.2 (99 %) | 0.4 | 0.8 | Driver.Packet 271.5, Driver.EndSubmission 0.1 |
| presenter | 19.2 (7 %) | 5.9 (2 %) | 246.8 | 0.1 | VideoOut.Flip 25.1 |
| gpu | 106.2 (39 %) | 0.0 (0 %) | 165.7 | 0.0 | batch 106.2 |
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 479.3, Driver.Packet.memory_wait 269.9, Driver.Packet.draw 116.0, Driver.Draw 114.9, batch 106.2, Graphics.Draw 74.5, Graphics.Draw.draw_and_resource_release 61.5, Driver.Packet.dispatch 46.5, Driver.Dispatch 42.2, Driver.Draw.prepare 35.0
Longest waits
- Driver.Packet.memory_wait (queue worker 0x20) 222.5 ms at 5217 ms, present 1374
- Driver.Packet.memory_wait (queue worker 0x20) 219.6 ms at 2569 ms, present 1364
- Driver.Packet.memory_wait (queue worker 0x20) 216.7 ms at 4623 ms, present 1372
- Driver.Packet.memory_wait (queue worker 0x20) 214.1 ms at 6950 ms, present 1380
- Driver.Packet.memory_wait (queue worker 0x20) 211.6 ms at 860 ms, present 1358
- Driver.Packet.memory_wait (queue worker 0x20) 211.4 ms at 1731 ms, present 1361
- Driver.Packet.memory_wait (queue worker 0x20) 209.9 ms at 8306 ms, present 1385
- Driver.Packet.memory_wait (queue worker 0x20) 206.4 ms at 6647 ms, present 1379
- Driver.Packet.memory_wait (queue worker 0x20) 202.1 ms at 6071 ms, present 1377
- Driver.Packet.memory_wait (queue worker 0x20) 199.9 ms at 8876 ms, present 1387
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
- batch 63752: 21.8 ms at 6283 ms, present 1377: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 7.7, Driver.Packet.device_lock (queue worker 0x0) 4.5, Driver.Packet.dispatch (queue worker 0x0) 2.6, Driver.Dispatch (queue worker 0x0) 2.6
- batch 61218: 16.1 ms at 2093 ms, present 1362: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 19.6, Driver.Packet.draw (queue worker 0x0) 14.8, Driver.Draw (queue worker 0x0) 14.7, Driver.Draw.prepare (queue worker 0x0) 9.0
- batch 63908: 12.3 ms at 6566 ms, present 1379: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
- batch 60085: 11.7 ms at 278 ms, present 1356: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 0.5, Driver.Dispatch (queue worker 0x0) 0.5, Driver.Packet.device_lock (queue worker 0x0) 0.4
- batch 62726: 11.6 ms at 4547 ms, present 1372: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
AI-assisted: yes (Claude Code)
|
Independent Linux check at exact head
The no-host-import runs use the documented copied-buffer configuration, not a forced import-watch override. Neither “not exercised” message appears in those logs. Thus they check unit 4 retaining the CPU's 0.75 and being reloaded into GPU depth (the LESS draw's exact coverage assertion), plus unit 2 retaining the CPU write while the other stale units survive retirement. They do not supply that coverage under RADV's default import policy. Negative control:
Ubuntu 24.04.3, GCC 13.3, Release; RTX 3090 / NVIDIA 595.99.02; gfx1036 ( |
|
Thanks @simonbbby, that is a thorough check. The AI-assisted: yes (Claude Code) |
|
Windows run of 7bf7be5 merged onto Built |
|
Thanks @ycbuzi, that covers Windows for the build and the tests, including the new partial-store test. I added it to the Tested section and the GPU line. AI-assisted: yes (Claude Code) |
|
Checked the per-unit stale state, partial copy of the Z_X tiles, per-unit guest-write precedence and the retire path against the diff, and re-checked it merged onto current |
Conflicts: DepthSurface takes boykopovar#9026's unit stores with our plane size described once; GuestBufferMemory takes a9b1402 (imports retired before range cuts, no trimmed imports); collect spans also key on the mapping generation; layerPending stays bytes next to main's layerBehind; idle-publish wait and refreshForView taken with our ordered flag and keys rescan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On main a6dcea9 (boykopovar#9026's unit stores) every depth bind re-described the plane, allocated per-unit vectors, rewrote every unit's generation and marked a fully stale plane stale again; FlushPending's stale-plane check re-described the plane too. The surface now caches the plane size, keeps one floor generation that every unit is synced to (a unit's generation is the larger of its own and the floor; the per-unit walk runs only when the plane was written since the floor), skips re-marking a plane whose units are all stale, and checks stale units in a range without allocating. APS5_NO_DEPTH_SYNC_FLOOR=1 turns the floor check off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Fixes #8840. A depth plane that a draw wrote is stored into guest memory when a read overlaps it. Until now, every such store copied the whole plane into its mirror, marked every unit pending and wrote the whole plane back. In Super Meat Boy 3D (PPSA31162), a small buffer whose range ends a few KiB into a 3840x2160 plane did this about 240 times a frame: 1,500 to 1,900 write-backs of the 31.9 MiB plane per 10 s. The measurements on #8840 put nearly all of that time in the write-back and the recorder wait before it, not in recording the mirror copy.
This stores only the 64 KiB units a read overlaps. @MarcZX10 set out on #8840 what that needs, and this implements those parts together:
SW_64KB_Z_Xis one 128x128 tile of a 4-byte plane. The pipe/bank XOR only permutes bytes inside a block, so a unit's texels are one rectangle. A new tiling test checks this for a 3840x2160 plane. A draw that writes depth marks every unit stale. A buffer upload, aGuestBuffersV#, an image lookup or a pending-store flush stores the stale units it overlaps, and the plane stays registered as stale until no unit is. A color target or a written storage image over the plane still stores all of it (DepthPlaneScope::Whole), since the surface is retired right after.StoreDepthPlanecopies the selected units' rectangles (StorageTexture::UnitRects) into the mirror, edge tiles clipped to the plane.MarkUnitsWrittenmarks only them pending, and the write-back covers their hull. A mirror without block units, or one with DCC, falls back to the whole plane.SyncFromMemorykept one plane-wide generation. It now keeps one per unit and asksGuestMemory::ChangedBlockswhich units the guest wrote since. Only those units are reloaded from memory and dropped from the stale set, so the guest's write wins there, as it did for the whole plane before. Untouched stale units keep their GPU depth. A store notes the generation of the units it wrote.retireStoringStalefirst stores the stale units the guest didn't overwrite.A plane whose address isn't 64 KiB aligned keeps one unit, the whole plane.
APS5_DEPTH_PLANE_WHOLE_STORErestores whole-plane stores everywhere, as a kill switch.DepthPlaneStoreCounts()counts stores, units and bytes for the test. The debt entry "Depth planes in guest memory" andENVIRONMENT.mdare updated.Tested
Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti, driver 595.99.02, on
main1381826. The branch was then rebased ontomainb6fe513. The only conflict was inDepthSurface.hpp, where #6683's two new declarations sit next to the changedFlushDepthPlanesone. On that base, the 31 depth tests pass 3 of 3 (32 with #6683's newagc_driver_sample_order_recipe_depth_locations, which fails here onmaintoo). The captures the perf label asks for are on this base as well.New execution test
agc_driver_depth_plane_partial_store(tests/execution/DepthPlanePartialStore.cpp). The plane is 384x200 D32 with the Z_X swizzle, six 64 KiB tiles, filled with 1.0, and a draw writes 0.5 over it:TextureTilingadds the Z_X check: no address bit of a 4-byte element reads x or y bits past one 128x128 tile, and sampled elements of a 3840x2160 plane fall in the 64 KiB unit of their tile.The new test ran all seven cases here, with write watching on (it says so when a case can't run).
Suites:
^agc_: 858 of 858 pass.depth|Depth|db_copy|DbCopy|^agc_driver_graphics$pass 3 of 3.main1381826 passes 30 of 30 and this head 31 of 31, with no VUID on either.@simonbbby ran the new test independently at
7bf7be589don an RTX 3090, RADV (gfx1036, Mesa 25.2.8) and lavapipe: 3 of 3 everywhere.APS5_NO_HOST_IMPORT=1(the copied-buffer configuration). With default imports on RADV and lavapipe, the memory isn't watched, and the test says so.APS5_DEPTH_PLANE_WHOLE_STORE=1makes the test fail on all three witha read ending 3 KiB into the stale plane did not store exactly its first 64 KiB unit, and it passes again without the switch.agc_driver_depth_storageandagc_driver_graphics, with the new tiling assertions, pass on each.Super Meat Boy 3D (PPSA31162), level 1-1 with the scripted route, release libs, 12 GB cap. Each 60 s run is measured in 10 s windows. Base (
mainf894ba6) and this change on it (ced0e2ac7b, the same two commits before the rebase) were run alternately, four pairs:depth plane storewrite-backs per 10 sEvery run of this change came out between 33 and 46 presents per 10 s, with the draw committer at 20 to 26 us per draw. That's the top of the fast group in #8840 (30 to 42). Base hit the slow mode of #8840 once (pair 1). In the other three base runs, depth plane stores were few, but the committer took 40 to 89 us per draw and presents were 15 to 27. I haven't tracked down what holds those base runs back. This change has more stores, but smaller ones, about 4 MiB each. The other services' CPU load on the machine was similar for both sides: 4.2 to 6.8 cores for this change, 4.7 to 6.5 for base. Level 1-1 renders the same on both: the in-level screenshots of pairs 2 and 4 match.
main745b394 on an RTX 4070 SUPER (NVIDIA 616.92, Windows 11, MinGW-w64 GCC 15.2.0 r7, Release).libSceAgcDriver,agc_driver_graphics_testsandagc_driver_depth_plane_partial_store_testsbuild without errors. The 29 tests those executables register on Windows, the newagc_driver_depth_plane_partial_storeamong them, pass twice (--repeat until-fail:2).Not tested: Intel; a title on AMD or Windows; other titles with stale depth planes.
Checklist
main; no other open PR implements the same functions (neighbouring lines: fix(agc): retire an unwritten native multisample depth surface on guest access #6727 inDepthSurface.hpp, fix(agc): bound the sampled depth-plane copies #7705 inENVIRONMENT.md, docs(agc): say that only a whole-plane storage write retires a depth surface #8423 in the same debt section)NotImplemented_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