Skip to content

perf(agc): encode recorder batches on encoder threads from a recorded command stream (APS5_DEFERRED_ENCODE) - #18173

Draft
Nesyth wants to merge 5 commits into
boykopovar:mainfrom
Nesyth:perf/agc-deferred-batch-encoding
Draft

Nesyth wants to merge 5 commits into
boykopovar:mainfrom
Nesyth:perf/agc-deferred-batch-encoding

Conversation

@Nesyth

@Nesyth Nesyth commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What

The draw committer records every Vulkan command of a batch by calling the driver, and submits the batch itself. With the two switches of this PR it does neither, and that time moves to other threads.

  • APS5_ASYNC_SUBMIT: the recorder hands each closed batch to a queue submitter thread, which calls vkQueueSubmit in order. Every other submit, present or wait on that queue drains the submitter first under the queue lock.
  • APS5_DEFERRED_ENCODE (with APS5_ASYNC_SUBMIT): a batch opened while it is set records its commands into a command stream instead of a command buffer. At submit an encoder thread (APS5_ENCODERS, 2 by default, 1 to 3) replays the stream into a command buffer of its own pool, and the submitter waits for that encode before it submits the batch in order.
  • The stream: the device's function resolver is wrapped (RecordCommandStreams, installed next to DeferDestructionToIdle), so every vkCmd* function the driver resolves is one thunk per command. The thunk appends the call, with a copy of what its pointers name, when the command buffer is a stream handle, and calls the driver otherwise. A vkCmd* name without a thunk throws when it is resolved, so a new command cannot hand a stream handle to the driver. 53 commands are recorded.
  • APS5_VERIFY_DEFERRED_ENCODE replays each stream on the submitting thread instead of an encoder thread, to tell stream bugs from threading bugs.
  • Both switches are off by default and APS5_AB can toggle them. With both unset the only change is that vkCmd* lookups return the thunks, which call the driver.
  • The three VK_EXT_descriptor_heap commands are not in the stream: the Vulkan headers on main do not have them yet. They need thunks when feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508 lands.

Five commits: the queue submitter, the command stream, the encoder threads, a fix for reusing a retired batch, and the fix for the two problems the Windows check of ddb0003 found (a test target that compiles PipelineCache.cpp alone did not link, and the mock device of agc_recorder_deferred_encode* lacked vkCmdPushConstants). Three targets that compile Resources.cpp alone get a queue access that does nothing (tests/QueueAccessNone.cpp).

Design note: batches encoded and submitted off the drawing thread

Scope once this sits on #17943 and #18029

#17943 defers the vkCmd* calls of a draw's recording window and replays them on one encoder thread per device
while the batch is still open; #18029 adds transfers and occlusion queries to that stream. This PR keeps two
things they do not have and drops everything else:

  1. Encoding per closed batch on a pool of encoder threads. A batch's commands are replayed after the batch
    is closed, by one of APS5_ENCODERS threads (1 to 3, 2 by default), so batches encode side by side.
  2. Submission on a queue submitter thread. vkQueueSubmit runs on one thread per queue, in the order the
    batches were closed; the drawing thread does not wait at Submit.

Both stay opt-in (APS5_ASYNC_SUBMIT, APS5_DEFERRED_ENCODE); with both unset the default vkCmd* path is
the one #17943 leaves.

Threads and ownership

Thread What it does What it may touch
Drawing thread (the committer with APS5_DRAW_PIPELINE, otherwise the queue worker) Records the open batch, closes it, hands it over. The open batch and its command stream, under the GPU mutex. Never an encoder's command pool or buffer.
Encoder threads Each takes one closed stream: begins a command buffer from its own pool, replays the stream in order, ends the buffer, completes the batch's ticket. The closed stream (not written after Close), its own pool and buffers. No Recorder state, no guest memory.
Queue submitter (one per VkQueue) Takes jobs in the order they were enqueued; waits for the job's encode ticket; calls vkQueueSubmit under the queue mutex. The queue, the job's fence and semaphores.
Any other user of the queue (presentation, a direct submit, a wait on the queue) Takes QueueAccess: drains the submitter, then holds the queue mutex. The queue.

What is recorded

A batch opened while APS5_DEFERRED_ENCODE is set has no VkCommandBuffer; its command handle is a stream
handle. Each recorded vkCmd* call is appended with a copy of everything its pointers name, so the stream
holds values only. Objects a command refers to are kept by the batch as they are today and released when the batch
completes, which is after its fence signalled, so after its submit and its encode.

Ordering

  • Inside a batch: one thread appends in program order and one encoder replays in the same order, so the
    command buffer is the one inline recording produces (agc_command_stream, agc_recorder_deferred_encode*
    compare them).
  • Between batches: the drawing thread enqueues the job when it closes the batch; the submitter submits
    strictly in that order. An encode that finishes early waits in its ticket; a late one makes the submitter
    wait (EncodeTicket::Wait), never reorder.
  • Against other users of the queue: QueueAccess drains the submitter before a present, a direct submit or
    a wait, so they see every earlier batch submitted.
  • Completion: a wait for a batch waits for its fence and then for its submit call to have returned
    (WaitSubmitReturned) before the batch's results are read.
  • Lookups: the device's function resolver is wrapped, so every vkCmd* the driver resolves, the
    checkpoint markers and the query commands included, is a thunk that records into the stream; a vkCmd*
    name without a thunk throws when it is resolved, so no path can hand a stream handle to the driver.

Where the drawing thread waits

Never while recording and never at Submit. It waits only where it needs the queue (through QueueAccess) or a
batch's result (through the batch's fence, after its submit returned).

Failure

An exception during a replay fails the ticket. The submitter then submits that batch without commands, so its
fence and semaphores still signal in order, stores the error, and the drawing thread gets it at its next
enqueue (RethrowFailure). A failure of vkQueueSubmit is stored and rethrown the same way.

Fallbacks

What it adds to #17943, and what it costs

  • Adds: more than one batch encoding at a time; vkQueueSubmit off the drawing thread; no settle point
    while a batch records, because nothing touches a real command buffer before the batch is closed.
  • Costs: a batch reaches the GPU only after it is closed and encoded, where perf(agc): record Vulkan draw commands on an encoder thread #17943 replays as the batch
    records; the submitter's waits for encodes are counted ([encode] line).
  • Open question for the rebase: whether perf(agc): record Vulkan draw commands on an encoder thread #17943's chunk format can hold a whole batch until it closes. If it
    can, this PR reuses it and drops its own stream and thunks; if not, the note will say what is missing.

Measured (main 7f96086, an open-world, draw-heavy title, in-run A/B, 10 pairs)

Presents per 10 s 105.04 -> 116.64 (+11.50 +- 0.48 against the neighbouring phases, +11.0%); frame time
95.23 -> 85.76 ms. Traces of main and of the PR from one session are linked in the description.

Tested

Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2.

An open-world, draw-heavy title on main 7f96086, the same save and scene in every boot, no other switches.

In-run A/B on the PR build (APS5_AB=30:APS5_ASYNC_SUBMIT+APS5_DEFERRED_ENCODE, phases of 30 s from 190 s after the first present, 10 pairs, read with tools/ab_split.py):

both unset both set difference
presents per 10 s 105.04 116.64 +11.0% (+11.50 +- 0.48 against the neighbouring phases, n 10)
frame ms 95.23 85.76 -9.9% (-9.37 +- 0.36)

Separate boots, 313 s in game each, with APS5_TRACE_SECONDS=300:30:

build switches FPS frame p50 / p90 / p99 ms GPU busy ms per present
main 7f96086 none 7.60 136.5 / 144.7 / 156.2 32.7
this PR both set 8.57 120.0 / 125.4 / 130.1 32.3

Two more boots of main without a trace gave 7.46 and 7.78 FPS over 229 s in game. No boot had a fatal error or a lost device. The measured build is 151796f744. The head differs from it in tests and in where the thunks are installed; one more boot of the head with both switches set gave 8.48 FPS over 143 s, again without a fatal error.

Both traces are incomplete: the queue worker and the draw committer filled their buffers inside the 30 s window, as the digests below say. The summary lines are complete.

Traces, both captured on the same machine in one session: main 7f96086b4e, this PR.

Tests: on the head, after a build of every target: agc_command_stream, agc_driver_recorder, agc_driver_recorder_deferred_encode and _verify, agc_recorder_deferred_encode, _one, _three and _verify, agc_submit_progress_deferred_encode and _verify, agc_pipeline_cache_allocation_*, agc_buffer_pool*, agc_command_batch_failure, agc_driver_pooled_buffer_range, agc_deferred_destruction and the runtime switch tests pass (28 of 28).

trace_digest: main 7f96086

seconds 300:30 from present 4191: 219 presents, frame p50 136.5 / p90 144.7 / p99 156.2 / max 193.5 ms, GPU busy 32.7 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 7f96086, dropped: yes

{"commit":"7f96086b4e9f","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4191,"ms":30102.174},"presents":219,"frame_ms":{"p50":136.453,"p90":144.67,"p99":156.19,"max":193.475},"gpu_busy_ms_per_present":32.723,"worker_busy_pct":{"queue worker 0x0":97.421},"top_phases_ms_per_frame":{"Driver.Packet":127.279,"Graphics.Draw":101.951,"Driver.Packet.draw":99.611,"Driver.Draw":98.448,"Graphics.Draw.draw_and_resource_release":86.987,"Driver.Draw.shader_compile_and_link":49.714,"Shader.DrawStage":36.081,"Driver.Draw.draw_enqueued":31.328},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.989,"events_lost":1312170,"totals_full":false},"draw committer":{"events_full_after_s":10.904,"events_lost":460652,"totals_full":false}},"trace":"aps5-trace-7f96086b4e9f-87472.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 1312170 events lost; buffer full at 4988.6 ms
  • draw committer: 460652 events lost; buffer full at 10904.0 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4232: 193.5 ms at 5539 ms: Graphics.Draw (draw committer) 135.7, Graphics.Draw.draw_and_resource_release (draw committer) 111.8, batch (gpu) 32.4, VideoOut.Flip (presenter) 7.2
  • present 4368: 163.0 ms at 24275 ms: batch (gpu) 32.6, VideoOut.Flip (presenter) 7.1, VideoOut.Flip.present (presenter) 7.0, Driver.Present (presenter) 7.0
  • present 4241: 156.2 ms at 6844 ms: Graphics.Draw (draw committer) 99.9, Graphics.Draw.draw_and_resource_release (draw committer) 84.0, batch (gpu) 33.2, VideoOut.Flip (presenter) 6.4
  • present 4364: 155.5 ms at 23696 ms: batch (gpu) 30.9, VideoOut.Flip (presenter) 7.9, VideoOut.Flip.present (presenter) 7.8, Driver.Present (presenter) 7.8
  • present 4340: 154.4 ms at 20452 ms: batch (gpu) 32.0, VideoOut.Flip (presenter) 7.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 4232: 193.5 ms at 5539 ms, persistence 70.8 ms
  • present 4368: 163.0 ms at 24275 ms, persistence 40.3 ms
  • present 4340: 154.4 ms at 20452 ms, persistence 26.6 ms
  • present 4289: 152.2 ms at 13350 ms, persistence 25.0 ms
  • present 4241: 156.2 ms at 6844 ms, persistence 23.4 ms
  • present 4389: 153.7 ms at 27175 ms, persistence 22.3 ms
  • present 4333: 147.6 ms at 19482 ms, persistence 18.0 ms
  • present 4364: 155.5 ms at 23696 ms, persistence 17.4 ms
  • present 4406: 149.0 ms at 29540 ms, persistence 17.1 ms
  • present 4337: 151.4 ms at 20030 ms, persistence 17.1 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 137.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 17.6 (13 %) 0.2 (0 %) 119.7 29.7 Driver.Packet 16.7, Driver.Rewind 0.7
draw committer 33.1 (24 %) 0.1 (0 %) 104.3 17.6 Graphics.Draw 31.1, Recorder.Submit 1.8
title 0.0 (0 %) 0.0 (0 %) 137.4 0.0
presenter 2.4 (2 %) 5.3 (4 %) 129.7 0.1 VideoOut.Flip 7.7, Driver.Present 0.0
gpu 32.7 (24 %) 0.0 (0 %) 104.8 0.0 batch 32.7

Largest slices (ms per frame, inclusive, all threads): batch 32.7, Graphics.Draw 31.1, Graphics.Draw.draw_and_resource_release 25.2, Driver.Packet 16.7, Driver.Packet.draw 13.7, Driver.Draw 13.5, VideoOut.Flip 7.7, Driver.Present 7.6, VideoOut.Flip.present 7.5, Driver.Draw.shader_compile_and_link 4.5

Longest waits

  • Driver.Present.render_fence_wait (presenter) 8.1 ms at 28715 ms, present 4400
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.8 ms at 27600 ms, present 4392
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.7 ms at 20030 ms, present 4337
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.6 ms at 14198 ms, present 4295
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.4 ms at 13086 ms, present 4287
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.2 ms at 18100 ms, present 4323
  • Driver.Present.render_fence_wait (presenter) 6.2 ms at 26215 ms, present 4382
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.1 ms at 27329 ms, present 4390
  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.0 ms at 19630 ms, present 4334
  • Vulkan.Acquire.acquire_fence_wait (presenter) 4.7 ms at 26208 ms, present 4382

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 27902: 7.8 ms at 28434 ms, present 4397: GPU no ranges; recorded by no CPU slices
  • batch 18609: 7.3 ms at 18923 ms, present 4328: GPU no ranges; recorded by no CPU slices
  • batch 19154: 7.3 ms at 19481 ms, present 4332: GPU no ranges; recorded by no CPU slices
  • batch 15743: 7.1 ms at 16018 ms, present 4307: GPU no ranges; recorded by no CPU slices
  • batch 15468: 7.1 ms at 15737 ms, present 4305: GPU no ranges; recorded by no CPU slices
trace_digest: this PR, both switches set

seconds 300:30 from present 4494: 250 presents, frame p50 120.0 / p90 125.4 / p99 130.1 / max 131.9 ms, GPU busy 32.3 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 151796f74490, dropped: yes

{"commit":"151796f74490","dirty":false,"env":{"APS5_ASYNC_SUBMIT":"1","APS5_DEFERRED_ENCODE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4494,"ms":30057.946},"presents":250,"frame_ms":{"p50":119.959,"p90":125.399,"p99":130.079,"max":131.933},"gpu_busy_ms_per_present":32.275,"worker_busy_pct":{"queue worker 0x0":97.347},"top_phases_ms_per_frame":{"Driver.Packet":111.063,"Graphics.Draw":90.681,"Driver.Packet.draw":87.602,"Driver.Draw":86.51,"Graphics.Draw.draw_and_resource_release":77.529,"Driver.Draw.shader_compile_and_link":44.971,"Shader.DrawStage":32.417,"Driver.Draw.draw_enqueued":25.854},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.977,"events_lost":1341765,"totals_full":false},"draw committer":{"events_full_after_s":11.236,"events_lost":445009,"totals_full":false}},"trace":"aps5-trace-151796f74490-98812.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 1341765 events lost; buffer full at 4976.9 ms
  • draw committer: 445009 events lost; buffer full at 11236.3 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4722: 131.9 ms at 27371 ms: batch (gpu) 35.8, VideoOut.Flip (presenter) 7.9, VideoOut.Flip.present (presenter) 7.8, Driver.Present (presenter) 7.8
  • present 4628: 131.3 ms at 16013 ms: batch (gpu) 36.8, VideoOut.Flip (presenter) 12.2, VideoOut.Flip.present (presenter) 12.1, Driver.Present (presenter) 12.1
  • present 4630: 130.1 ms at 16266 ms: batch (gpu) 31.9, VideoOut.Flip (presenter) 8.5, VideoOut.Flip.present (presenter) 8.4, Driver.Present (presenter) 8.4
  • present 4666: 129.4 ms at 20655 ms: batch (gpu) 34.0, VideoOut.Flip (presenter) 7.9, VideoOut.Flip.present (presenter) 7.8, Driver.Present (presenter) 7.8
  • present 4738: 128.3 ms at 29317 ms: batch (gpu) 34.4, VideoOut.Flip (presenter) 8.2, VideoOut.Flip.present (presenter) 8.1, Driver.Present (presenter) 8.1

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 4722: 131.9 ms at 27371 ms, persistence 19.3 ms
  • present 4628: 131.3 ms at 16013 ms, persistence 18.4 ms
  • present 4569: 128.2 ms at 8946 ms, persistence 15.5 ms
  • present 4666: 129.4 ms at 20655 ms, persistence 13.5 ms
  • present 4573: 128.0 ms at 9435 ms, persistence 13.3 ms
  • present 4622: 128.0 ms at 15289 ms, persistence 12.6 ms
  • present 4617: 127.1 ms at 14683 ms, persistence 11.8 ms
  • present 4650: 128.1 ms at 18692 ms, persistence 11.8 ms
  • present 4588: 125.4 ms at 11240 ms, persistence 11.7 ms
  • present 4738: 128.3 ms at 29317 ms, persistence 11.6 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
command encoder 2 2.2 (2 %) 0.0 (0 %) 118.0 0.2 Graphics.Encode 2.2
command encoder 2.2 (2 %) 0.0 (0 %) 118.1 0.2 Graphics.Encode 2.2
title 0.0 (0 %) 0.0 (0 %) 120.2 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 14.8 (12 %) 0.2 (0 %) 105.3 28.5 Driver.Packet 14.0, Driver.Rewind 0.7
draw committer 28.1 (23 %) 0.1 (0 %) 92.1 18.1 Graphics.Draw 27.9, Recorder.Reap 0.2
presenter 2.7 (2 %) 5.5 (5 %) 112.0 0.1 VideoOut.Flip 8.2, Driver.Present 0.0
gpu 32.3 (27 %) 0.0 (0 %) 88.0 0.0 batch 32.3

Largest slices (ms per frame, inclusive, all threads): batch 32.3, Graphics.Draw 27.9, Graphics.Draw.draw_and_resource_release 22.1, Driver.Packet 14.0, Driver.Packet.draw 11.6, Driver.Draw 11.4, VideoOut.Flip 8.2, Driver.Present 8.1, VideoOut.Flip.present 8.0, Graphics.Encode 4.4

Longest waits

  • Vulkan.Acquire.acquire_fence_wait (presenter) 6.3 ms at 9196 ms, present 4571
  • Driver.Present.render_fence_wait (presenter) 6.1 ms at 13132 ms, present 4604
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 19566 ms, present 4657
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 21871 ms, present 4676
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.8 ms at 29070 ms, present 4736
  • Driver.Present.render_fence_wait (presenter) 5.7 ms at 3318 ms, present 4522
  • Driver.Present.render_fence_wait (presenter) 5.7 ms at 21394 ms, present 4672
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 4973 ms, present 4536
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 27979 ms, present 4727
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 8214 ms, present 4563

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 14473: 7.3 ms at 13007 ms, present 4603: GPU no ranges; recorded by Graphics.Encode (command encoder 2) 0.0
  • batch 32209: 7.3 ms at 29071 ms, present 4736: GPU no ranges; recorded by Graphics.Encode (command encoder) 0.0
  • batch 516: 7.2 ms at 482 ms, present 4498: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Graphics.Encode (command encoder) 0.0, Recorder.Reap (draw committer) 0.0
  • batch 9819: 6.9 ms at 8818 ms, present 4567: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Graphics.Encode (command encoder 2) 0.0
  • batch 11278: 6.8 ms at 10169 ms, present 4578: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Graphics.Encode (command encoder) 0.0

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 7900 XTX, AMD Software 26.10.1, Windows 11 Pro 26300
  • AI-assisted: yes

@github-actions github-actions Bot added the perf Performance change label Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 17943 core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp
PR 18029 core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp
PR 22190 core/libs/prx/libSceAgcDriver/Graphics/include/QueueSubmitter.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/QueueSubmitter.cpp
PR 22697 core/libs/prx/libSceAgcDriver/Graphics/include/CommandStream.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandStream.cpp

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.

Pull request Shared files not compared
PR 862 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1896 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 4847 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5372 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6924 docs/dev/ENVIRONMENT.md
PR 7002 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 7643 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_submit_progress_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 10193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 10359 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 10492 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10867 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11587 core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 12157 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 12324 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12568 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 12746 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 12792 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 12827 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 12828 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 12849 docs/dev/ENVIRONMENT.md
PR 12863 docs/dev/ENVIRONMENT.md
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 12994 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 13148 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
PR 13251 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 14217 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14260 docs/dev/ENVIRONMENT.md
PR 14262 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 14871 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 15058 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15295 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
PR 15297 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 15548 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 16217 docs/dev/ENVIRONMENT.md
PR 16354 docs/dev/ENVIRONMENT.md
PR 16427 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 16571 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16793 docs/dev/ENVIRONMENT.md
PR 16796 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16831 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 16953 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 17056 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 17259 docs/dev/ENVIRONMENT.md
PR 17261 docs/dev/ENVIRONMENT.md
PR 17555 docs/dev/ENVIRONMENT.md
PR 17556 docs/dev/ENVIRONMENT.md
PR 17557 docs/dev/ENVIRONMENT.md
PR 17558 docs/dev/ENVIRONMENT.md
PR 17611 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 17623 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 17719 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 17943 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 18029 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/CommandEncoder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandEncoder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 18293 core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 18693 docs/dev/ENVIRONMENT.md
PR 18829 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 18956 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 19557 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 19610 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 20030 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20041 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 20111 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20172 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20183 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20248 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 20518 docs/dev/ENVIRONMENT.md
PR 20519 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20580 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 20728 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 21211 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21303 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21460 docs/dev/ENVIRONMENT.md
PR 21649 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 21669 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 21923 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 22001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 22029 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 22071 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22424 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 22531 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 22546 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 22550 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 22692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22697 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/CommandStream.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/CommandStream.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 22731 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 22944 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 23234 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 23242 docs/dev/ENVIRONMENT.md
PR 23244 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 23252 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 23545 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 23587 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23595 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23596 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 23739 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 23811 docs/dev/ENVIRONMENT.md
PR 23955 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23975 docs/dev/ENVIRONMENT.md
PR 24049 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 24176 docs/dev/ENVIRONMENT.md
PR 24294 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 24327 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
docs/dev/ENVIRONMENT.md
PR 24444 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 24445 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 24510 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 24523 docs/dev/ENVIRONMENT.md
PR 24661 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 24714 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 24735 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 24756 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 24936 docs/dev/ENVIRONMENT.md
PR 25010 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 25534 docs/dev/ENVIRONMENT.md
PR 25559 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25703 docs/dev/ENVIRONMENT.md
PR 26036 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 26365 docs/dev/ENVIRONMENT.md
PR 26613 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 26686 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 26691 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 26802 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 26819 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 26913 core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 27133 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 27164 docs/dev/ENVIRONMENT.md
PR 27288 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 27451 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 27471 docs/dev/ENVIRONMENT.md
PR 27688 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 27744 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27811 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27833 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 27864 docs/dev/ENVIRONMENT.md
PR 27870 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27872 docs/dev/ENVIRONMENT.md
PR 27887 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27979 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 27984 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28043 docs/dev/ENVIRONMENT.md
PR 28051 docs/dev/ENVIRONMENT.md
PR 28059 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28077 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 28102 docs/dev/ENVIRONMENT.md
PR 28114 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
PR 28118 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 28119 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28140 docs/dev/ENVIRONMENT.md
PR 28142 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28150 docs/dev/ENVIRONMENT.md
PR 28166 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28169 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28176 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 28186 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28193 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28195 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ResidentMirror.cpp
PR 28198 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28209 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28214 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28229 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 28234 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28237 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28240 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28252 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28268 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28289 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
PR 28291 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 28293 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DeferredDestruction.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 28295 docs/dev/ENVIRONMENT.md
PR 28296 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28299 docs/dev/ENVIRONMENT.md
PR 28332 docs/dev/ENVIRONMENT.md
PR 28333 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 28372 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28384 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28388 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28389 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28390 docs/dev/ENVIRONMENT.md
PR 28391 docs/dev/ENVIRONMENT.md
PR 28396 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28400 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 28411 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_pooled_buffer_range_tests.cmake
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/ENVIRONMENT.md
PR 28421 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28427 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28434 docs/dev/ENVIRONMENT.md
PR 28470 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28476 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28487 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28488 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28490 docs/dev/ENVIRONMENT.md
PR 28492 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 28496 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 28520 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28521 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28523 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28537 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28583 core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28590 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28622 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 28624 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28631 docs/dev/ENVIRONMENT.md
PR 28659 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28673 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28681 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 28692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28694 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 28702 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28704 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28738 docs/dev/ENVIRONMENT.md
PR 28750 core/libs/prx/libSceAgcDriver/Graphics/src/Resources.cpp
PR 28765 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 28766 docs/dev/ENVIRONMENT.md
PR 28768 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 28775 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 28777 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28786 core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 28787 core/libs/prx/libSceAgcDriver/Graphics/include/RuntimeSwitches.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/RuntimeSwitches.cpp
docs/dev/ENVIRONMENT.md
PR 28793 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28805 docs/dev/ENVIRONMENT.md
PR 28807 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 28808 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 28814 docs/dev/ENVIRONMENT.md
Report truncated: 103 more lines omitted.

…so sources built without the library still link
@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Windows check of head ddb00039e0, merged onto main 9e3265259e (GPU merge b7bb13df43; CPU merge 680c76a866).

Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release build.

Two problems, both in the PR's own code:

  1. agc_pipeline_cache_allocation_tests no longer links. This is why the hosted windows job fails:

    PipelineCache.cpp.obj: undefined reference to `AgcDriver::Graphics::ResolveDeviceFunction(VkDevice_T*, void (*(*)(VkDevice_T*, char const*))(), char const*)'
    

    Context::Function now calls ResolveDeviceFunction, which is defined in Graphics/src/CommandStream.cpp. That target compiles Graphics/src/PipelineCache.cpp on its own, without CommandStream.cpp, and it is built whenever BUILD_TESTING is on.

  2. The four agc_recorder_deferred_encode* tests fail 3 of 3, both on the GPU and with Vulkan hidden, about 0.02 s after starting:

    AGC graphics: missing Vulkan function: vkCmdPushConstants
    

    With the proc table on (the default, no APS5_NO_PROC_TABLE), the Recorder resolves vkCmdPushConstants up front (Recorder.cpp, line 1369 on the PR head). The mockProc table in tests/RecorderDeferredEncode.cpp has no entry for it, so construction throws. The eager lookup predates this PR, from 2b388e0, so this should fail the same way on any platform.

Results through the shared Windows GPU FIFO with ANYPS5_REQUIRE_VULKAN=1, 3 runs: 15 of 27 outcomes passed. The binaries matched the hashes recorded at preparation, and the receipt shows app_count=0 after cleanup.

Test GPU, 3 runs CPU, Vulkan hidden, 3 runs
agc_command_stream passed 3 of 3 passed 3 of 3
agc_driver_recorder_deferred_encode / _verify passed 3 of 3 each skipped (needs a device)
agc_submit_progress_deferred_encode / _verify passed 3 of 3 each skipped (needs a device)
agc_recorder_deferred_encode / _one / _three / _verify failed 3 of 3 each failed 3 of 3 each

I made no performance measurement of APS5_DEFERRED_ENCODE.

AI-assisted: yes.

@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Windows re-check of head 6cf4c1a0b5, merged onto main 2aab6f9129 (GPU merge 111119ebfc; CPU merge 7550653bd2 on eb25516e49). Both problems from my previous comment are fixed here.

Setup: Windows 11 Enterprise 22621, AMD RX 6700 XT, AMD driver 26.10.1, MinGW-w64 GCC 15.2 UCRT, Release build.

  • GPU, through the shared Windows GPU FIFO with ANYPS5_REQUIRE_VULKAN=1: all 9 tests passed in 3 of 3 runs, 27 of 27 outcomes. That includes agc_recorder_deferred_encode and its _one, _three and _verify variants, which failed 3 of 3 on ddb00039e0. The binaries matched the hashes recorded at preparation, and the receipt shows exit 0 and app_count=0 after cleanup.
  • CPU, Vulkan hidden: 5 passed and 4 skipped (they need a device), with no failures, in 3 of 3 runs.
  • Link: agc_pipeline_cache_allocation_tests now links. I built it in the same merged tree after the GPU runs, with exit 0 and no undefined references.

I made no performance measurement of APS5_DEFERRED_ENCODE.

AI-assisted: yes.

@oneandonlydean oneandonlydean self-assigned this Nov 11, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi @Nesyth,

Thanks for this. #17943 also moves command recording onto worker threads and shares 9 files with this PR, so the two can't both land as they are. We're keeping #17943 as the base for multi-threaded recording.

Could you:

  1. Write a short design note in this PR's description: which work moves to the encoder threads, how ordering and synchronisation with the submitting thread are kept, and what it adds that perf(agc): record Vulkan draw commands on an encoder thread #17943 does not.
  2. Rebase this PR onto perf(agc): record Vulkan draw commands on an encoder thread #17943 as a follow-up that carries only what perf(agc): record Vulkan draw commands on an encoder thread #17943 lacks. Please keep the default vkCmd* path unchanged unless the change is opt-in or the note shows why the default has to change.

Once that's in, it gets a full review. Your GTA V results are welcome as evidence on the rebased head.

@Nesyth

Nesyth commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @oneandonlydean. Agreed: #17943 is the base, and this PR becomes a follow-up on it (and on #18029, which touches the same files).

What the follow-up will carry, and nothing else:

  1. More than one encoder. perf(agc): record Vulkan draw commands on an encoder thread #17943 replays every command buffer on one encoder thread per device. Here a batch's command stream is closed and handed to a pool of encoder threads, so batches encode side by side.
  2. Submission off the drawing thread. A submitter thread waits for a batch's encoder and submits in order, so the drawing thread does not wait at Submit.

Everything that overlaps #17943 and #18029 (deferring the vkCmd* calls of a draw, transfers and queries in the stream, the failure contract) leaves this PR. The default path stays as #17943 leaves it; the follow-up stays opt-in behind APS5_DEFERRED_ENCODE.

Order of work: the design note goes into the description first (threads and ownership, ordering against single-thread submission, what the submitter may touch, fallback, tests, and which parts can sit on #17943's chunk format). The rebase follows once #17943's head is stable again; it is held on agc_driver_swap_alt_blend at the moment. This PR stays a draft until then.

@Kannorhart

Copy link
Copy Markdown

On current main, APS5_DEFERRED_ENCODE aborts at the first draw on NVIDIA:

terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: vkCmdSetColorWriteMaskEXT has no command stream thunk, so it would pass a stream handle to the driver
FATAL: abort() (SIGABRT) on thread 21668

Setup: Windows 11 26300, RTX 4070 Ti (NVIDIA 610.47), MinGW-w64 GCC 15.2, Release. Head 6cf4c1a0b5 merged onto main 016db0480e, run with APS5_ASYNC_SUBMIT=1 APS5_DEFERRED_ENCODE=1.

Repro: The Pathless (PPSA01825). The abort happens 8-9 s after start, before gameplay, in 3 of 3 runs. main runs normally.

Cause: #16572 (merged 2026-11-11, after this PR's base 7f96086b4e) sets colour write masks per draw. When the device supports dynamic colour write masks, it resolves vkCmdSetColorWriteMaskEXT through Context::Function (Resources.cpp:283, Pipeline.cpp:1026). CommandStream.cpp has no thunk for it, so the resolver throws as designed. The command needs a thunk; its array argument (pColorWriteMasks) needs copying like the other array commands.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 13, 2026
@JJenkx

JJenkx commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

@Nesyth @Kannorhart I reproduced the missing vkCmdSetColorWriteMaskEXT thunk on RX 6650 XT / RADV and prepared a two-file fix plus regression.

The production change adds the command to the sorted thunk table and copies its attachmentCount mask entries into stream storage, using the existing array-copy path. This preserves the first attachment and each mask for deferred replay. Vulkan command definition.

The regression adds two attachment ranges to the existing round-trip test, including a zero write mask. It overwrites the caller's arrays before replay and replays twice; all 54 command types are checked. I also refreshed this test's fake resolver for the eight buffer/memory functions now required by FillDeviceFunctions. Those mock entries throw if called; the unknown-command refusal checks remain.

Private integration Matched physical-GPU cases Skips / VUIDs
Original PR, switches unset 0/24; all stop at the missing color-mask thunk 0 / 0
Color-mask fix, switches unset 24/24 0 / 0
Color-mask fix, APS5_ASYNC_SUBMIT=1, deferred encode unset 24/24 0 / 0

The identical refreshed CPU test binary fails with the expected missing-thunk error against the original SDK and passes all round-trip/lifetime/refusal checks against the corrected SDK.

Pins: PR head 6cf4c1a0b5, private common base c2fae97fbcae (main 504f9c6 plus #17787 and #18050), original integration 2c4844f7bd6a, production fix 01df985373a0, refreshed test fixture 2cf31172dfe1. Hardware: RX 6650 XT, RADV Mesa 26.2.6, Linux 7.2.14, validation layer 1.4.363. Every GPU case inserted the validation layer and selected the physical AMD GPU, with shader cache disabled and Vulkan required.

Portable patch, reconstruction patches, pins, identical-fixture proof and complete paired logs. The uploaded archive was downloaded again and all 15 members verified. The two-file patch passes git apply --cached --check against the original PR head 6cf4c1a0b5.

Follow-up validation on the same corrected SDK: the broader Recorder suite passes 4/4 on the physical GPU, covering default, async-only, deferred encoding and deferred verification. All four inserted validation and selected RX 6650 XT; zero skips/VUIDs. An initial test-bundle attempt omitted unpatched libSceAgc.prx and executed no GPU work; that packaging error was corrected and the complete gate rerun.

Asterigos (PPSA08194), with APS5_ASYNC_SUBMIT=1 and deferred encoding unset, renders the saved Outerrim world and exits cleanly after 283.9 s. Original save/cache/assets/source/kernel/mount guards all pass, with no leftover native processes and zero dropped trace events. This verifies one saved-scene run, not gameplay traversal or audio fidelity. The idle camera changes framing, so a matched game-FPS gain remains unproven. Submission moving to a helper is not total CPU work eliminated.

Native trace/canonical summary, GPU-frame scene review, invocation/harness, four-mode logs and packaging-error disclosure. The uploaded follow-up archive was downloaded again and all 13 members verified.

AI-assisted: yes.

@github-actions github-actions Bot added the perf numbers missing perf pull request without a before and after summary line label Nov 14, 2026
@JJenkx

JJenkx commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Fresh scene-qualified Asterigos (PPSA08194) comparison for this PR plus the color-mask fix, after resuming the Linux host. The interrupted pre-pause control and earlier unqualified windows are excluded.

Scope: frozen common base c2fae97fbcae (main 504f9c6 plus #17787 and #18050) against corrected private integration 01df985373a0, with APS5_ASYNC_SUBMIT=1 and deferred encoding unset. This measures the integration on that older base; current main has advanced substantially.

30-second profiled trace Common control Corrected integration, async on
Frame p50, ms 462.429 311.205
Frame p90, ms 594.309 379.020
Frame p99, ms 1286.853 451.302
Presented frames/second in trace 2.117 3.198
Calling-thread Recorder.Submit, ms/present 158.949 5.103

Both runs reached the same saved Outerrim scene, passed two fresh world/camera checks before tracing and a fresh check afterward, and exited cleanly. I manually reviewed the native GPU-frame brackets. There were no captures inside the trace, zero dropped events, no active build work detected by the recorded process-group probe, and all save/cache/assets/source/kernel/mount guards passed. Same RX 6650 XT, RADV 26.2.6, Ryzen 7950X, Linux 7.2.14, 1920×1080, original checkpoint and identical warmed cache. APS5_PROFILE_DRAW=1 and tracing were enabled in both arms.

The observed median frame-time reduction is about 33% in this single profiled pair. Repeatability, unprofiled gameplay FPS and latest-main performance are not established. Moving submission to another thread does not eliminate its total CPU work.

Raw traces, canonical summaries, native scene images, exact public-source reconstruction patches, invocation/guard proofs and scene/host-control code. Downloaded the uploaded archive again and verified all 31 members. No game binaries, save contents or shader caches are included.

AI-assisted: yes.

@JJenkx

JJenkx commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Additional workload for the async-submit part: Under the Waves (PPSA08056 v01.009.000) spends nearly all its recorder submit interval inside the host vkQueueSubmit call.

Pinned main 05c388fdbf35 plus #20845 reset-state and #21087 failure-only dumps (bb17de5dee40), with only seven PerformanceTimer.Mark calls added to Recorder::Submit (ce182aa842d8). This run does not contain #18173. RX 6650 XT / RADV26.2.7, Ryzen7950X, Linux7.2.14, 3840×2160, original Day1 save and closed matching-compiler world cache.

In the fixed 435:20 trace window (33 presents /20.408s, no dropped events):

Aggregate wall time ms
Recorder.Submit 7695.805
.queue_submit 7517.380
.prepare 135.812
.publish 24.309
.end_commands 6.007
.submission_setup 5.430
.deferred_destruction 4.708
.drop_kept 0.524

The queue_submit interval is97.68% of the submit span. This is wall-time attribution: CPU time versus blocking, and the underlying driver/kernel cause, remain unestablished. It motivates testing APS5_ASYNC_SUBMIT independently of deferred encoding; it is not a new FPS-gain claim or a validation of this PR on this base. I will reuse the existing color-mask correction rather than implement another submitter.

The final native GPU capture shows the Day1 tunnel/tutorial with a legible HUD. Normal exit0/483.3s, all10 source/bank/cache/save/assets/kernel/cleanup guards pass. Actual patched-driver commit/markers plus live mapped inode/hash were checked before accepting the run. A first attempt selected a stale patched SDK output through a CMake basename alias; that attempt is excluded entirely. The corrected build uses the explicit core/libs/libs/libSceAgcDriver.prx target. Nine focused checks pass (eight recorder protocol/mock cases and one realGPU image case), zero skips/VUIDs, with the actual validation-layer/device selection recorded.

Corrected trace, summaries, exact source/provider pins and patches, binary provenance, GPU-test logs, native receipts and preview — SHA256 ab279241f8b2dd20d343e71d177d6f2b37f3d01c708a684052593152bd7ccf33; downloaded archive and all28 member hashes verified. No title assets, saves or shader request blobs are included.

AI-assisted: yes

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth your "Scope once this sits on #17943 and #18029" section matches what we see, and we'd like to agree a split along those lines so the two efforts don't overlap.

Proposal

  1. Async submit as its own PR, first. The queue submitter (APS5_ASYNC_SUBMIT) works with deferred encoding off and doesn't need perf(agc): record Vulkan draw commands on an encoder thread #17943 or perf(agc): record transfers in the encoder stream without waiting #18029, so it can land independently. It also looks like the larger and more general part:
    • JJenkx measured it alone on Asterigos: calling-thread Recorder.Submit went from 159 to 5 ms per present, and frame p50 from 462 to 311 ms.
    • JJenkx's Under the Waves trace on main: 97.7% of Recorder.Submit is the host vkQueueSubmit call itself.
    • On GTA V the draw committer is about 90% busy and on the critical path, and submit is one of the costs it would shed.
  2. Batch encoding on the encoder pool as a second PR, on perf(agc): record Vulkan draw commands on an encoder thread #17943's command stream. Building it on perf(agc): record Vulkan draw commands on an encoder thread #17943's stream gives one stream format and one vkCmd* thunk table instead of two, so a new command needs one thunk. The missing vkCmdSetColorWriteMaskEXT thunk Kannorhart hit is the kind of gap a second table invites. On our side we'd provide:
  3. Order: perf(agc): record Vulkan draw commands on an encoder thread #17943, then perf(agc): record transfers in the encoder stream without waiting #18029, then batch encoding. Async submit can go in at any point.
  4. Ownership: you own async submit and batch encoding; we own the stream and the API your encoder needs from it. We won't build either of your two pieces ourselves.

Testing we can offer

We can run each PR on GTA V (PPSA04263, city scene, RTX 3080) against main in our matched setup: interleaved boots, quiet-machine checks, and the summary lines per CONTRIBUTING. Results go in your thread.

For reference, from our 2026-11-11 session on that scene:

Today, #17943 alone with the zero-tax path measures level with main.

Does this split work for you? If you'd rather keep your stream, say which parts of #17943's you'd need changed for the encoder pool to sit on it.

AI-assisted: yes

@JJenkx

JJenkx commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Async-submit-only qualification found a device-lifetime issue to carry into the proposed split.

The submitter registry retains its VkQueue entry and detached worker after VulkanDevice::State destroys the device. A reused queue handle can therefore find the previous submitter and its cached submission function. An initial repeated-device run also segfaulted in QueueSubmitter::run; an unchanged-production rerun passed, so that crash is intermittent. The deterministic finding below is the surviving registry entry.

I have a small private correction: drain and join the worker, remove its registry entry, and retire it before vkDestroyDevice. The existing RectListVertexLayer GPU test now checks that a worker was registered by its draw and is absent after that device is destroyed. The exact same test executable was used with the old and corrected production libraries.

Production Mode Result
old 7c2332a2f2fb async off focused lifetime case passes
old 7c2332a2f2fb async on expected failure: the async queue worker outlived its Vulkan device
corrected 2473ccb95635 async off 29/29 focused checks pass
corrected 2473ccb95635 async on 29/29 focused checks pass

No skips or VUID- errors in any arm. Each corrected arm records 37 validation-layer insertions and 29 physical-device selections. The 29 checks include GPU fixtures and protocol/mock checks; they are not 29 distinct GPU tests. Dedicated deferred-encoding mocks retain their CTest presets; the physical GPU cases use async submission with deferred encoding unset.

This is PR head 6cf4c1a0b5f9 privately integrated onto main e46aa4d8d4f8, with current-main API/queue adaptations and the existing colour-mask correction. Both sides share only the initial-register-default correction from #20845, retaining current main's viewport-zero support. Neither #17943 nor #18029 is included. Host: RX 6650 XT / RADV 26.2.7, validation-layer manifest 1.4.363. ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and the required validation layer were enabled.

The focused reproducer is:

APS5_ASYNC_SUBMIT=1 ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer \
ctest --test-dir build -R '^agc_driver_rect_list_vertex_layer$' -V

Patch/reproducer bundle and full logs, SHA-256 e5cf5920eb994c04a330373a38bc9da0d5fe29cf5f45f52b77dd61c64eb75084. It includes the three-file lifetime patch, the test patch, current-main integration patches, exact build commands, manifests and all four qualification logs. Downloaded and verified all 38 payload hashes. It contains no title assets, saves, SDK binaries or shader inputs.

The fresh Under the Waves control menu/cache seed is verified. The subsequent async/control native performance pairs are reported in the performance follow-up.

Fetchable commits and deferred-mode qualification

The current-main contribution/reproducer branch is now public. Small commits for cherry-picking:

The branch combines exact already-qualified runtime and fixture bodies; its new combined commit label itself was not rebuilt. Component-head/source equality proof is included below. Conventions report zero errors and 13 debt-length warnings.

I also forced both APS5_ASYNC_SUBMIT=1 and APS5_DEFERRED_ENCODE=1 over the focused configuration. The original run passed 28/29: all 12 physical-GPU cases passed, but the host-only agc_driver_graphics mock lacked vkCreateCommandPool. Its assertions expect immediate command effects, so its own test main now explicitly unsets deferred encoding (Windows/Linux). No production code changed, and real-GPU cases plus dedicated deferred mocks retain their flags/presets.

With only that host test executable replaced, the full configuration passes 29/29, zero skips or VUIDs, 37 layer insertions and 29 physical-device selections. The same twelve physical-GPU test names pass on main/control and deferred mode. This is not a claim that the host-only mock exercised deferred recording.

Two-line setup patch, original failing run, passing rerun, full logs, manifests and component proof, SHA-256 11ce69d585aaa544f0688f2c784b924d61efa17dd4aa481a9443bd83dc6fdaef; downloaded and verified all 19 payload hashes. Passing JUnit stdout is truncated, so per-case layer/device evidence is taken from the full CTest logs. A subsequent native deferred-encoding run reached the Day 1 tunnel and exited cleanly; the performance follow-up links its evidence and the limitations of an additional in-run A/B probe. No extra deferred speedup is established.

AI-assisted: yes.

@JJenkx

JJenkx commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Under the Waves now has profiled and independent reverse-order unprofiled checks for async submission, following the worker-lifetime correction.

Both runs load the Day 1 tunnel tutorial from the same original saves and closed menu-cache seed, with Cross at 120/135/150 s and no later controls. Native GPU frames show the same tunnel, camera and tutorial HUD; idle animation/particles/lighting are at different phases. Both exit normally at 483.8 s, with all ten integrity/cleanup guards passing and their live driver path/inode/hash verified.

435:20 producer summary Control 0a161d8b834d Async 2473ccb95635
Presents / window 35 / 20,348.697 ms 51 / 20,109.504 ms
FPS 1.720 2.536
Frame p50 / p90 / p99, ms 563.246 / 725.103 / 993.754 397.021 / 475.311 / 538.479
Aggregate Recorder.Submit, ms per present 217.014 5.799
Draw compile/link interval, ms per present 49.182 50.746

That is +47.4% FPS in this one profiled pair, with p50 frame time down 29.5%. The submission work moves to the worker; the calling-thread interval reduction is not a CPU-cycle saving claim. The independent reverse-order unprofiled follow-up below also supports the direction; these two pairs do not establish a stable or general percentage.

Control is main e46aa4d8d4f8 plus only the #20845 initial-register defaults, preserving newer viewport-zero behavior. Change adds pinned #18173 6cf4c1a0b5f9, current-main API/queue adaptations, the existing colour-mask correction and the verified lifetime fix. No #17943/#18029. Physical GPU cases were qualified beforehand. Native mode adds only APS5_ASYNC_SUBMIT=1; deferred encoding stays unset. Both report 3840×2160, RX 6650 XT / RADV Mesa 26.2.7, Ryzen 7950X / 32 threads, Linux 7.2.14. No heavy host job was observed during either conservative measurement bound.

Trace limitation: the default event buffers dropped 52,636 events in control and 253,715 in change. Present timestamps and aggregate phase accounting are separate from those buffers (TraceThread::Add accounts before appending), so the producer summaries above remain available. The retained slice timelines are incomplete and cannot establish complete per-frame attribution. Both arms use the same profiling configuration; larger-buffer traces and broader paired replication remain follow-up work.

Both original traces/summary lines, digests, exact harness/pins, receipts, source-counter review and unmodified final native PNGs. SHA-256 1a7183113079a0da03bb41acb28b5f398a67c488047da807a9a34014cdda119a; downloaded archive and all 21 payload hashes verified. No executable, SDK binary, save, shader input or cache is included.

Independent unprofiled follow-up (async first, control second)

Same frozen SDKs, original saves, menu-cache seed and input route, but with all trace/profiling flags absent. Both native runs exit 0 at 483.4/483.5 s with all ten guards passing; live driver path/inode/hash checks pass. Native frames show the same tunnel tutorial. No heavy host job was observed in either measurement interval, and both windows were focused for all 29 samples in each interval.

Observer counter interval within 400–460 s Control, second Async, first
Frame-counter advances / elapsed 102 / 57.3 s 161 / 57.2 s
Approximate mean FPS 1.780 2.815

This reverse-order unprofiled pair gives approximately +58.1%, supporting the earlier improvement direction without trace-buffer overflow or always running async second. These FPS estimates use caption counters at observer boundaries; caption/sampling cadence limits precision, and no unprofiled frame-time percentiles are inferred. Idle/particle/light/dialogue phase still differs. Neither pair establishes a universal gain or verifies traversal/audio fidelity.

Unprofiled receipts, exact harness, raw observer samples and unmodified native frames, SHA-256 1b1b11b3be257a24555540c8751414e740d97fd2144f36eafbd6a339d4b3151a. Downloaded archive and all 15 payload hashes verified; no game assets, binaries, saves, caches or shader inputs.

Deferred encoding: functional checkpoint, performance still unconfirmed

With the same corrected production 2473ccb95635, an additional static APS5_ASYNC_SUBMIT=1 APS5_DEFERRED_ENCODE=1 native run reached the readable Day 1 tunnel and exited 0 after 483.9 s. All ten guards and live SDK provenance checks passed. Its observer counter advanced 194 frames / 59.3 s (approximately 3.272 FPS); this single additional-mode run is exploratory and does not establish an extra deferred-encoding gain over the earlier paired async result.

Exact harness, receipts, provenance, raw observer samples and native frames, SHA-256 ef3c0f30becc6c7e1b511cec70b21281d38e4836311eadb4bd12ba0612e684eb; downloaded and verified all nine payload hashes.

A subsequent same-process A/B mode probe completed and exited 0, but I contaminated its predeclared primary interval with local Git work overlapping one B phase. That primary comparison is excluded from clean performance evidence. The later quiet phases are retained only as a small exploratory subset, not a replacement primary; they did not corroborate a stable additional deferred-encoding gain. Its flip-packet counters also are not independent presentation timestamps. This limitation does not affect the earlier completed async/control pairs.

Full limited A/B evidence, original plan, raw log and contamination record, SHA-256 35a1f9ddef7285b1daae59c36a6a043822ecb8f254dff522c87b1f2e912de9ad; downloaded and verified all 13 payload hashes. No additional deferred speedup is claimed.

AI-assisted: yes.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — comments

Changes are opt-in, but I could not verify all changed files or run the claimed checks, so a formal approval is not justified.

What I ran

Reviewed head 6cf4c1a0b5f9dd9f2eb24afc8acbbdd5131cb189 using the prepared diff and repo_read.py reader. No build or tests were run. The description reports author-run Windows tests and performance measurements; these were not independently verified.

Results

Check Result Note
Diff review passed Inspected targeted changes
Build and tests not run Author-reported results only
Full changed-file review not run Many files remain unread

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

I read review/description.md, review/commits.md, review/manifest.json, and targeted ranges of review/diff.patch. I inspected selected queue submission and command stream changes. I did not read every changed file listed in the manifest; several changed files were excluded from the review folder as too large. I did not run tests, builds, or performance measurements. The performance claims and reported test results are not independently verified.

To get this to a good state

Nothing is required. The points below are optional: complete review of the unread changed files and run the checks on this head before treating the review as a full validation.

@Nesyth

Nesyth commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 yes, the split works for us. Here is how I'll do it.

  1. Async submit as its own PR on current main, first. It carries only the queue submitter (APS5_ASYNC_SUBMIT, off by default) and nothing of the command stream. It includes @JJenkx's device-lifetime correction: drain and join the worker, remove its registry entry and retire it before vkDestroyDevice, with his check that a worker registered by a draw is gone after its device is destroyed. JJenkx, if you post your patch I'll take it as is and credit it; otherwise I'll write it from your description. The PR opens once it is measured against current main, with both captures from one session and the summary lines and traces as CONTRIBUTING asks. I'll link it here.

  2. Batch encoding on the encoder pool moves onto perf(agc): record Vulkan draw commands on an encoder thread #17943's command stream, after perf(agc): record Vulkan draw commands on an encoder thread #17943 and perf(agc): record transfers in the encoder stream without waiting #18029. Our own stream and thunk table go away, so the colour-mask thunk @Kannorhart reported and JJenkx fixed lives in your table. What the encoder pool needs from the stream:

    • closing a batch's stream and replaying it whole on another thread, as you offered;
    • ownership: a closed stream and everything it references stay alive until its replay has returned, and a batch is not reused before its queued submit has returned (the defect ddb00039e0 fixed here);
    • failures: a replay that fails is reported to the batch's owner at submit, not thrown on the encoder thread;
    • replay that does not depend on the recording thread's thread-local state.

    If your inline path already gives some of these, tell me which and I'll build on it as it is.

  3. Order: perf(agc): record Vulkan draw commands on an encoder thread #17943, perf(agc): record transfers in the encoder stream without waiting #18029, then batch encoding; async submit at any point.

  4. Ownership: agreed. I own async submit and batch encoding, you own the stream and the API the encoder needs from it.

Thanks for the offer to test. Once async submit is up, a run in your matched setup against main would help; ours will be in the same form.

This PR stays a draft until batch encoding is rebuilt on #17943. Then it gets that head, or I close it and open the follow-up, whichever you prefer.

Thanks @JJenkx for the qualification runs and the lifetime finding, and @Kannorhart for the colour-mask report.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth thanks, that plan works for us: async submit first on main, batch encoding on #17943's stream after #17943 and #18029.

Here is what the stream gives today, at #17943's head 783b92099d (#18029 changes only which transfer commands are encoded, not these answers):

Need Today How
Replay a closed batch whole on another thread No Each Recorder has one CommandEncoder with one worker that replays chunks in FIFO order (CommandEncoder.hpp, worker; CommandEncoder.cpp execute). Chunks are tagged with their command buffer and Recording, but there is no sealed per-batch object you can hand to another thread, and the recording side accepts one open window per encoder.
Lifetime until replay returns; no batch reuse before submit returns Partly Records hold raw handles and bytes; the owners live in Batch::kept. A batch is single-use and freed after its fence. Replay is finished before submit only because Recorder::Submit calls Quiesce() synchronously before vkEndCommandBuffer; nothing ties the referents to the stream itself, and there is no queued submit.
Replay failures reported to the owner at submit Yes The worker catches into the batch's Recording and skips that recording's later chunks; the error is rethrown on the owner in Submit (or at the next BeginEncoding / Direct()).
Replay independent of the recording thread's thread-locals Yes Thunks read only their payload and a private copy of the device function table; no thread_local is read during replay.

So what's missing is a sealed batch and the lifetime that goes with it. Since the stream is ours, we'll add it as a focused follow-up after #18029, and remove the per-window hand-off in the same change:

  1. Seal() closes a batch's stream into one object: its records and its error slot. The batch's kept owners stay with the batch until it retires (fence signalled, submit returned, replay returned), because the GPU may still read them after replay; only the stream's own memory goes when replay returns.
  2. Replay(stream, commandBuffer, functions) runs on any thread, with no thread-locals. Ownership is released explicitly when the last access to the stream is done, separately from the batch's outcome, so cancelling one batch can never free a stream that another worker is still replaying.
  3. Several open batches at once, and command pools owned per worker instead of one shared pool lock.
  4. Every vkCmd* the driver can reach goes through one audited thunk list, including names loaded at runtime such as vkCmdSetColorWriteMaskEXT and vkCmdClearAttachments. A name with no thunk fails before a stream handle can reach Vulkan.

This is also where your speed comes from. In our 2026-11-13 GTA V session your head beat #18029 by about 10%, and the difference is the hand-off: #17943 posts per window to one encoder, while you hand over a closed batch once. rth9z's GTA V numbers on #17943 point the same way. We checked #17943's encoder drains inside an open batch: none of them waits for data that recording produces, so with whole-batch replay they either go away or move to seal, submit or teardown.

A few things the two halves have to agree on, which matter most for your submitter:

  • A failed replay or submit has to reach every thread waiting on that batch's timeline serial, not only the next Submit. Otherwise a waiter in WaitSerial or the unlocked memory hook can wait forever.
  • VK_ERROR_DEVICE_LOST needs its own cleanup: the error alone doesn't tell us the GPU has released the batch's resources, so nothing is recycled until the lost-device path has synchronised every queue.
  • Total outstanding work needs a bound through retirement, not only encoder backlog, so a stalled submit or GPU can't grow memory without limit.
  • The submitter and the resolver registration should be owned by the device, with no fixed global device limit.

To measure the pieces separately on GTA V we'd run four arms: direct + synchronous submit, direct + async submit, sealed stream replayed inline + async, and sealed stream on the pool + async. That gives the async-submit gain, the stream's own overhead, and the deferred-encoding gain each on its own.

We'll start the sealed-batch branch now and link it here. If you'd rather shape the interface differently, say so and we'll follow what your pool needs.


Generated by Claude Code

@Nesyth

Nesyth commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 thanks, that table is exactly what I needed. The sealed batch as you describe it (records plus error slot, kept owners staying with the batch until it retires, Replay on any thread with explicit release, several open batches, per-worker pools, one audited thunk list) covers what the encoder pool needs. I'll build batch encoding on that interface once it is up.

On the four points, for the async submit PR as it stands locally (it opens after its A/B against main and the traces):

  1. A failed submit reaches every waiter. A failed queued submit is written into its own batch and thrown when that batch is finished, with the same error as the synchronous path. Timeline waits (WaitSerial and the unlocked hook's wait) poll the device's failed submits every 0.1 s, so they return an error instead of waiting forever.
  2. Device loss. On VK_ERROR_DEVICE_LOST, finish drains the submitter, runs vkDeviceWaitIdle under the queue lock and only then releases the batch, as the synchronous path does. Nothing is recycled before that.
  3. Bound. The submitter accepts at most 64 queued batches; a recorder past that waits for it. Retirement is still bounded the way the synchronous path is, through fences and presentation. I added nothing there.
  4. Ownership. Submitters are created per device and queue with no fixed limit, and the device's teardown drains, stops and removes them before vkDestroyDevice. A queue handle reused by another device gets a new submitter. If you'd rather have them held by the device state than by a registry, I can move them.

The four arms sound right. For the async submit PR itself I'll measure direct with synchronous submit against direct with async submit on main, as an in-run A/B plus both captures from one session.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth thanks, that all lines up with what we need. Points 2 to 4 are fine as you describe them. One question on point 1, and a preference on point 4.

1. A wait that is satisfied by a later batch. At the posted head, the submitter keeps taking jobs after a failed vkQueueSubmit. A failure only stops new Enqueue calls; jobs already queued are still submitted. So if batch N's submit fails, its timeline signal never happens, but batch N+1 (already queued) signals N+1, which is ≥ N. A thread in WaitSerial(N) or the unlocked hook's wait then returns normally through the semaphore, before any 0.1 s poll runs, and reads results of a batch that never executed. The replay-failure path has the same effect: an empty submit signals N.

Could the timeline wait check the failed-submit record for serials ≤ its target after the wait returns, not only while it is waiting? Separately, should the submitter stop submitting after a failure on its queue? Later batches may wait on work that never ran. A test where a waiter on N is woken by N+1 after N failed would pin this down.

4. Ownership. We'd slightly prefer the device state over a registry. Teardown order then follows from the structure, and the per-submit lookup needs no global lock. A registry keyed by device and queue, drained before vkDestroyDevice as you describe, is correct too, so take whichever keeps your PR smaller.

On the sealed batch: we'll link the branch here once it is up.


Generated by Claude Code

@Nesyth

Nesyth commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 good catch on point 1, that was a real hole. It is fixed in the local branch:

  • After a failed vkQueueSubmit the submitter submits nothing more on that queue. Every job queued after it gets the same error, so no later batch can signal a value past the failed one, and none runs on top of work that never ran.
  • The submitter keeps the serial of the first failed job. A timeline wait for that serial or a later one (WaitSerial, the unlocked hook's WaitSerialFor, and the unlocked sync) returns an error even when the wait itself succeeded. While a wait is still blocked it notices the failure within 0.1 s.
  • The unit test covers both: a failed job with serial 5 makes waits at 5 and 6 fail and leaves a wait at 4 alone, and the job after it takes the failure without reaching vkQueueSubmit.

On point 4 I'll keep the registry for now, since it keeps this PR smaller. Moving the submitters into the device state can come with the batch encoding PR, which touches that code anyway.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth thanks, that closes it. One check: does a failed encode take the same path? At 6cf4c1a0b5 an encode failure still submits an empty batch that signals its serial, so it should record the failed serial and stop the queue the same way. A case in the unit test where the failure is an encode error rather than a vkQueueSubmit error would pin it. Registry for now is fine with us.


Generated by Claude Code

@Nesyth

Nesyth commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 the async submit PR has no encoder: it submits command buffers recorded on the usual path, so there is no encode failure there. The empty batch after a failed encode at 6cf4c1a0b5 belongs to deferred encoding and leaves with the split. In the batch encoding PR on your sealed stream, a failed replay will take the same path as a failed submit: its serial recorded as failed, the queue stopped, waiters at or past it failing. I'll add the encode-error case to the test there, as you suggest.

@Nesyth

Nesyth commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 async submit is up as #22190, split out as agreed: one submitter thread per queue behind QueueAccess, the failed-serial handling from point 1 (the queue stops after a failed submit, and waits at or past that serial fail), the device-teardown fix and the 64-job bound. It is off by default behind APS5_ASYNC_SUBMIT. The description has the captures of main and of the PR in one session, with both traces. On our title the gain is small (+2.5% in an in-run A/B on main 2e48261), because the submit is a small share of the committer's time there.

Batch encoding follows on #17943's stream once #17943 and #18029 are in.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth the sealed batch is up as #22697, on #18029. It is the interface you said the encoder pool needs, and every listed command now streams; a batch demotes only on a pNext chain, an uncopyable descriptor type or its byte cap:

Your need In #22697
Records plus an error slot SealedBatch: the stream, an Outcome and the error under errorMutex; Await and Error rethrow it
Kept owners stay with the batch until it retires Retirable needs replay released, submit returned and the GPU done; the stream is released apart from the outcome
Replay on any thread, explicit release Replay(stream, target, real) reads only the stream and the table it is given, no TLS; releaseReplay marks the release
Several open batches each CommandStream has its own tagged handle and the thunks find the stream from it; the budget is atomic (two threads appending to two streams, and charging one budget at once, are tested, also under TSan)
Per-worker pools CreateReplayPool / BorrowReplayPool, worker index carried through Encoded and Retire; one worker today (APS5_ENCODE_THREAD=1), N workers are yours
One audited thunk list APS5_COMMANDS in CommandList.hpp; all 69 commands stream, and agc_command_resolver_sites fails on a vkCmd resolution outside the list

A failed replay takes the path you described for a failed submit: it is latched, that batch is not submitted, later Submit calls throw the stored error, and serial waiters check the latch every 0.1 s. Outstanding work is bounded at 16 sealed batches of at most 4 MiB each; past that, admission opens a direct batch instead of waiting.

Submit still replays and then submits on the drawing thread, so moving the submit is #22190's. The description lists the API points a parallel encoder will need. Three are kept out of this PR: the label mark (pendingLabelSince) and the semaphore a batch waits on (HoldNextSubmit) must be captured per batch at seal, and the serial given at seal must be returned or latched if the batch fails before it is queued. The fourth, serial waiters observing the latch, is done here.

If anything in the interface is missing or shaped wrong for batch encoding, say so and we'll change it here rather than in your PR.


Generated by Claude Code

@Nesyth

Nesyth commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 thanks, I read #22697 against what the encoder pool needs. The batch object is the right shape: SealedBatch with its outcome and error, Retirable apart from the replay release, ReplayExecutor with Claim, Encoded and Retire carrying the worker, per-worker pools, the latch and the budget. An N-worker executor fits behind ReplayExecutor as it is, and the submitter in #22190 can call Await, Returned and GpuDone in serial order without anything new.

One seam is missing, and I'd rather it lived here than in my PR. Today the batch is sealed inside Recorder::Submit and awaited right away, so the serial (submissions + 1), the hold semaphore (std::exchange(submitHold, ...)) and the label mark (pendingLabelSince, cleared at the end of Submit) are all taken at the moment of the queue submit. Could Submit be split into two steps, with today's behaviour kept?

  1. Seal(): closes the open batch and captures into it everything the queue submit will need: the serial, the hold semaphore and its value, and the label mark. From here on, nothing in the recorder refers to that batch's state through recorder fields, and the next batch can open.
  2. The queue step: Await, the submit with the captured hold and serial, Returned, and the latch on failure. Submit() stays Seal() followed by this step, inline on the drawing thread as now.

That also settles your three open points in one place: the label mark and the hold semaphore are captured per batch at seal, and a sealed batch that fails before it is queued latches its own serial. Batch encoding then only moves the second step to the submitter thread and changes who waits.

A small one: WorkBudget::Limits is fixed at its defaults in the recorder. With N workers I'll want encodingBatches to follow the worker count, so a constructor argument (or a setter before the first batch) would be enough.

Everything else I'd keep exactly as it is. The order stays #17943, #18029, #22697, then batch encoding on #22190.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth the split you asked for is in #22697 as one added commit (4c5b2394f72): Recorder::Submit is now Seal() followed by the queue step, run inline, with the same behaviour as before. When no other batch is sealed, Submit hands the batch straight to the queue step, so the inline path costs the same as before (interleaved Submit timing below).

  • Seal() closes the open batch and moves it to a queue of sealed batches. Each sealed batch records:

    • its serial;
    • the hold semaphore and value (taken from HoldNextSubmit at seal time, not at submit);
    • its label mark.

    Nothing on the recorder points at that batch any more, so the next batch can open straight away. OpenSerial() is the serial after the last sealed one; Submissions() is still the last serial that was queued.

  • QueueSealed() takes the oldest sealed batch and does the rest:

    1. awaits its replay;
    2. submits with the batch's own hold and serial;
    3. calls Returned;
    4. latches on failure.

    It queues in serial order and throws if the order would break. The global pending-label mark is recomputed as the oldest mark still held by a sealed or open batch, so it no longer clears when one batch is queued while an older one is still waiting.

  • Failure before queueing:

    • If the failed batch is the newest sealed one, its serial and hold are returned and the recorder carries on, as Submit does today. The existing injected-failure tests depend on that.
    • If a newer batch was already sealed after it, its serial is latched, so serial waiters and every later batch see that error.
  • WorkBudget::Limits is a Recorder constructor argument. Your pool can set encodingBatches to its worker count.

New tests, each checked to fail when its part of the change is removed:

  • two batches sealed before either is queued keep their own serial, hold and label mark;
  • a batch that fails before queueing latches its serial, and a thread already waiting on that serial sees the failure;
  • the newest sealed batch gets its serial and hold back;
  • Limits.encodingBatches from the constructor is honoured.

The existing tests are unchanged and pass.

Submit cost, base vs this commit, 6 interleaved rounds of 7×2000 Submit() calls in our ASan build (no Release build of the recorder fits on that machine): direct 19.3 vs 19.7 µs mean, deferred median 26.6 vs 26.4 µs, within run-to-run noise. A first version that always went through the sealed queue cost +1.4 µs (direct) and +2.9 µs (deferred) in the same setup, which is why the direct path is there.

One thing to know when you queue from your own thread: lookups of pending reads, writes and labels still check the open and in-flight batches only. That is safe while Submit seals and queues under the same GPU lock, as it does today. If you queue later, outside that lock, tell me and I'll make those lookups include sealed batches first.

AI-assisted: yes

@Nesyth

Nesyth commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 thanks, I read 4c5b2394f72 and it is the split I asked for: the serial, the hold and the label mark live on the batch from Seal() on, QueueSealed() keeps serial order and latches, and Limits comes in through the constructor.

On the lookups: I won't queue outside the GPU lock, so they can stay as they are. When batch encoding goes onto #22190, the drawing thread will still run the queue step's bookkeeping under the lock right after Seal(): the serial-order check, submissions, the move to inFlight, the label mark. Only Await() and vkQueueSubmit go to the submitter thread. That is how #22190 already moves vkQueueSubmit: the batch sits in inFlight with a submit position, and fenceReady asks the submitter before the fence. So the lookups over the open and in-flight batches stay complete. A replay failure found on the submitter then latches like a failed async submit (FailedThrough), not through unqueued(). The restructuring of queue() that this needs is my side, on #22190.

One edge case in unqueued(), reachable only through the public pair, not through Submit(). Suppose a caller seals, keeps recording, and then the queue step of the newest sealed batch fails. The rollback of sealedThrough then leaves the open batch's predictedSerial one ahead, and with checkpoint markers on, queue()'s Require(predictedSerial == serial) fires. The hold is also dropped if HoldNextSubmit was called for the open batch in between. Latching instead of rolling back whenever a batch is open would cover both.

@chitters2004

Copy link
Copy Markdown
Contributor

@Nesyth thanks, that was a real bug. Fixed in #22697 as one added commit, 9299ec3c1ae.

When the queue step of the newest sealed batch failed and another batch was already open, unqueued() rolled sealedThrough back under it. The open batch kept its predictedSerial one ahead (the Require in queue() fired with checkpoint markers on), and a HoldNextSubmit made for it was dropped. As you suggested, unqueued() now latches the failure whenever a batch is open. The rollback is kept only when nothing is open, which is the Submit() path, so its behaviour and the existing injected-failure tests are unchanged.

New test, in the sealed batch tests of agc_driver_recorder: seal a batch with a hold, record into the next batch with its own hold, fail the queue step of the sealed one, then check that a waiter on its serial sees the failure, that the open batch's Seal() is refused with that failure, and that nothing reached the queue.

The lookups and your restructuring of queue() on #22190 are as you described; nothing here depends on them.

AI-assisted: yes

@Nesyth

Nesyth commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

@chitters2004 thanks, I read 9299ec3c1ae. Latching the failure while a batch is open, and keeping the rollback only for Submit(), is the fix I had in mind. The new test covers the case that went wrong: the waiter on the sealed serial sees the failure, the open batch's Seal() is refused, and nothing reaches the queue. Nothing else on my side for #22697.

@ligmaSec ligmaSec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trial merge onto c1601e56d5 conflicts in the recorder, device, resource, and runtime-switch files. When resolving it, preserve the command-stream ownership tests for nested pNext and supported arrays, as well as the queue-submit tests that keep submission order when encoding finishes out of order. The synchronous verify mode is useful to isolate stream capture, but it does not exercise handoff failure or batch retirement on the threaded path. Re-run both modes and capture paired scene traces before carrying forward a speed result.

AI-assisted: yes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs needs rebase Conflicts with main, rebase needed perf numbers missing perf pull request without a before and after summary line perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants