Skip to content

perf(agc): copy contiguous rows of a drawn linear target store in one region - #147

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/10656
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/10656

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#10656, originally opened by thuanquang.

Source commit: fdea400fcefbee630eeb086e13df08a3840ec686. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

StorageTexture::storeDrawnRect stores a drawn linear target's rectangles in two steps. It copies the image into a scratch buffer, then the scratch buffer into the host import, and also into the target's saved bytes when the target is outside the write watch. Each copy uses one VkBufferCopy region per span that drawnSpans returns. drawnSpans returns one span per row, so storing a full-width rectangle issued one region per row: about 2048 regions for a 3072x2048 target.

In both copies, regions that are contiguous in both the source and the destination are now merged into one. Storing whole rows of a target without row padding becomes one region per import segment, split only where a 64 KiB block is kept for the CPU. The stored bytes, the stamps and the settle after the store are unchanged; only the number of regions changes.

Why

PPSA14363 (METAL GEAR SOLID - Master Collection Version, own dump): on the PS1 part's codec screen, the PS1 renderer redraws a whole 3072x2048 linear color target (found with a local diagnostic build). StoreDrawnLinear("flip") stores it through storeDrawnRect; before this change, the store used one copy region per row. In the trace pair below, the queue worker submits one GPU batch per present, inside Driver.Packet.flip_flush, the stage that also runs StoreDrawnLinear("flip"). At about every second present that stage takes 0.1 ms or more, and the batch it submits then holds the store together with the rest of that frame's GPU work. Every leg has 598 to 600 such batches per 1199 presents, at p50 9.90 ms on main and 7.54 ms with this change. The other batches take p50 1.05 ms on both arms, and their total differs by at most 0.013 ms per present between the arms.

Trace pair: main against this head merged onto it, on the RX 6700 XT (AMD driver 32.0.21045.16010, shown as 26.10.1 in the summary lines; Windows 11, build 26300 in the summary lines). Four legs in two exclusive pairs (main, PR, main, PR), 2026-11-12 12:17-12:38 UTC.

  • Base: main f57c971559a8dcacdb7b090ad5f4a82b7633ea96.
  • Change: a00f02a4d168f86d0a269052dfcae0177f38fe7a, this head fdea400fce merged onto that main (evidence/10656-main-f57c). Both are full builds of clean trees.
  • Scene: the codec screen, reached by the same scripted pad timeline from the same save, sent 25 s after launch. Window: APS5_TRACE_SECONDS=95:20; the four windows start at presents 5537 to 5653. The measured legs dump no frames.
  • The log is not redirected: each leg starts the emulator in its own console window, and nothing writes its stdout or stderr to a file. The summary env holds only APS5_TRACE_SECONDS, APS5_PAD_INPUT_FILE and APS5_NO_PAD_INPUT. No other game ran: before each leg the pair runner checks for running games, and the process list showed no game process when I checked it between and after the pairs. The caches were warm: both run folders had run the same route in six legs earlier that hour. Since the log is not kept, the shader cache hit counts quoted for the earlier pair are not available for this one.
leg build commit presents frame p50 / p99 / max GPU busy per present
1 main f57c971559a8 1199 16.683 / 17.415 / 17.804 ms 5.377 ms
2 change a00f02a4d168 1199 16.683 / 17.365 / 17.719 ms 4.275 ms
3 main f57c971559a8 1199 16.683 / 17.163 / 17.358 ms 5.312 ms
4 change a00f02a4d168 1199 16.684 / 17.304 / 17.649 ms 4.211 ms

tools/performance_compare.py --require-matching-context, main first: GPU busy per present -1.10 (legs 1/2), -1.04 (3/2) and -1.10 ms (3/4). Between legs of the same build it differs by 0.065 ms (main) and 0.064 ms (change). The mean frame is 16.683-16.684 ms in all four legs, at the 60 Hz cap, so the change frees GPU time without moving the frame time here.

tools/trace_digest.py:

**seconds 95:20** from present 5650: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.4 / max 17.8 ms, GPU busy 5.4 ms per present
**seconds 95:20** from present 5653: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.4 / max 17.7 ms, GPU busy 4.3 ms per present
**seconds 95:20** from present 5537: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.2 / max 17.4 ms, GPU busy 5.3 ms per present
**seconds 95:20** from present 5642: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.3 / max 17.6 ms, GPU busy 4.2 ms per present
Summary lines, legs 1-4
{"commit":"f57c971559a8","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5650,"ms":20003.421},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.909,"p99":17.415,"max":17.804},"gpu_busy_ms_per_present":5.377,"worker_busy_pct":{"queue worker 0x0":25.107},"top_phases_ms_per_frame":{"VideoOut.Flip":11.011,"VideoOut.Flip.vblank_wait":9.927,"Driver.Packet":4.183,"Driver.Packet.flip_flush":3.572,"Recorder.Sync":3.366,"VideoOut.Flip.present":0.987,"Driver.Present":0.985,"Driver.Present.queue_present":0.628},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-f57c971559a8-17900.json.gz"}
{"commit":"a00f02a4d168","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5653,"ms":20003.272},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.898,"p99":17.365,"max":17.719},"gpu_busy_ms_per_present":4.275,"worker_busy_pct":{"queue worker 0x0":13.016},"top_phases_ms_per_frame":{"VideoOut.Flip":13.055,"VideoOut.Flip.vblank_wait":11.927,"Driver.Packet":2.166,"Driver.Packet.flip_flush":1.551,"Recorder.Sync":1.385,"VideoOut.Flip.present":0.998,"Driver.Present":0.996,"Driver.Present.queue_present":0.628},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a00f02a4d168-21152.json.gz"}
{"commit":"f57c971559a8","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5537,"ms":20003.360},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.892,"p99":17.163,"max":17.358},"gpu_busy_ms_per_present":5.312,"worker_busy_pct":{"queue worker 0x0":24.989},"top_phases_ms_per_frame":{"VideoOut.Flip":10.929,"VideoOut.Flip.vblank_wait":9.786,"Driver.Packet":4.163,"Driver.Packet.flip_flush":3.505,"Recorder.Sync":3.291,"VideoOut.Flip.present":1.037,"Driver.Present":1.035,"Driver.Present.queue_present":0.664},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-f57c971559a8-15596.json.gz"}
{"commit":"a00f02a4d168","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5642,"ms":20003.309},"presents":1199,"frame_ms":{"p50":16.684,"p90":16.910,"p99":17.304,"max":17.649},"gpu_busy_ms_per_present":4.211,"worker_busy_pct":{"queue worker 0x0":21.972},"top_phases_ms_per_frame":{"VideoOut.Flip":11.342,"VideoOut.Flip.vblank_wait":10.166,"Driver.Packet":3.659,"Driver.Packet.flip_flush":2.944,"Recorder.Sync":2.745,"VideoOut.Flip.present":1.061,"Driver.Present":1.059,"Driver.Present.queue_present":0.670},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a00f02a4d168-17252.json.gz"}

The traces, digests, summary lines and the pair's score are on my fork at https://github.com/thuanquang/AnyPS5/tree/evidence/10656-main5084-traces (folder codec-95-20-main-f57c-head-fdea). The traces hold only timings and emulator scope and thread names; the digests and summary lines add the machine, the commits and the title.

Earlier pair (2026-10-31, main 50843f4, previous head; the log was redirected)

Trace pair: main against this change merged onto it, on the RX 6700 XT (AMD driver 32.0.21045.16010, shown as 26.10.1 in the summary lines; Windows 11 26200). Four legs in two exclusive pairs (main, PR, main, PR), 2026-10-31 19:54-20:18 UTC.

  • Base: main 50843f45d95b60e5772f4396431f9a39b8709d72.
  • Change: ba38183755751d4f1ddd223d9d402b333fbe076b, this PR's previous head fe506b00d0 merged onto that main (evidence/10656-main5084). The head named under Tested, fdea400fce, is 976a71c337 rebased onto main 2a3df01d6f (git range-diff shows only context lines moved; the conflict was two blocks added next to each other in Texture.hpp/Texture.cpp). 976a71c337 is the same change as one commit on main f2d874c1fd: git diff 50843f45d9 ba38183755 and git diff f2d874c1fd 976a71c337 add and remove the same 57 lines in the same order, and only the counter declaration sits at another line. storeDrawnRect, drawnSpans and StoreDrawnLinear are textually identical on both main commits.
  • Scene: the codec screen, reached by a scripted pad timeline from the same save, sent 25 s after launch. Window: APS5_TRACE_SECONDS=95:20; the four windows start at presents 5652 to 5659. I located the codec with frame dumps in an earlier shared run of the same route on main 319621ba2e; the measured legs dump no frames.
  • The summary env holds only APS5_TRACE_SECONDS, APS5_PAD_INPUT_FILE and APS5_NO_PAD_INPUT. The caches were warm: the shader disk cache reports 54 hits and 0 misses in every leg. One box of the performance form is not met: our launcher wrote the emulator's stdout and stderr to a file in all four legs, and the form asks not to redirect the log. Before each leg it waits until no build or other game is running and the CPU is idle; that check allows League of Legends and does not log it, so it may have been open.
leg build commit presents frame p50 / p99 / max GPU busy per present
1 main 50843f45d95b 1199 16.683 / 17.315 / 17.699 ms 5.490 ms
2 change ba3818375575 1199 16.683 / 17.263 / 17.742 ms 4.348 ms
3 main 50843f45d95b 1199 16.683 / 17.289 / 17.435 ms 5.542 ms
4 change ba3818375575 1199 16.683 / 17.212 / 17.719 ms 4.337 ms

tools/performance_compare.py --require-matching-context, main first: GPU busy per present -1.142 (legs 1/2), -1.194 (3/2) and -1.205 ms (3/4). Between legs of the same build it differs by 0.052 ms (main) and 0.011 ms (change). The mean frame is 16.683 ms in all four legs, at the 60 Hz cap, so the change frees GPU time without changing the frame rate on this GPU.

tools/trace_digest.py:

**seconds 95:20** from present 5655: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.3 / max 17.7 ms, GPU busy 5.5 ms per present
**seconds 95:20** from present 5652: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.3 / max 17.7 ms, GPU busy 4.3 ms per present
**seconds 95:20** from present 5658: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.3 / max 17.4 ms, GPU busy 5.5 ms per present
**seconds 95:20** from present 5659: 1199 presents, frame p50 16.7 / p90 16.9 / p99 17.2 / max 17.7 ms, GPU busy 4.3 ms per present
Summary lines, legs 1-4
{"commit":"50843f45d95b","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5655,"ms":20003.475},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.912,"p99":17.315,"max":17.699},"gpu_busy_ms_per_present":5.490,"worker_busy_pct":{"queue worker 0x0":4.523},"top_phases_ms_per_frame":{"VideoOut.Flip":14.529,"VideoOut.Flip.vblank_wait":13.403,"VideoOut.Flip.present":1.013,"Driver.Present":1.012,"Driver.Packet":0.751,"Driver.Present.queue_present":0.644,"Vulkan.QueuePresent":0.643,"Vulkan.QueuePresent.queue_present":0.640},"trace_dropped":false,"trace":"aps5-trace-50843f45d95b-9088.json.gz"}
{"commit":"ba3818375575","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5652,"ms":20003.363},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.907,"p99":17.263,"max":17.742},"gpu_busy_ms_per_present":4.348,"worker_busy_pct":{"queue worker 0x0":4.461},"top_phases_ms_per_frame":{"VideoOut.Flip":14.533,"VideoOut.Flip.vblank_wait":13.405,"VideoOut.Flip.present":1.012,"Driver.Present":1.009,"Driver.Packet":0.741,"Driver.Present.queue_present":0.631,"Vulkan.QueuePresent":0.630,"Vulkan.QueuePresent.queue_present":0.628},"trace_dropped":false,"trace":"aps5-trace-ba3818375575-19668.json.gz"}
{"commit":"50843f45d95b","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5658,"ms":20003.510},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.907,"p99":17.289,"max":17.435},"gpu_busy_ms_per_present":5.542,"worker_busy_pct":{"queue worker 0x0":4.529},"top_phases_ms_per_frame":{"VideoOut.Flip":14.550,"VideoOut.Flip.vblank_wait":13.452,"VideoOut.Flip.present":0.985,"Driver.Present":0.982,"Driver.Packet":0.752,"Driver.Present.queue_present":0.607,"Vulkan.QueuePresent":0.605,"Vulkan.QueuePresent.queue_present":0.603},"trace_dropped":false,"trace":"aps5-trace-50843f45d95b-2788.json.gz"}
{"commit":"ba3818375575","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"95:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.10.1 (AMD proprietary shader compiler)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32690,"title_id":"PPSA14363","title":"METAL GEAR SOLID - Master Collection Version","content_version":"03.000.000","resolution":"1920x1080","window":{"spec":"seconds 95:20","first_present":5659,"ms":20003.334},"presents":1199,"frame_ms":{"p50":16.683,"p90":16.896,"p99":17.212,"max":17.719},"gpu_busy_ms_per_present":4.337,"worker_busy_pct":{"queue worker 0x0":4.415},"top_phases_ms_per_frame":{"VideoOut.Flip":14.523,"VideoOut.Flip.vblank_wait":13.458,"VideoOut.Flip.present":0.982,"Driver.Present":0.980,"Driver.Packet":0.733,"Driver.Present.queue_present":0.605,"Vulkan.QueuePresent":0.603,"Vulkan.QueuePresent.queue_present":0.601},"trace_dropped":false,"trace":"aps5-trace-ba3818375575-7124.json.gz"}

The traces, digests and summary lines are on my fork at https://github.com/thuanquang/AnyPS5/tree/evidence/10656-main5084-traces (folder codec-95-20). The traces hold only timings and emulator scope and thread names; the digests and summary lines add the machine, the commits and the title.

Open PRs on the same code. boykopovar#10159's Texture.cpp merges into this head's without a conflict. boykopovar#8246's Texture.cpp and Texture.hpp merge without a textual conflict too, but as boykopovar#8246 stands (head 9377004c3c), writeBackLayers calls storeDrawnRect only when no pre-draw snapshot exists, and PrepareLinearDraw takes one for each linear target a recorded draw writes. Read from the code, not run: with boykopovar#8246, a store like the codec's would no longer reach the code this PR changes. The merge order with boykopovar#8246 is not agreed yet.

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, on this head fdea400fce (main 2a3df01d6f).

New case in agc_driver_linear_target_rectangle_bound: on a 64x256 RGBA32F linear target (rows contiguous, one import segment), it draws one seed pixel and waits for the device to go idle, which stores the target, then draws a full-width scissor over 128 rows and waits again. It checks every pixel: the band must hold the band draw's output, the seed pixel the seed draw's output, and every other pixel the initial bytes. Through a new StorageTexture::TakeDrawnStoreCounts, it also checks that the band's store used one copy region per destination: one when the target stays write-watched, two when it is outside the write watch (the import and the saved bytes). On this machine the band was outside the write watch at the store, so both merged copies ran (two regions). The write-watched branch, which has only the import copy, did not run here.

  • Red (on the earlier head 976a71c337), with only the region merge reverted (append back to push_back, the counter kept), 3 of 3: AGC graphics: a drawn linear target's store copied contiguous whole rows in more than one region per copy.
  • Green: on this head, 1 of 1 with ctest -V under the validation layer (below), and 3 of 3 inside the suite runs; on 976a71c337 3 of 3: linear target rectangle bound, full-width band of 128 rows, unwatched memory: 1 stores in 2 copy regions (expected 1 in 2), wrong drawn pixels 0, changed untouched pixels 0.

ctest -R "^agc_driver_(linear_target|bda_)" (21 entries) with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: 21 of 21 in each of 3 runs, on main 2a3df01d6f and on this head. With VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation added to the same two variables (one run each, with ctest -V, VK_LOADER_DEBUG=layer and VK_LOADER_LAYERS_DISABLE=~implicit~):

  • main: 21 of 21, layer inserted 24 times, no "was not found" line, 0 VUID- lines;
  • this head: 21 of 21, layer inserted 24 times, no "was not found" line, 0 VUID- lines.

On the earlier head fe506b00d0 (on boykopovar#9685's head d6d8966bba, main b930da950d): ctest -R "^(agc|shader)_" passed 1011 of 1014. The 3 failures are the sample_order tests that main fails on this GPU.

Runs by others in this thread, on other bases (supporting only):

  • JulesB40 (NVIDIA GeForce RTX 4070 Laptop GPU, driver 616.92, Windows 11), fe506b00d0 merged onto d4cb89300f: all 1,125 agc_ tests match that main.
  • TechLevelZero's NVIDIA CI (RTX 2000 Ada Generation, driver 595.99.02, Ubuntu 26.04.1), fe506b0 merged onto 73f4f7e: 0 new failures. Its test selection did not include agc_driver_linear_target_rectangle_bound.

Linux path, WSL2 Ubuntu 24.04 with lavapipe (Mesa 25.2.8), GCC 13, Release, on the earlier head 976a71c337: the new case passes 3 of 3 with APS5_WRITE_WATCH_IMPORTS=unwatch and 1 of 1 with the default, each with linear target rectangle bound, full-width band of 128 rows, unwatched memory: 1 stores in 2 copy regions (expected 1 in 2), wrong drawn pixels 0, changed untouched pixels 0. WSL2's kernel has no guest write watch, so the band is outside it in both modes.

Not tested: the write-watched branch of the new case (its memory was outside the write watch on both machines), and macOS.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6700 XT (gfx1031), AMD Windows driver 32.0.21045.16010, Windows 11 26200; NVIDIA GeForce RTX 4070 Laptop GPU, driver 616.92, Windows 11 (JulesB40, on d4cb89300f); NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Ubuntu 26.04.1 (TechLevelZero CI, on 73f4f7e, without the new case)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

… region

storeDrawnRect issued one vkCmdCopyBuffer region per row span, into the
host import and, outside the write watch, into the saved bytes, so a
full-width store of a 3072x2048 target issued about 2048 regions per
copy. Regions that are contiguous in both source and destination are now
merged; the stored bytes, the stamps and the settle are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the perf Performance change label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants