Skip to content

perf(agc): trap CPU reads of label readbacks on macOS instead of storing them - #13499

Merged
adriadam10 merged 7 commits into
boykopovar:mainfrom
Gonic0:feat/agc-label-read-trap
Nov 1, 2026
Merged

adriadam10 merged 7 commits into
boykopovar:mainfrom
Gonic0:feat/agc-label-read-trap

Conversation

@Gonic0

@Gonic0 Gonic0 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What

Builds on #13442. Until it merges, this branch carries its commits; only 2cf5b41ec8 and 0fdd66d900 are new here.

StorageTexture::StoreReadbackBeforeLabel writes back every pending linear or small storage image before each label, whether or not the CPU reads it. On macOS this PR traps CPU reads of such an image with #13442's write-watch read traps instead of storing it, so the store happens only when something reads or writes its memory.

  • Label: under the pending registry's mutex, an image that shares no page with another pending or storing image, and is not direct memory mapped at a second address, gets GuestWriteWatchTrapReads over its exact range instead of its store. The alias check is a new libkernel export, DirectMemoryAliased_nid_postfix, which tells whether any of a range's physical memory is mapped by another direct mapping. If the trap cannot be set (unwatched memory, a host write in progress), the image is stored as before. feat(libc): trap guest reads of write-watched pages on macOS #13442 makes a trap of an already trapped range a no-op, so the same range can be trapped at every label without the driver tracking it.
  • Resolver: the first access to a trapped page runs GuestMemory::FlushGpuWrites over the trap's range on the write watch's resolver thread. That is the host-read hook every other reader of guest memory uses: it stores the pending results and waits until they are in memory. While a queued draw still holds reads of the range (DrawPipeline::HeldReads, which makes the store wait), it retries.
  • Release: every store releases the trap in writeBackLayers, so FlushPending, cache eviction (Flush), WriteBack and refreshes all do. A store that copies into the import on the GPU releases it once the copy is recorded, so a read that faults before then waits for the store. A store through the CPU releases it before its first access to guest memory, together with the traps of other images on the same pages; those images stay pending and are trapped again at the next label. A trapped image is stored whole.
  • Opt-out: APS5_NO_LABEL_READ_TRAP=1 keeps the store at the label. Linux and Windows are unchanged.

Gaps, in the new entry of docs/dev/debt/libSceAgcDriver.md:

  • a read after a store released the trap and before its GPU copy lands sees the old bytes;
  • a thread that holds GpuMutex and touches a trapped image waits for the resolver forever;
  • a system call that reads a trapped image without the host-read hook fails with EFAULT;
  • memory mapped twice other than direct memory is not detected.

The page rule keeps the storing thread from faulting on a page another image's trap covers. If it did, the resolver would wait for that store while the store waits for the resolver.

Tested

Apple M5 Pro, macOS 27.2, MoltenVK from Vulkan SDK 1.4.363, x86-64 Release under Rosetta 2. main alone does not build on macOS, so the tests and the game ran in a tree with the open macOS port PRs, where these files are identical.

agc_small_tiled_shadow_label (agc_driver_recorder_tests --small-tiled-shadow-label-only) gets a trap check on macOS. After the image is written again on the GPU:

  • two labels in a row leave its page without access (the second trap of the same range is a no-op), and a read from another thread sees the new results;
  • after the next write, a label traps it again, and FlushPending stores it and gives the page back;
  • after the next one, a thread calls FlushPending while the test holds GpuMutex, which takes the image out of the pending registry and waits. The page is still without access; a read started then sees the stored results once the test releases the mutex.

Two 8x8 linear images on one page (both architectures' page size):

  • a label traps the first while it is the only one pending;
  • with both pending, a label stores both and gives the page back;
  • with the first trapped again, a store of the second through the CPU (FlushPending with the reason idle, which takes the CPU path) completes, stores the second and gives the page back. The next label traps the first again, and a read sees its results.

The test thread releases GpuMutex around the read, since the resolver needs it. The test passes with and without APS5_NO_LABEL_READ_TRAP=1.

Negative controls, each of which fails it:

  • no release in writeBackLayers: "storing a trapped image did not release its trap";
  • the release where FlushPending takes the image out of the registry, as before: "a trapped image taken for a store gave back its pages before the store";
  • the CPU path not releasing the traps of other images on its pages: "a CPU store next to a trapped image did not store through its page";
  • the label storing instead of trapping: "a label stored a pending small tiled image instead of trapping its reads";
  • a resolver that calls FlushPending without waiting: "a read of a trapped image did not see its pending results".

The 82 CTest entries of agc_driver_recorder_tests pass, except one skip and agc_recorder_failed_check, which fails the same way with APS5_NO_LABEL_READ_TRAP=1. The write-watch tests pass on x86-64 and arm64 (#13442). The whole-image store of a trapped image and the alias check are not covered by a test: these images have one layer, the recorder test's memory is not direct memory, and guest_memory_tests does not build on macOS (sceKernelMunmap).

PPSA21564 (ASTRO BOT 01.007.000), the logos before the intro. main does not build on macOS without the open port PRs, so the base is that tree with #13220 and #13442 (5b2b0eb50830), and the change is the same tree with this commit's Texture.cpp (1f0553384a68). Captures with APS5_TRACE_FRAMES=150:240 and no other trace or profile switch, alternated base, change, base, change:

capture commit frame p50 / p90 / p99 (ms) 240 presents in
base 1 5b2b0eb50830 29.3 / 32.5 / 35.4 7.11 s
change 1 1f0553384a68 21.7 / 24.7 / 26.1 5.30 s
base 2 5b2b0eb50830 26.0 / 28.1 / 30.3 6.30 s
change 2 1f0553384a68 20.6 / 22.6 / 25.1 5.04 s

Summary lines of the second round. Base:

{"commit":"5b2b0eb50830","dirty":null,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_DUMP_FRAMES":"200","APS5_DUMP_FRAMES_EVERY":"60","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"150:240"},"gpu":"Apple M5 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":18,"memory_mib":49152,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"frames 150:240","first_present":150,"ms":6300.896},"presents":240,"frame_ms":{"p50":26.029,"p90":28.079,"p99":30.286,"max":55.441},"gpu_busy_ms_per_present":19.524,"worker_busy_pct":{"queue worker 0x0":98.610,"queue worker 0x40":99.662,"queue worker 0x48":97.088,"queue worker 0x3a":0.060},"top_phases_ms_per_frame":{"Driver.Packet":76.611,"Driver.Packet.memory_wait":46.970,"Driver.Packet.dispatch":15.657,"Driver.Dispatch":14.064,"VideoOut.Flip":6.645,"Vulkan.DispatchRecipe":5.770,"Vulkan.DispatchRecipe.command_record":5.765,"Driver.Present":5.472},"trace_dropped":false,"trace":"aps5-trace-5b2b0eb50830-47155.json.gz"}

This PR:

{"commit":"1f0553384a68","dirty":null,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_DUMP_FRAMES":"200","APS5_DUMP_FRAMES_EVERY":"60","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"150:240"},"gpu":"Apple M5 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":18,"memory_mib":49152,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"frames 150:240","first_present":150,"ms":5043.434},"presents":240,"frame_ms":{"p50":20.649,"p90":22.565,"p99":25.074,"max":42.485},"gpu_busy_ms_per_present":11.920,"worker_busy_pct":{"queue worker 0x0":98.392,"queue worker 0x40":99.649,"queue worker 0x48":86.217,"queue worker 0x3a":0.058},"top_phases_ms_per_frame":{"Driver.Packet":59.510,"Driver.Packet.memory_wait":36.905,"Driver.Packet.dispatch":12.250,"Driver.Dispatch":11.379,"Vulkan.DispatchRecipe":6.837,"Vulkan.DispatchRecipe.command_record":6.833,"VideoOut.Flip":6.486,"Driver.Present":5.521},"trace_dropped":false,"trace":"aps5-trace-1f0553384a68-47301.json.gz"}

Traces: base, this PR.

trace_digest.py, base (second round)

frames 150:240 from present 150: 240 presents, frame p50 26.0 / p90 28.1 / p99 30.3 / max 55.4 ms, GPU busy 19.5 ms per present
Apple M5 Pro, MoltenVK 1.4.2, Darwin 27.2.0, 3840x2160, commit 5b2b0eb50830, dropped: no

{"commit":"5b2b0eb50830","dirty":null,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_DUMP_FRAMES":"200","APS5_DUMP_FRAMES_EVERY":"60","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"150:240"},"gpu":"Apple M5 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":18,"memory_mib":49152,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"frames 150:240","first_present":150,"ms":6300.896},"presents":240,"frame_ms":{"p50":26.029,"p90":28.079,"p99":30.286,"max":55.441},"gpu_busy_ms_per_present":19.524,"worker_busy_pct":{"queue worker 0x0":98.61,"queue worker 0x40":99.662,"queue worker 0x48":97.088,"queue worker 0x3a":0.06},"top_phases_ms_per_frame":{"Driver.Packet":76.611,"Driver.Packet.memory_wait":46.97,"Driver.Packet.dispatch":15.657,"Driver.Dispatch":14.064,"VideoOut.Flip":6.645,"Vulkan.DispatchRecipe":5.77,"Vulkan.DispatchRecipe.command_record":5.765,"Driver.Present":5.472},"trace_dropped":false,"trace":"aps5-trace-5b2b0eb50830-47155.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 344: 55.4 ms at 4989 ms: Driver.WorkerWait (queue worker 0x3a) 55.3, Driver.Packet (queue worker 0x48) 54.8, Driver.Packet (queue worker 0x40) 54.8, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 53.1
  • present 347: 30.3 ms at 5101 ms: Driver.WorkerWait (queue worker 0x3a) 30.2, Driver.Packet (queue worker 0x40) 29.5, Driver.Packet (queue worker 0x48) 29.4, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 28.5
  • present 380: 30.3 ms at 6017 ms: Driver.WorkerWait (queue worker 0x3a) 30.3, Driver.Packet (queue worker 0x40) 29.0, Driver.Packet (queue worker 0x48) 28.3, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 28.0
  • present 383: 30.2 ms at 6101 ms: Driver.WorkerWait (queue worker 0x3a) 30.2, Driver.Packet (queue worker 0x40) 29.4, Driver.Packet (queue worker 0x48) 28.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 28.5
  • present 359: 29.9 ms at 5435 ms: Driver.WorkerWait (queue worker 0x3a) 29.9, Driver.Packet (queue worker 0x48) 29.6, Driver.Packet (queue worker 0x40) 29.0, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 28.3

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 16.1 (61 %) 7.2 (27 %) 3.0 5.4 Driver.Packet 23.0, Driver.EndSubmission 0.1
title 0.1 (0 %) 0.0 (0 %) 26.2 0.1 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 26.2 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 26.2 0.1 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 26.2 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x40 8.2 (31 %) 17.3 (66 %) 0.7 2.2 Driver.Packet 25.5, Driver.EndSubmission 0.1
queue worker 0x48 0.8 (3 %) 25.3 (96 %) 0.2 0.2 Driver.Packet 24.7, Driver.EndSubmission 0.6
draw committer 2.4 (9 %) 1.9 (7 %) 22.0 0.6 Graphics.Draw 1.6, Recorder.Reap 0.5
presenter 1.4 (5 %) 5.3 (20 %) 19.6 0.1 VideoOut.Flip 6.6, Driver.Present 0.0
queue worker 0x3a 0.0 (0 %) 5.5 (21 %) 20.7 0.0 Driver.Packet 0.0, Driver.Completion 0.0
gpu 19.5 (74 %) 0.0 (0 %) 6.7 0.0 batch 19.5

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 73.1, Driver.Packet.memory_wait 46.9, batch 19.5, Driver.Packet.dispatch 15.3, Driver.Dispatch 13.6, VideoOut.Flip 6.6, Driver.WorkerWait 6.3, Vulkan.DispatchRecipe 5.7, Vulkan.DispatchRecipe.command_record 5.7, Driver.Present 5.5

Longest waits

  • Driver.WorkerWait (queue worker 0x3a) 55.2 ms at 4989 ms, present 344
  • Driver.Packet.memory_wait (queue worker 0x48) 42.7 ms at 5004 ms, present 344
  • Driver.Packet.memory_wait (queue worker 0x40) 34.4 ms at 5017 ms, present 344
  • Driver.Packet.memory_wait (queue worker 0x48) 32.8 ms at 4968 ms, present 343
  • Driver.WorkerWait (queue worker 0x3a) 30.4 ms at 6017 ms, present 379
  • Driver.WorkerWait (queue worker 0x3a) 30.2 ms at 6101 ms, present 383
  • Driver.WorkerWait (queue worker 0x3a) 30.2 ms at 5101 ms, present 347
  • Driver.WorkerWait (queue worker 0x3a) 30.0 ms at 5435 ms, present 358
  • Driver.WorkerWait (queue worker 0x3a) 29.6 ms at 5268 ms, present 352
  • Driver.WorkerWait (queue worker 0x3a) 29.3 ms at 5768 ms, present 371

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

  • batch 4839: 3.4 ms at 2529 ms, present 248: GPU no ranges; recorded by Recorder.Reap (draw committer) 0.1, GpuMutex.wait.label (draw committer) 0.1, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 4547: 3.0 ms at 2370 ms, present 242: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1, Resources.Complete (draw committer) 0.0, GpuMutex.wait.flush (draw committer) 0.0
  • batch 10277: 2.9 ms at 5446 ms, present 359: GPU no ranges; recorded by GpuMutex.wait.draw (draw committer) 0.1, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1, Recorder.Reap (draw committer) 0.0
  • batch 6489: 2.9 ms at 3403 ms, present 282: GPU no ranges; recorded by GpuMutex.wait.flush (draw committer) 0.1, Graphics.Draw (draw committer) 0.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 7420: 2.8 ms at 3886 ms, present 301: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.1, Recorder.Reap (draw committer) 0.1, GpuMutex.wait.flush (draw committer) 0.0
trace_digest.py, this PR (second round)

frames 150:240 from present 150: 240 presents, frame p50 20.6 / p90 22.6 / p99 25.1 / max 42.5 ms, GPU busy 11.9 ms per present
Apple M5 Pro, MoltenVK 1.4.2, Darwin 27.2.0, 3840x2160, commit 1f0553384a68, dropped: no

{"commit":"1f0553384a68","dirty":null,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_DUMP_FRAMES":"200","APS5_DUMP_FRAMES_EVERY":"60","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"150:240"},"gpu":"Apple M5 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":18,"memory_mib":49152,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"frames 150:240","first_present":150,"ms":5043.434},"presents":240,"frame_ms":{"p50":20.649,"p90":22.565,"p99":25.074,"max":42.485},"gpu_busy_ms_per_present":11.92,"worker_busy_pct":{"queue worker 0x0":98.392,"queue worker 0x40":99.649,"queue worker 0x48":86.217,"queue worker 0x3a":0.058},"top_phases_ms_per_frame":{"Driver.Packet":59.51,"Driver.Packet.memory_wait":36.905,"Driver.Packet.dispatch":12.25,"Driver.Dispatch":11.379,"Vulkan.DispatchRecipe":6.837,"Vulkan.DispatchRecipe.command_record":6.833,"VideoOut.Flip":6.486,"Driver.Present":5.521},"trace_dropped":false,"trace":"aps5-trace-1f0553384a68-47301.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 357: 42.5 ms at 4262 ms: Driver.WorkerWait (queue worker 0x3a) 42.5, Driver.Packet (queue worker 0x48) 42.4, Driver.Packet (queue worker 0x40) 41.8, Driver.Packet.memory_wait (queue worker 0x48) 40.9
  • present 379: 26.0 ms at 4783 ms: Driver.WorkerWait (queue worker 0x3a) 25.9, Driver.Packet (queue worker 0x40) 25.2, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 23.9, Driver.Packet (queue worker 0x48) 22.6
  • present 386: 25.1 ms at 4948 ms: Driver.WorkerWait (queue worker 0x3a) 24.8, Driver.Packet (queue worker 0x40) 24.3, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 23.2, Driver.Packet (queue worker 0x48) 22.6
  • present 378: 24.9 ms at 4758 ms: Driver.WorkerWait (queue worker 0x3a) 24.7, Driver.Packet (queue worker 0x40) 24.2, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 22.8, Driver.Packet (queue worker 0x48) 22.3
  • present 383: 24.7 ms at 4876 ms: Driver.WorkerWait (queue worker 0x3a) 24.6, Driver.Packet (queue worker 0x40) 23.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 22.7, Driver.Packet (queue worker 0x48) 21.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 10.2 (48 %) 8.0 (38 %) 2.9 5.2 Driver.Packet 17.9, Driver.EndSubmission 0.1
title 0.1 (0 %) 0.0 (0 %) 20.9 0.1 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 21.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 21.0 0.0 Shader.ResolveGraphicsStagesAbi 0.1
title 0.0 (0 %) 0.0 (0 %) 21.0 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x40 8.8 (42 %) 11.5 (55 %) 0.7 2.2 Driver.Packet 20.3, Driver.EndSubmission 0.1
queue worker 0x48 0.2 (1 %) 20.6 (98 %) 0.1 0.2 Driver.Packet 18.0, Driver.EndSubmission 0.0
draw committer 1.8 (9 %) 1.1 (5 %) 18.1 0.6 Graphics.Draw 1.4, Recorder.Reap 0.2
presenter 1.1 (5 %) 5.4 (26 %) 14.5 0.1 VideoOut.Flip 6.5, Driver.Present 0.0
queue worker 0x3a 0.0 (0 %) 3.4 (16 %) 17.6 0.0 Driver.Packet 0.0, Driver.Completion 0.0
gpu 11.9 (57 %) 0.0 (0 %) 9.1 0.0 batch 11.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 56.2, Driver.Packet.memory_wait 36.9, batch 11.9, Driver.Packet.dispatch 11.9, Driver.Dispatch 10.9, Vulkan.DispatchRecipe 6.7, Vulkan.DispatchRecipe.command_record 6.7, VideoOut.Flip 6.5, Driver.WorkerWait 6.3, Driver.Present 5.5

Longest waits

  • Driver.WorkerWait (queue worker 0x3a) 42.6 ms at 4262 ms, present 356
  • Driver.Packet.memory_wait (queue worker 0x48) 32.9 ms at 4273 ms, present 357
  • Driver.WorkerWait (queue worker 0x3a) 25.9 ms at 4783 ms, present 379
  • Driver.Packet.memory_wait (queue worker 0x40) 25.8 ms at 4281 ms, present 357
  • Driver.WorkerWait (queue worker 0x3a) 24.8 ms at 4948 ms, present 386
  • Driver.WorkerWait (queue worker 0x3a) 24.7 ms at 4758 ms, present 378
  • Driver.WorkerWait (queue worker 0x3a) 24.6 ms at 4876 ms, present 383
  • Driver.Packet.memory_wait (queue worker 0x48) 24.5 ms at 4247 ms, present 356
  • Driver.WorkerWait (queue worker 0x3a) 24.3 ms at 4551 ms, present 368
  • Driver.WorkerWait (queue worker 0x3a) 24.2 ms at 4996 ms, present 388

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

  • batch 8769: 2.6 ms at 3677 ms, present 328: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 3648: 2.6 ms at 1517 ms, present 224: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.2, GpuMutex.wait.flush (draw committer) 0.1, Graphics.Draw (draw committer) 0.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.0
  • batch 9556: 2.5 ms at 4012 ms, present 344: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 7495: 2.5 ms at 3135 ms, present 302: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 9384: 2.5 ms at 3936 ms, present 341: GPU no ranges; recorded by Driver.Packet (queue worker 0x40) 0.6, Driver.Packet.dispatch (queue worker 0x40) 0.5, Driver.Dispatch (queue worker 0x40) 0.4, Vulkan.DispatchRecipe (queue worker 0x40) 0.2

Over whole 120 s runs, counting the frames dumped every 60 presents, the same comparison gives 44.0 and 44.3 FPS against 38.1 and 37.1 with APS5_NO_LABEL_READ_TRAP=1. With 0fdd66d900 it gives 44.2 and 44.7 against 38.2, 37.8 and 37.8; one more run with the traps, the first after the rebuild, gave 22.3. The image is the same. In an earlier instrumented run of this design, no trap was resolved by a read in that scene: the emulator itself stored every trapped image, about 65 times a second, before any guest read.

Validation: the 82 CTest entries of agc_driver_recorder_tests with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 (ctest -V) on the base and on this PR report the same 152 VUID-VkDeviceCreateInfo-pProperties-04451 lines (the test device does not enable VK_KHR_portability_subset on MoltenVK, #10920) and no other VUID-. Neither log reports the layer as not found.

Not tested on a title that reads these images from the CPU.

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: feat(libc): trap guest reads of write-watched pages on macOS #13442
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M5 Pro, MoltenVK (Vulkan SDK 1.4.363), macOS 27.2
  • AI-assisted: yes

🤖 Generated with Claude Code

@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 — changes requested

The PR reports a performance improvement against its opt-out mode, but the repository requires captures from main and the change before that claim can be checked.

What I ran

Reviewed head a485eb515e3021a565d66222bfe3eceb883e933d against base a026562629da7bcc7af781639a11ab0647a524dd. The dependency stack preview reports a clean merge preview for this head against the current base. Environment: Linux x86-64, Debian 12, Python 3.11.2, GCC 12.2.0.

git diff --check a026562629da7bcc7af781639a11ab0647a524dd...a485eb515e3021a565d66222bfe3eceb883e933d
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13499
python3 tools/pr_stack_check.py 13499 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-13499-a485eb515e30/stack
gh pr checks 13499 --repo boykopovar/AnyPS5

Results

Check Result
Diff whitespace check Passed
Repository conventions and PR template Passed
Dependency and merge preview Passed; #13220 → #13442 → #13499, with a clean preview against current base
Hosted checks Pending when checked
Performance evidence required by repository rules Missing: the description has no paired main/change summary lines, attached traces, or trace_digest.py output
Raw output
All conventions checks passed.

PR stack check — fresh

Target: https://github.com/boykopovar/AnyPS5/pull/13499
Target branch tip: `a026562629da7bcc7af781639a11ab0647a524dd`
All heads unchanged: **True**
Dependency order: #13220 → #13442 → #13499

## Individual merge previews

- PR #13220: **clean** against current base; head `e9f09f54fabb6408d3e2711b8df10c10112ab00e`; changed paths: none reported
- PR #13442: **clean** against current base; head `bd49ace09e78998c8da23033ff0e3fa9b1d9237e`; changed paths: none reported
- PR #13499: **clean** against current base; head `a485eb515e3021a565d66222bfe3eceb883e933d`; changed paths: none reported

## Dependency relationships

- PR #13220 → #13442: current dependency head not included; overlapping path: `core/libs/tests/write_watch/CMakeLists.txt`
- PR #13442 → #13499: dependency head included

conventions	pending	0
eligibility	pending	0
intake	pending	0
labels	pending	0
library-portability	pending	0
report	pending	0

The precheck's ABI-audit and test-quality helper steps were not executable in its isolated PR snapshot because those local helper scripts are absent there; these are not reported as repository failures.

Findings

Blocking

  • Required performance comparison is incomplete. The description reports 44.0/44.3 FPS with traps and 38.1/37.1 FPS with APS5_NO_LABEL_READ_TRAP=1, both on the PR stack. It does not provide captures from main and the change, nor the required trace artifacts and digest. The repository rule requires those paired captures for a speed claim. After dependency #13442 is in the baseline tree, add summary lines from the same title, scene, and machine, attach both traces, and include the tools/trace_digest.py output. Repository performance-report rule · Performance report form

Non-blocking

  • No additional blocking source defect was established by this no-build pass.

Not verified

  • I did not build or run C++/CTest. The 82 CTest results, negative controls, and Apple M5 Pro/MoltenVK measurements in the PR description are author-reported and were not independently reproduced.
  • Hosted checks were pending at the time checked. The reported measurements do not cover a title that reads these images from the CPU.

To get this to a good state

After #13442 is in the baseline tree, add the matched main and change captures and the required artifacts. I’ll re-check the updated head and its evidence.

@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 30, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Gonic0 thanks, the label trap reads well on macOS only: Linux and Windows are untouched, the opt-out variable is documented, and the gaps you list in the debt entry are the right ones. A few questions where we could not tell from the diff, and two tests we would like to see.

  1. The window after a release. FlushPending releases the trap before it takes GpuMutex and writes the result, so another thread can read the page and see the old bytes while the store is still waiting for that mutex. Could the release move to after the store (or be skipped while the image is being stored), so CPU reads stay held until the image is fully published? A regression that pauses there before another thread reads would pin it.

  2. Other store paths. Cache eviction through StorageTexture::Flush() and an explicit WriteBack() do not go through the new release step. Can a store on those paths fault on its own trapped page while holding a lock the resolver needs, and wait forever? The current test covers FlushPending and releases GpuMutex around its reader, so it would not see this.

  3. Page rule order. A trap is set only if no other pending or storing image shares a page with it. What happens when a second image B becomes pending on a page that image A's trap already covers? B is then not trapped, so its store runs at the label while A's trap is still on the shared page. Does B's store touch that page through the guest address, and if so, how does it avoid waiting for A's resolver?

  4. Aliased mappings. The trap covers one guest address range. If the same memory is mapped at another address (direct memory mapped twice, a host import alias) and a CPU read goes through that address, does it see the stored data? The label used to store before any such read.

For tests: the two-image shared-page case from point 3, and one that traps the same image at two labels in a row, which also pins the no-op trap from #13442.

@Gonic0

Gonic0 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. The description now has paired captures from the same machine and scene. main alone does not build on macOS, so the base is the tree I measured in: #13220 and #13442 without this commit (5b2b0eb50830). The change is the same tree with this commit (1f0553384a68).

There are four captures with APS5_TRACE_FRAMES=150:240, alternated base, change, base, change:

  • frame p50: 29.3 and 26.0 ms on the base, 21.7 and 20.6 ms with this PR;
  • 240 presents: 7.11 and 6.30 s on the base, 5.30 and 5.04 s with this PR.

The second round's summary lines, both traces and their trace_digest.py output are in the description. With the validation layer, the 82 recorder entries report the same VUID- lines on both trees: only the portability-subset one at device creation (#10920).

AI-assisted: yes

@github-actions github-actions Bot removed the perf numbers missing perf pull request without a before and after summary line label Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 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 6926 docs/dev/debt/libSceAgcDriver.md L172
PR 14311 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L4732

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 1368 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4449 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4472 docs/dev/ENVIRONMENT.md
PR 5021 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
core/libs/prx/libkernel/DirectMemory/Export.cpp
docs/dev/debt/libc.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6182 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6187 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6501 docs/dev/ENVIRONMENT.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6565 docs/dev/debt/libc.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6924 docs/dev/ENVIRONMENT.md
PR 6970 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7081 docs/dev/debt/libc.md
PR 7105 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp
core/libs/prx/libkernel/DirectMemory/Export.cpp
PR 7149 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7386 docs/dev/debt/libc.md
PR 7447 docs/dev/debt/libc.md
PR 7449 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7457 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 7604 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7631 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7715 docs/dev/debt/libc.md
PR 7844 docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8004 docs/dev/ENVIRONMENT.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8150 docs/dev/debt/libc.md
PR 8484 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 8542 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8707 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8874 docs/dev/debt/libSceAgcDriver.md
PR 8965 docs/dev/debt/libc.md
PR 9012 docs/dev/ENVIRONMENT.md
PR 9020 docs/dev/debt/libSceAgcDriver.md
PR 9242 core/libs/prx/libkernel/include/Api.hpp
PR 9248 docs/dev/ENVIRONMENT.md
PR 9326 core/libs/prx/libkernel/include/Api.hpp
PR 9335 docs/dev/debt/libSceAgcDriver.md
PR 9340 docs/dev/debt/libc.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9371 docs/dev/debt/libc.md
PR 9387 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9432 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9445 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 9447 docs/dev/debt/libc.md
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9526 docs/dev/debt/libc.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9712 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9852 docs/dev/ENVIRONMENT.md
PR 9884 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 9929 docs/dev/debt/libc.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10025 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
core/libs/prx/libkernel/DirectMemory/DirectMemory.hpp
PR 10026 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 10069 docs/dev/ENVIRONMENT.md
PR 10113 docs/dev/debt/libc.md
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 10249 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10324 docs/dev/debt/libc.md
PR 10349 docs/dev/debt/libc.md
PR 10351 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10382 docs/dev/ENVIRONMENT.md
PR 10405 docs/dev/debt/libc.md
PR 10442 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 10469 docs/dev/debt/libSceAgcDriver.md
PR 10492 docs/dev/debt/libSceAgcDriver.md
PR 10497 docs/dev/debt/libSceAgcDriver.md
PR 10547 docs/dev/ENVIRONMENT.md
PR 10757 docs/dev/ENVIRONMENT.md
PR 10894 docs/dev/ENVIRONMENT.md
PR 10920 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 10940 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10953 docs/dev/debt/libc.md
PR 10989 docs/dev/debt/libc.md
PR 11126 docs/dev/debt/libSceAgcDriver.md
PR 11172 docs/dev/debt/libc.md
PR 11215 core/libs/prx/libkernel/include/Api.hpp
PR 11262 docs/dev/debt/libc.md
PR 11266 docs/dev/debt/libc.md
PR 11332 docs/dev/debt/libc.md
PR 11351 docs/dev/ENVIRONMENT.md
PR 11436 docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11551 docs/dev/debt/libSceAgcDriver.md
PR 11625 docs/dev/debt/libc.md
PR 11661 docs/dev/debt/libc.md
PR 11689 docs/dev/debt/libc.md
PR 11698 docs/dev/debt/libc.md
PR 11724 docs/dev/debt/libc.md
PR 11726 docs/dev/debt/libc.md
PR 11831 docs/dev/debt/libc.md
PR 11939 core/libs/prx/libkernel/include/Api.hpp
PR 12120 docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 12323 docs/dev/ENVIRONMENT.md
PR 12324 docs/dev/ENVIRONMENT.md
PR 12348 docs/dev/debt/libSceAgcDriver.md
PR 12468 docs/dev/debt/libc.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12560 docs/dev/debt/libc.md
PR 12605 docs/dev/debt/libc.md
PR 12682 docs/dev/debt/libc.md
PR 12688 docs/dev/debt/libc.md
PR 12700 docs/dev/debt/libc.md
PR 12746 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 12826 core/libs/prx/libkernel/DirectMemory/Export.cpp
core/libs/prx/libkernel/include/Api.hpp
PR 12855 docs/dev/debt/libSceAgcDriver.md
PR 12863 docs/dev/ENVIRONMENT.md
PR 12904 docs/dev/debt/libSceAgcDriver.md
PR 12920 docs/dev/debt/libc.md
PR 12965 docs/dev/debt/libc.md
PR 13146 docs/dev/debt/libSceAgcDriver.md
PR 13793 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libc.md
PR 13809 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libc.md
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 13942 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 14051 docs/dev/ENVIRONMENT.md
PR 14212 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libc.md

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head a485eb5 merged onto main 9f748f4 · tested 2026-10-30 17:51 UTC · 29 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,935 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 41 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,981 of 3,021 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (1181 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 40.2 s, ⚠️ agc_driver_graphics 39.9 s, ⚠️ agc_driver_bda_device 37.4 s, ⚠️ agc_driver_lookup_log_fits_build 35.5 s, ⚠️ agc_driver_graphics_maps_fallback 31.7 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 5 of the last 9 main runs
agc_submit_progress_no_timeline: failed in 7 of the last 9 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
agc_driver_job_manager_compute_capacity: Failed in the parallel run; also passed only on retry in 122 other runs in the last 7 days
Validation IDs already present on main (5 IDs in 689 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (689 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, and 681 more
VUID-vkCmdCopyImage-srcImage-01548 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-vkCmdCopyImage-srcImage-01551 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (41)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_labels: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is eithe
Reproduce
git fetch origin a485eb515e3021a565d66222bfe3eceb883e933d 9f748f4d8e36ce3714f3b95f3386316e110a9b22
git checkout 9f748f4d8e36ce3714f3b95f3386316e110a9b22 && git merge --no-ff a485eb515e3021a565d66222bfe3eceb883e933d
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@Gonic0

Gonic0 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, all four held up. 070d6ad515 addresses them, and the description now lists the changes, tests and controls.

  1. Window. The release moved from FlushPending's registry step to writeBackLayers. A store that copies into the import on the GPU (the MoltenVK path here) releases the trap once the copy is recorded. A read that faults before then goes through the host-read hook, which waits for the store and its batch, so it sees the stored bytes.
    • New regression: the test holds GpuMutex while another thread runs FlushPending. That thread takes the image out of the registry and waits for the mutex. The page must still be without access, and a read started then must see the stored results once the mutex is released.
    • With the release back where it was, the test fails with "a trapped image taken for a store gave back its pages before the store".
    • What remains: a read after the copy is recorded and before it lands sees the old bytes. On the CPU path the trap has to go before the first access, since page protection is process-wide. Both are in the debt entry.
  2. Other store paths. Flush(), WriteBack() and refreshes all store through writeBackLayers, so they release now. A trapped image is also stored whole, so a partial store cannot leave pending layers without their trap. That part has no test: these images have one layer.
  3. Shared page. B's store on the GPU path does not touch the page from the CPU. On the CPU path, writeBackLayers releases the traps of other images on B's pages (pending or being stored) before its first CPU access. Those images stay pending and are trapped again at the next label.
    • New test: two 8x8 linear images on one page at both architectures' page size.
      • A alone pending: the label traps it.
      • Both pending: the label stores both and gives the page back.
      • A trapped again: B stored through the CPU (FlushPending with the reason idle) completes, and the page comes back. The next label traps A again, and a read sees A's results.
    • Without the neighbour release, the CPU store case fails.
  4. Aliases. You are right: direct memory can always be mapped twice here, and a read through the other address skipped the trap.
    • A new libkernel export, DirectMemoryAliased_nid_postfix, says whether any of a range's physical memory is mapped by another direct mapping. The label does not trap such a range; it stores it as before.
    • I could not test it here: the recorder test's memory is not direct memory, and guest_memory_tests does not build on macOS. Shared memory objects mapped twice are not detected; that is in the debt entry.

Two labels in a row on the same image were already in the test: two StoreReadbackBeforeLabel calls before the first read. That pins #13442's no-op trap too.

Five negative controls fail the test on the new head. The 82 recorder entries with the validation layer report the same VUID- lines as the base. The logos run at 44.2 and 44.7 FPS against 38.2, 37.8 and 37.8 with APS5_NO_LABEL_READ_TRAP=1, with the same image.

AI-assisted: yes

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Progress report (5f0857e → 0fdd66d)

📈 System libraries: 25.85% (+0.0022%, +1 implemented functions)

✅ 1 implemented
Library Name
libkernel DirectMemoryAliased_nid_postfix

Changed libraries (implemented exports)

Library Before After Change
libkernel 702/750 (93.60%) 703/751 (93.61%) +0.01%

@TechLevelZero

TechLevelZero commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 070d6ad merged onto main 0836dfd · tested 2026-11-01 00:48 UTC · 29 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 3,003 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 50 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 3,058 of 3,087 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (1212 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_lookup_log_fits_build 44.8 s, ⚠️ agc_driver_lazy_resolved_abi 39.9 s, ⚠️ agc_driver_bda_device 37.3 s, ⚠️ agc_driver_pipeline_journal 36.2 s, ⚠️ agc_driver_graphics 36.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_submit_progress: failed in 8 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_idle_store_yields
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 706 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (706 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, and 698 more
VUID-vkCmdCopyImage-srcImage-01548 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-vkCmdCopyImage-srcImage-01551 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (50)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or pla
Reproduce
git fetch origin 070d6ad515741cafb0253304bb9da02398ba14cd 0836dfdf4fecb1e0326100c490476e15d3a74da5
git checkout 0836dfdf4fecb1e0326100c490476e15d3a74da5 && git merge --no-ff 070d6ad515741cafb0253304bb9da02398ba14cd
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@JJenkx

JJenkx commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Windows data on how much a Windows version of this could gain. It's an upper bound, not a test of this PR. Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, RX 6700 XT, Afterimage (PPSA14053) intro at 3840x2160.

On this scene the label store is the committer's largest stall. A committer sampler profile puts 25% of the committer's samples in Recorder::Sync under StorageTexture::FlushPending from StoreReadbackBeforeLabel. About 990 write-backs per 10 s are "readback before label", 62 MiB in all. The graphics worker spends 26% of its samples in DrawPipeline::Enqueue from enqueueLabelPacket, waiting for room behind the committer.

To bound the gain, I skipped the store entirely with main's APS5_NO_LABEL_READBACK_STORE=1. That's unsafe if anything reads the images, though the intro rendered the same in screenshots. Two alternating pairs, APS5_TRACE_FRAMES=1900:200 only, same libraries:

pair frame p50 ms (store → no store) GPU busy ms per present Graphics.Draw ms
1 60.7 → 59.4 (−2.0 %) 37.3 → 37.5 30.2 → 27.7
2 61.3 → 57.8 (−5.7 %) 38.9 → 36.5 29.8 → 23.2

Recorder.Sync (17 ms per frame) goes away, but the frame time barely moves. On this Windows scene a read trap could gain at most 2–6 %, so I'm not starting a Windows port of #13442/#13499 on this evidence. Other titles may differ.

AI-assisted: yes (Claude Code).

Gonic0 and others added 7 commits November 1, 2026 07:33
GuestWriteWatchTrapReads takes all access to the pages of a range until
the resolver set with GuestWriteWatchSetReadTrapResolver has run for it.
A fault on a trapped page waits while the resolver runs on the watch's
own thread; host writes and GuestWriteWatchProtect run it first on the
calling thread. Collections keep trapped pages inaccessible, and
registering or unregistering memory drops its traps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fault that reaches the handler after its page was given back is retried.
The budget for that was shared by every thread faulting on the page, so the
17th delayed reader of one untrap was passed on as a crash. Each thread now
has its own budget per page and untrap, which still bounds a fault the page's
protection does not explain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A caller that traps the same range at every label then needs no record of
its own of which ranges are trapped, which registering memory again could
leave stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The per-thread retry entries are a 64-entry cache. More threads faulting in
turn on a page whose protection does not explain the fault evict each
other's entries before their next attempt, so each count restarted at 1 and
the faults were retried forever. Retries between two untraps are now also
counted in total, up to 64 times the per-thread budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing them

Before a label, a pending linear or small storage image that shares no page
with another pending or storing image now gets a write-watch read trap
instead of its store. The first access to its pages stores it through the
host-read hook; any other store releases the trap first.
APS5_NO_LABEL_READ_TRAP=1 keeps the store at the label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The trap was released when FlushPending took the image out of the pending
registry, before it waited for GpuMutex, so a read in between saw the old
bytes; cache eviction and explicit write-backs did not release it at all.
Every store now releases it in writeBackLayers: after recording the GPU copy
into the import, or before the first CPU access on the CPU path, which also
releases the traps of other images on the same pages. A trapped image is
stored whole, and direct memory mapped at a second address is not trapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gonic0
Gonic0 force-pushed the feat/agc-label-read-trap branch from 5e529c2 to 0fdd66d Compare November 1, 2026 06:38
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
@adriadam10 adriadam10 self-assigned this Nov 1, 2026
@adriadam10
adriadam10 merged commit a644edf into boykopovar:main Nov 1, 2026
19 of 20 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the diff, the release paths and the shared-page and direct-memory alias rules. Dean's four points are covered by 070d6ad and its tests. Linux and Windows code paths are unchanged. The measurements are in the description, the debt entries and ENVIRONMENT.md are updated, and hosted checks are green; merged.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants