perf(agc): drop pending units a compute dispatch is proven to overwrite (APS5_PROVEN_OVERWRITE) #18369

Merged
klosixgaming-arch merged 2 commits from upstream-pr/18369 into main 2026-11-24 09:54:59 +00:00
klosixgaming-arch commented 2026-11-11 12:34:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-11-11T12:34:29Z.


What

Some titles reuse one guest address range as a transient pool: within a frame, images of different sizes start at the same address, one pass after another. In Cyberpunk 2077 they are 3200x1800, 2560x1440, 2048x2048, 1848x1040 and 1600x900 images. A compute dispatch that writes a new storage image refreshes it over memory where an earlier image of another shape still holds pending GPU results. The refresh writes those results back to guest memory and uploads the memory into the new image, although the dispatch is about to overwrite them.

This PR lets the driver skip that write-back when the overwrite is proven. Off by default; APS5_PROVEN_OVERWRITE turns it on and APS5_AB can toggle it.

Recompiler. A new pass, ImageOverwriteProof, runs after resource tracking for compute shaders. For each 2D storage image it proves that the shader stores every texel of the addressed level and never reads it:

  • each store coordinate is an offset from user data (or none), plus a tile per workgroup times the workgroup id, plus a lane term;
  • the lane terms are evaluated for every thread of one group, and the lanes of all stores to the image must cover the tile;
  • the store's exec may contain only lane-local conditions, gid < limit (which then needs a dispatch without partial groups), and bounds of the pre-offset coordinate against user data or an immediate that are never tighter than the coordinate itself;
  • 16-bit address halves (A16) and 16-bit masks become range checks on the grid;
  • the stores are outside loops, and the only branches that may skip them are exec-zero or VCC-zero skips on a mask the store's exec requires;
  • no other access reads, samples or atomically updates the same image source, and the shader uses no DMA.

The proof is carried in ImageResource and DescriptorBinding and stored in the shader disk cache.

Driver. A direct dispatch with zero COMPUTE_START offsets records its grid, partial threads and user data. When a storage element with a proof is looked up (in the build, the T1 refresh and the full walk), the driver checks:

  • the grid and user data cover the element's level from the origin;
  • the element is 2D, has no DCC and is at its base level;
  • no other image or buffer binding of the dispatch touches the level's bytes.

If all of these hold, the refresh or creation of its image drops the pending units of other images that lie wholly inside the level's covered bytes, instead of writing them back. Covered bytes are whole tile blocks or exact rows, never padding. Images whose pending units are being stored are left alone. DCC images are dropped only when their write-back stores by units, which is the clear hand-over's rule. With the switch on, ScanPending and FindPending count a pending image as over a range only where one of its pending units lies. After a drop, a larger earlier image keeps pending units only outside the new one.

This replaces the unsafe takeover in #18348, which dropped such units without proof.

Tested

Body Type on current main, 2026-11-15

Cyberpunk 2077 (PPSA03974) 02.120.000, character creator Body Type, 3200x1800; Windows 11 (10.0.26200), RTX 5090 (NVIDIA 617.42), Ryzen 9 9950X3D. Both builds are main b39603dbdc + #19071 (the game only reaches the creator with it); the change is merged on top. Each line is the 20 s trace window opened about 80 s after entering the creator, one boot each, the same environment on both sides. APS5_PROVEN_OVERWRITE=1 is set on both sides; main does not read it.

main + #19071 (262be96458), 130 presents in the window:

{"commit":"262be96458b9","dirty":false,"env":{"APS5_CAPTURE_UNPROVEN_PENDING":"1","APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 0:20","first_present":4805,"ms":20123.912},"presents":130,"frame_ms":{"p50":152.206,"p90":166.180,"p99":190.679,"max":221.704},"gpu_busy_ms_per_present":34.777,"worker_busy_pct":{"queue worker 0x0":99.072,"queue worker 0x23":99.853},"phase_totals_ms":{"Driver.Completion":8.774,"Driver.Dispatch":11044.863,"Driver.Dispatch.capture_resources":461.631,"Driver.Dispatch.decode_key_device_setup":113.191,"Driver.Dispatch.lookup_cache":99.373,"Driver.Dispatch.materialize":112.393,"Driver.Dispatch.prepared_invocation":83.741,"Driver.Draw":2314.959,"Driver.Draw.device_setup":48.597,"Driver.Draw.draw_enqueued":343.686,"Driver.Draw.post_compile_prepare":18.174,"Driver.Draw.prepare":134.186,"Driver.Draw.shader_compile_and_link":1751.783,"Driver.EndSubmission":323.513,"Driver.Packet":39699.190,"Driver.Packet.device_lock":42.749,"Driver.Packet.dispatch":18634.454,"Driver.Packet.draw":2325.982,"Driver.Packet.execute":152.285,"Driver.Packet.flip_flush":0.376,"Driver.Packet.flush_between_packets":299.229,"Driver.Packet.memory_wait":16958.491,"Driver.Packet.pipeline_drain":841.079,"Driver.Packet.pipeline_prepare":65.882,"Driver.Packet.prepare_memory":87.326,"Driver.Packet.rendering_wait":0.194,"Driver.Present":108.799,"Driver.Present.acquire_image":2.477,"Driver.Present.device_setup":0.115,"Driver.Present.gpu_mutex_wait":1.116,"Driver.Present.inflight_wait":0.452,"Driver.Present.present_display_buffer":20.972,"Driver.Present.queue_present":77.047,"Driver.Present.release_and_callback":0.165,"Driver.Present.render_fence_wait":5.992,"Driver.Present.resize":0.336,"Driver.Present.validate":0.043,"Driver.Suspend":0.030,"GpuMutex.wait.copy":7.784,"GpuMutex.wait.dispatch":1183.375,"GpuMutex.wait.draw":231.373,"GpuMutex.wait.end":182.333,"GpuMutex.wait.fill":104.878,"GpuMutex.wait.flush":16.225,"GpuMutex.wait.hook":2459.968,"GpuMutex.wait.indirect":43.897,"GpuMutex.wait.label":304.996,"GpuMutex.wait.other":86.925,"GpuMutex.wait.present":0.783,"GpuMutex.wait.wait":12.314,"Graphics.Draw":7911.797,"Graphics.Draw.draw_and_resource_release":7329.288,"Graphics.Draw.index_upload":172.089,"Graphics.Draw.validate":124.962,"Graphics.Draw.vertex_upload":271.469,"Graphics.DrawWithRecipe":227.558,"Graphics.DrawWithRecipe.draw_and_resource_release":166.504,"Graphics.DrawWithRecipe.index_upload":0.073,"Graphics.DrawWithRecipe.validate":0.832,"Graphics.DrawWithRecipe.vertex_upload":0.524,"Graphics.Submit":0.325,"Graphics.Submit.command_end":0.028,"Graphics.Submit.queue_submit":0.291,"Graphics.Wait":7.873,"Graphics.Wait.fence_wait":7.662,"Recorder.Reap":207.990,"Recorder.Submit":878.430,"Recorder.Sync":387.631,"Recorder.WaitSerial":993.227,"Resources.Complete":92.280,"Resources.Prepare":75.516,"Shader.DrawStage":1559.408,"Shader.DrawStage.capture_resources":1177.897,"Shader.DrawStage.materialize":295.976,"Shader.DrawStage.prepared_invocation":79.039,"Shader.ResolveAbi":69.360,"Shader.ResolveGraphicsAbi":20.208,"Shader.ResolveGraphicsStagesAbi":90.901,"VideoOut.Flip":123.031,"VideoOut.Flip.completion_mutex_wait":0.174,"VideoOut.Flip.config_mutex_wait":0.017,"VideoOut.Flip.frame_limit":0.103,"VideoOut.Flip.notify_game":3.286,"VideoOut.Flip.present":110.638,"VideoOut.Flip.validate":0.208,"VideoOut.Flip.vblank_wait":0.131,"VideoOut.Flip.window_prepare":0.305,"VideoOut.Flip.window_title":8.069,"VideoOut.Readiness":0.392,"VideoOut.Readiness.locks_validate":0.158,"Vulkan.Acquire":2.276,"Vulkan.Acquire.acquire_fence_wait":0.287,"Vulkan.Acquire.acquire_image":1.572,"Vulkan.Acquire.fence_reset":0.287,"Vulkan.Acquire.retired_swapchains":0.073,"Vulkan.Dispatch":5115.651,"Vulkan.Dispatch.command_record":449.745,"Vulkan.Dispatch.shader_resources":4652.917,"Vulkan.DispatchRecipe":498.051,"Vulkan.DispatchRecipe.command_record":474.878,"Vulkan.DrawFromRecipe":228.360,"Vulkan.Present":10.163,"Vulkan.Present.command_record_scale":5.015,"Vulkan.Present.pixel_upload":0.461,"Vulkan.Present.queue_submit":4.554,"Vulkan.QueuePresent":76.768,"Vulkan.QueuePresent.queue_present":76.574,"Vulkan.Retire":6.060,"Vulkan.Retire.wait":4.032},"top_phases_ms_per_frame":{"Driver.Packet":305.378,"Driver.Packet.dispatch":143.342,"Driver.Packet.memory_wait":130.450,"Driver.Dispatch":84.960,"Graphics.Draw":60.860,"Graphics.Draw.draw_and_resource_release":56.379,"Vulkan.Dispatch":39.351,"Vulkan.Dispatch.shader_resources":35.792},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2569,"Graphics.Barrier.dcc-clear":4680,"Graphics.Barrier.dcc-keys":2080,"Graphics.Barrier.dispatch-lead":45274,"Graphics.Barrier.dispatch-trail":38956,"Graphics.Barrier.draw":23864,"Graphics.Barrier.fill":7982,"Graphics.Barrier.fill-clear":3640,"Graphics.Barrier.indirect-args":9459,"Graphics.Barrier.input-mirror":88,"Graphics.Barrier.label-run":43567,"Graphics.Barrier.present-blit":520,"Graphics.Barrier.shadow-publish":3904,"Graphics.Barrier.staging-in":14564,"Graphics.Barrier.staging-out":6382,"Graphics.Barrier.storage-upload":29926,"Graphics.Barrier.storage-writeback":42662,"Graphics.BarrierMerged.copy":489,"Graphics.BarrierMerged.dispatch-lead":12600,"Graphics.BarrierMerged.fill":2276,"Graphics.BarrierMerged.shadow-publish":3896,"Graphics.BarrierMerged.staging-in":4582,"Graphics.BarrierMerged.staging-out":6382,"Graphics.BarrierMerged.storage-writeback":12701,"Graphics.Copy":16435,"Graphics.Copy.bytes":40606550272,"Graphics.RenderPass":10634,"Graphics.RenderPass.Close.command":6841,"Graphics.RenderPass.Close.image":915,"Graphics.RenderPass.Close.new-batch":2878,"Graphics.RenderPass.Continued":22098},"trace_dropped":false,"trace":"aps5-trace-262be96458b9-50340.json.gz"}

This PR on the same base (2f57ee27aa), 138 presents in the window:

{"commit":"2f57ee27aaae","dirty":false,"env":{"APS5_CAPTURE_UNPROVEN_PENDING":"1","APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 0:20","first_present":4849,"ms":20019.281},"presents":138,"frame_ms":{"p50":141.776,"p90":161.548,"p99":179.646,"max":181.593},"gpu_busy_ms_per_present":36.835,"worker_busy_pct":{"queue worker 0x0":99.003,"queue worker 0x23":99.875},"phase_totals_ms":{"Driver.Completion":8.894,"Driver.Dispatch":11494.802,"Driver.Dispatch.capture_resources":465.217,"Driver.Dispatch.decode_key_device_setup":140.891,"Driver.Dispatch.lookup_cache":93.325,"Driver.Dispatch.materialize":123.156,"Driver.Dispatch.prepared_invocation":82.218,"Driver.Draw":2494.278,"Driver.Draw.device_setup":50.033,"Driver.Draw.draw_enqueued":369.772,"Driver.Draw.post_compile_prepare":19.436,"Driver.Draw.prepare":139.795,"Driver.Draw.shader_compile_and_link":1896.890,"Driver.EndSubmission":421.298,"Driver.Packet":39383.694,"Driver.Packet.device_lock":44.914,"Driver.Packet.dispatch":18417.999,"Driver.Packet.draw":2505.877,"Driver.Packet.execute":155.927,"Driver.Packet.flip_flush":0.378,"Driver.Packet.flush_between_packets":292.446,"Driver.Packet.memory_wait":16645.393,"Driver.Packet.pipeline_drain":837.495,"Driver.Packet.pipeline_prepare":66.562,"Driver.Packet.prepare_memory":89.207,"Driver.Packet.rendering_wait":0.210,"Driver.Present":129.739,"Driver.Present.acquire_image":2.645,"Driver.Present.device_setup":0.112,"Driver.Present.gpu_mutex_wait":0.696,"Driver.Present.inflight_wait":0.504,"Driver.Present.present_display_buffer":27.237,"Driver.Present.queue_present":91.600,"Driver.Present.release_and_callback":0.233,"Driver.Present.render_fence_wait":6.251,"Driver.Present.resize":0.314,"Driver.Present.validate":0.058,"Driver.Suspend":0.054,"GpuMutex.wait.copy":9.982,"GpuMutex.wait.dispatch":1259.858,"GpuMutex.wait.draw":211.824,"GpuMutex.wait.end":252.090,"GpuMutex.wait.fill":99.771,"GpuMutex.wait.flush":34.442,"GpuMutex.wait.hook":2725.017,"GpuMutex.wait.indirect":42.279,"GpuMutex.wait.label":321.350,"GpuMutex.wait.other":99.388,"GpuMutex.wait.present":0.336,"GpuMutex.wait.wait":10.899,"Graphics.Draw":7230.136,"Graphics.Draw.draw_and_resource_release":6670.817,"Graphics.Draw.index_upload":129.010,"Graphics.Draw.validate":127.290,"Graphics.Draw.vertex_upload":289.383,"Graphics.DrawWithRecipe":241.063,"Graphics.DrawWithRecipe.draw_and_resource_release":153.828,"Graphics.DrawWithRecipe.index_upload":0.101,"Graphics.DrawWithRecipe.validate":0.999,"Graphics.DrawWithRecipe.vertex_upload":0.604,"Graphics.Submit":0.181,"Graphics.Submit.command_end":0.019,"Graphics.Submit.queue_submit":0.158,"Graphics.Wait":6.230,"Graphics.Wait.fence_wait":6.051,"Recorder.Reap":147.743,"Recorder.Submit":953.998,"Recorder.Sync":627.251,"Recorder.WaitSerial":1123.507,"Resources.Complete":233.804,"Resources.Prepare":139.080,"Shader.DrawStage":1708.846,"Shader.DrawStage.capture_resources":1311.409,"Shader.DrawStage.materialize":310.040,"Shader.DrawStage.prepared_invocation":80.631,"Shader.ResolveAbi":79.937,"Shader.ResolveGraphicsAbi":20.827,"Shader.ResolveGraphicsStagesAbi":103.917,"VideoOut.Flip":147.576,"VideoOut.Flip.completion_mutex_wait":0.199,"VideoOut.Flip.config_mutex_wait":0.020,"VideoOut.Flip.frame_limit":0.105,"VideoOut.Flip.notify_game":4.145,"VideoOut.Flip.present":131.708,"VideoOut.Flip.validate":0.224,"VideoOut.Flip.vblank_wait":0.135,"VideoOut.Flip.window_prepare":0.328,"VideoOut.Flip.window_title":10.592,"VideoOut.Readiness":0.545,"VideoOut.Readiness.locks_validate":0.285,"Vulkan.Acquire":2.438,"Vulkan.Acquire.acquire_fence_wait":0.292,"Vulkan.Acquire.acquire_image":1.667,"Vulkan.Acquire.fence_reset":0.326,"Vulkan.Acquire.retired_swapchains":0.080,"Vulkan.Dispatch":5211.056,"Vulkan.Dispatch.command_record":463.644,"Vulkan.Dispatch.shader_resources":4733.385,"Vulkan.DispatchRecipe":535.768,"Vulkan.DispatchRecipe.command_record":508.361,"Vulkan.DrawFromRecipe":242.102,"Vulkan.Present":12.111,"Vulkan.Present.command_record_scale":5.969,"Vulkan.Present.pixel_upload":0.491,"Vulkan.Present.queue_submit":5.511,"Vulkan.QueuePresent":91.236,"Vulkan.QueuePresent.queue_present":91.026,"Vulkan.Retire":6.234,"Vulkan.Retire.wait":3.666},"top_phases_ms_per_frame":{"Driver.Packet":285.389,"Driver.Packet.dispatch":133.464,"Driver.Packet.memory_wait":120.619,"Driver.Dispatch":83.296,"Graphics.Draw":52.392,"Graphics.Draw.draw_and_resource_release":48.339,"Vulkan.Dispatch":37.761,"Vulkan.Dispatch.shader_resources":34.300},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2744,"Graphics.Barrier.dcc-clear":4968,"Graphics.Barrier.dcc-keys":2208,"Graphics.Barrier.dispatch-lead":47332,"Graphics.Barrier.dispatch-trail":41372,"Graphics.Barrier.draw":25685,"Graphics.Barrier.fill":8076,"Graphics.Barrier.fill-clear":3864,"Graphics.Barrier.indirect-args":10078,"Graphics.Barrier.input-mirror":95,"Graphics.Barrier.label-run":46063,"Graphics.Barrier.present-blit":552,"Graphics.Barrier.shadow-publish":6391,"Graphics.Barrier.staging-in":14905,"Graphics.Barrier.staging-out":6487,"Graphics.Barrier.storage-upload":30840,"Graphics.Barrier.storage-writeback":44547,"Graphics.BarrierMerged.copy":576,"Graphics.BarrierMerged.dispatch-lead":14196,"Graphics.BarrierMerged.fill":2422,"Graphics.BarrierMerged.shadow-publish":6305,"Graphics.BarrierMerged.staging-in":4556,"Graphics.BarrierMerged.staging-out":6487,"Graphics.BarrierMerged.storage-writeback":12956,"Graphics.Copy":17908,"Graphics.Copy.bytes":42895010432,"Graphics.RenderPass":11487,"Graphics.RenderPass.Close.command":7506,"Graphics.RenderPass.Close.image":1015,"Graphics.RenderPass.Close.new-batch":2966,"Graphics.RenderPass.Continued":23212},"trace_dropped":false,"trace":"aps5-trace-2f57ee27aaae-2448.json.gz"}

In-run A/B on this PR's build, APS5_AB=10:APS5_PROVEN_OVERWRITE from 150 s, phases after 200 s (Body Type): n 15 B-A +7.05 +- 0.42 presents/10 s (+11.1% +- 0.7) A 63.4 B 70.5. B turns the proof on: +11.1% +- 0.7.

Traces, the two summary lines, tools/trace_digest.py output (digest-mbase-po.txt, digest-m18369a.txt) and the A/B phases: https://github.com/klosixgaming-arch/AnyPS5/releases/tag/perf-captures-2026-11-15

Cyberpunk 2077 (PPSA03974), the intro movie, 3200x1800, warm caches; Windows 11, RTX 5090 (driver 617.42), Ryzen 9 9950X3D. 2026-11-11.

In-run A/B on a6a7c14dbc (APS5_AB=10:APS5_PROVEN_OVERWRITE from 80 s): the B phase beat both neighbouring A phases in all 8 pairs inside the movie. B vs neighbouring A: +1.67 +- 0.15 presents per 10 s (SD 0.42, n 8), +3.4%, with A at 48.8 and B at 50.5. The last pair straddles the end of the movie and is left out. An earlier A/B on the same code plus diagnostic counters gave +1.19 +- 0.12 (n 9), +2.5%, and again B won every pair.

In-run A/B on d5a98f430b (after the review fixes, same settings, 10 pairs): +0.86 +- 0.21 presents per 10 s (SD 0.67), +2.2%, with A at 38.6 and B at 39.4. B was ahead in 9 of 10 pairs. The overall rate was lower in this run than in the one above.

Separate runs do not resolve it. On this machine, separate runs move by about 5% with the GPU time per present, because the desktop compositor took 25-50% of the GPU's 3D engine tonight. Five separate runs of this commit (movie windows, presents per 10 s):

run switch presents per 10 s GPU ms per present Recorder.Sync per present
main 17fec48224 - 48.1 43.3-45.4 39.7
this PR off 47.9 42.1-44.4 43.2
this PR on 45.6 43.5-46.0 44.1
this PR off 43.8 46.0-48.5 46.2
this PR on 47.1 43.5-45.8 42.4
this PR (summary line below) on 45.0 44.2-46.6 45.1

The summary lines below are separate runs, so they carry that noise. The in-run A/B is the number to go by.

Summary lines of main and of this PR. Same machine and session, with only the capture switches (APS5_TRACE_SECONDS=60:10, APS5_TRACE_SUMMARY_EVERY=10, APS5_TRACE_EVENTS=1048576), plus APS5_PROVEN_OVERWRITE=1 on this PR. Traces, all summary lines, the A/B splits and the frame sheets: https://github.com/klosixgaming-arch/AnyPS5/releases/tag/perf-captures-2026-11-11

main 17fec48224:

{"commit":"17fec482248b","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":382,"ms":10035.302},"presents":48,"frame_ms":{"p50":208.145,"p90":218.537,"p99":224.709,"max":224.709},"gpu_busy_ms_per_present":44.976,"worker_busy_pct":{"queue worker 0x0":99.523,"queue worker 0x23":99.864},"top_phases_ms_per_frame":{"Driver.Packet":405.930,"Driver.Packet.dispatch":197.113,"Driver.Packet.memory_wait":183.662,"Driver.Dispatch":139.957,"Vulkan.Dispatch":94.447,"Vulkan.Dispatch.shader_resources":89.724,"Graphics.Draw":60.683,"Graphics.Draw.draw_and_resource_release":59.634},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-17fec482248b-45764.json.gz"}

this PR, a6a7c14dbc, with APS5_PROVEN_OVERWRITE=1:

{"commit":"a6a7c14dbcff","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":370,"ms":10151.654},"presents":46,"frame_ms":{"p50":219.565,"p90":232.724,"p99":235.362,"max":235.362},"gpu_busy_ms_per_present":44.303,"worker_busy_pct":{"queue worker 0x0":99.543,"queue worker 0x23":99.809},"top_phases_ms_per_frame":{"Driver.Packet":428.153,"Driver.Packet.dispatch":209.196,"Driver.Packet.memory_wait":194.250,"Driver.Dispatch":144.171,"Vulkan.Dispatch":99.074,"Vulkan.Dispatch.shader_resources":95.174,"Graphics.Draw":62.959,"Graphics.Draw.draw_and_resource_release":61.828},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a6a7c14dbcff-45720.json.gz"}

What it drops. A diagnostic build counted, per 10 s of the movie:

  • about 440 claimed storage lookups;
  • 24k units of 64 KiB dropped instead of written back.

Before the DCC rule above, the claims dropped only about 48 units, because 310 of the 660 pending images they touched have DCC.

The proof covers the top programs by takeover traffic that I checked by IR dump. It refuses the others, which a census showed hold about 40% of the units:

  • covered: a copy-rectangle kernel with user-data offset and size, a 64-lane kernel with four A16 stores per lane, a 16x16 clear, and plain global-id stores;
  • refused: a read-modify-write of the same image, a ballot-predicated store, tile-list coordinates, atomics, and LDS-derived coordinates.

Pictures. Frames dumped with the switch on (every 150th frame): the logos, the legal screens, six scenes of the intro movie and the title render correctly. The red streaks over one legal screen are the game's transition effect; a dump with the switch off shows the same streaks over the CD PROJEKT RED logo. Both sheets are in the release.

Tests (Windows, RTX 5090) on d5a98f430b:

  • New shader_image_overwrite_proof (16 cases): a global-id store, two stores per thread, a user-data rectangle, packed A16 coordinates, and an exec-zero skip on the store's mask are proved. A bound whose term wraps below zero for the first lanes, a second read of the image, a tile with gaps, a lane guard, a bound ahead of the coordinate, a 16-bit truncation past 65535, both axes on one group axis, a scalar branch and a skip on another mask are refused. ImageOverwriteCovers rejects a grid with no groups on an axis, a partial group on an axis a full-groups proof needs whole, a short grid, an offset, a short size, a size register past the dispatch's user data and packed coordinates past 65535. Removing the coverage, alias, bound, branch or axis check fails it.
  • New agc_storage_discard_covered: DiscardPendingCovered drops only the 64 KiB units wholly inside the covered range, keeps the unit the range ends in, and drops nothing while another image over the range is being stored. Removing the flushing guard or dropping every touched unit fails it.
  • Unchanged and passing: agc_runtime_switches, agc_runtime_switches_refused, agc_storage_clear_hand_over, agc_driver_storage_one_slice_alias, agc_driver_own_refresh_repack_alias, agc_driver_storage_write_back_no_window, agc_driver_ordered_refresh_failure, agc_driver_depth_clear_hle, agc_driver_copy_surface_bytes.
trace_digest.py, main 17fec48224

seconds 60:10 from present 382: 48 presents, frame p50 208.1 / p90 218.5 / p99 224.7 / max 224.7 ms, GPU busy 45.0 ms per present
NVIDIA GeForce RTX 5090, NVIDIA 617.42, Windows 10.0.26200, 3200x1800, commit 17fec48224, dropped: no

{"commit":"17fec482248b","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":382,"ms":10035.302},"presents":48,"frame_ms":{"p50":208.145,"p90":218.537,"p99":224.709,"max":224.709},"gpu_busy_ms_per_present":44.976,"worker_busy_pct":{"queue worker 0x0":99.523,"queue worker 0x23":99.864},"top_phases_ms_per_frame":{"Driver.Packet":405.93,"Driver.Packet.dispatch":197.113,"Driver.Packet.memory_wait":183.662,"Driver.Dispatch":139.957,"Vulkan.Dispatch":94.447,"Vulkan.Dispatch.shader_resources":89.724,"Graphics.Draw":60.683,"Graphics.Draw.draw_and_resource_release":59.634},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-17fec482248b-45764.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 429: 224.7 ms at 9811 ms: Driver.Packet (queue worker 0x0) 212.4, Driver.Packet.dispatch (queue worker 0x0) 182.7, Driver.Dispatch (queue worker 0x0) 126.7, Driver.Packet (queue worker 0x23) 105.4
  • present 417: 223.6 ms at 7283 ms: Driver.Packet (queue worker 0x23) 221.1, Driver.Packet (queue worker 0x0) 211.7, Driver.Packet.memory_wait (queue worker 0x23) 188.0, Driver.Packet.dispatch (queue worker 0x0) 179.5
  • present 413: 222.0 ms at 6422 ms: Driver.Packet (queue worker 0x23) 217.2, Driver.Packet (queue worker 0x0) 209.8, Driver.Packet.memory_wait (queue worker 0x23) 187.1, Driver.Packet.dispatch (queue worker 0x0) 179.8
  • present 382: 219.5 ms at 0 ms: Driver.Packet (queue worker 0x23) 217.3, Driver.Packet (queue worker 0x0) 206.8, Driver.Packet.memory_wait (queue worker 0x23) 182.8, Driver.Packet.dispatch (queue worker 0x0) 176.6
  • present 428: 218.5 ms at 9592 ms: Driver.Packet (queue worker 0x23) 214.8, Driver.Packet (queue worker 0x0) 206.3, Driver.Packet.memory_wait (queue worker 0x23) 182.1, Driver.Packet.dispatch (queue worker 0x0) 175.0

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

  • present 429: 224.7 ms at 9811 ms, persistence 25.4 ms
  • present 417: 223.6 ms at 7283 ms, persistence 20.7 ms
  • present 382: 219.5 ms at 0 ms, persistence 20.2 ms
  • present 405: 218.5 ms at 4779 ms, persistence 18.7 ms
  • present 387: 217.4 ms at 1039 ms, persistence 17.8 ms
  • present 389: 216.7 ms at 1458 ms, persistence 15.0 ms
  • present 398: 217.9 ms at 3308 ms, persistence 14.4 ms
  • present 413: 222.0 ms at 6422 ms, persistence 10.8 ms
  • present 421: 213.7 ms at 8134 ms, persistence 8.4 ms
  • present 393: 207.2 ms at 2280 ms, persistence 6.0 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.1 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x0 182.2 (87 %) 22.5 (11 %) 4.4 12.7 Driver.Packet 198.4, Driver.EndSubmission 6.3
draw committer 65.4 (31 %) 11.7 (6 %) 132.0 1.5 Graphics.Draw 60.7, Vulkan.DrawFromRecipe 8.4
title 0.0 (0 %) 0.1 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 1.1 (1 %) 0.0 (0 %) 207.9 0.1 VideoOut.Flip 1.2
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.1 (0 %) 209.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.1 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 209.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x23 19.0 (9 %) 187.0 (89 %) 3.1 2.3 Driver.Packet 201.4, Driver.EndSubmission 4.6
gpu 44.1 (21 %) 0.0 (0 %) 165.0 0.0 batch 44.1

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 399.8, Driver.Packet.dispatch 196.9, Driver.Packet.memory_wait 181.4, Driver.Dispatch 139.5, Vulkan.Dispatch 94.0, Vulkan.Dispatch.shader_resources 89.2, Graphics.Draw 60.7, Graphics.Draw.draw_and_resource_release 59.6, batch 44.1, Recorder.Sync 38.1

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x23) 123.9 ms at 1139 ms, present 387
  • Driver.Packet.memory_wait (queue worker 0x23) 123.5 ms at 7390 ms, present 417
  • Driver.Packet.memory_wait (queue worker 0x23) 122.2 ms at 4881 ms, present 405
  • Driver.Packet.memory_wait (queue worker 0x23) 121.4 ms at 3410 ms, present 398
  • Driver.Packet.memory_wait (queue worker 0x23) 120.1 ms at 8021 ms, present 420
  • Driver.Packet.memory_wait (queue worker 0x23) 120.0 ms at 9699 ms, present 428
  • Driver.Packet.memory_wait (queue worker 0x23) 119.7 ms at 8233 ms, present 421
  • Driver.Packet.memory_wait (queue worker 0x23) 119.3 ms at 1562 ms, present 389
  • Driver.Packet.memory_wait (queue worker 0x23) 119.1 ms at 9479 ms, present 427
  • Driver.Packet.memory_wait (queue worker 0x23) 118.6 ms at 6530 ms, present 413

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

  • batch 26958: 11.5 ms at 1176 ms, present 387: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.9, Driver.Packet.dispatch (queue worker 0x0) 12.9, Driver.Dispatch (queue worker 0x0) 12.8, Vulkan.Dispatch (queue worker 0x0) 12.3
  • batch 28529: 11.5 ms at 3874 ms, present 400: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 13.1, Driver.Packet.dispatch (queue worker 0x0) 13.1, Driver.Dispatch (queue worker 0x0) 13.0, Vulkan.Dispatch (queue worker 0x0) 12.7
  • batch 30437: 11.3 ms at 7208 ms, present 416: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.7, Driver.Packet.dispatch (queue worker 0x0) 12.7, Driver.Dispatch (queue worker 0x0) 12.7, Vulkan.Dispatch (queue worker 0x0) 12.3
  • batch 30918: 11.2 ms at 8062 ms, present 420: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 13.5, Driver.Packet.dispatch (queue worker 0x0) 13.5, Driver.Dispatch (queue worker 0x0) 13.4, Vulkan.Dispatch (queue worker 0x0) 13.0
  • batch 26593: 11.0 ms at 553 ms, present 384: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.9, Driver.Packet.dispatch (queue worker 0x0) 12.9, Driver.Dispatch (queue worker 0x0) 12.8, Vulkan.Dispatch (queue worker 0x0) 12.5
trace_digest.py, this PR a6a7c14dbc with APS5_PROVEN_OVERWRITE=1

seconds 60:10 from present 370: 46 presents, frame p50 219.6 / p90 232.7 / p99 235.4 / max 235.4 ms, GPU busy 44.3 ms per present
NVIDIA GeForce RTX 5090, NVIDIA 617.42, Windows 10.0.26200, 3200x1800, commit a6a7c14dbcff, dropped: no

{"commit":"a6a7c14dbcff","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":370,"ms":10151.654},"presents":46,"frame_ms":{"p50":219.565,"p90":232.724,"p99":235.362,"max":235.362},"gpu_busy_ms_per_present":44.303,"worker_busy_pct":{"queue worker 0x0":99.543,"queue worker 0x23":99.809},"top_phases_ms_per_frame":{"Driver.Packet":428.153,"Driver.Packet.dispatch":209.196,"Driver.Packet.memory_wait":194.25,"Driver.Dispatch":144.171,"Vulkan.Dispatch":99.074,"Vulkan.Dispatch.shader_resources":95.174,"Graphics.Draw":62.959,"Graphics.Draw.draw_and_resource_release":61.828},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a6a7c14dbcff-45720.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 373: 235.4 ms at 689 ms: Driver.Packet (queue worker 0x23) 224.7, Driver.Packet (queue worker 0x0) 223.1, Driver.Packet.memory_wait (queue worker 0x23) 195.4, Driver.Packet.dispatch (queue worker 0x0) 187.4
  • present 372: 235.0 ms at 454 ms: Driver.Packet (queue worker 0x23) 227.0, Driver.Packet (queue worker 0x0) 222.1, Driver.Packet.memory_wait (queue worker 0x23) 200.9, Driver.Packet.dispatch (queue worker 0x0) 193.9
  • present 399: 234.3 ms at 6433 ms: Driver.Packet (queue worker 0x23) 227.0, Driver.Packet (queue worker 0x0) 223.7, Driver.Packet.memory_wait (queue worker 0x23) 198.9, Driver.Packet.dispatch (queue worker 0x0) 193.2
  • present 415: 234.1 ms at 9918 ms: Driver.Packet (queue worker 0x0) 224.8, Driver.Packet.dispatch (queue worker 0x0) 195.5, Driver.Dispatch (queue worker 0x0) 127.6, Driver.Packet (queue worker 0x23) 101.5
  • present 395: 232.7 ms at 5557 ms: Driver.Packet (queue worker 0x23) 225.2, Driver.Packet (queue worker 0x0) 223.3, Driver.Packet.memory_wait (queue worker 0x23) 196.5, Driver.Packet.dispatch (queue worker 0x0) 194.3

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

  • present 373: 235.4 ms at 689 ms, persistence 32.6 ms
  • present 415: 234.1 ms at 9918 ms, persistence 31.4 ms
  • present 399: 234.3 ms at 6433 ms, persistence 22.2 ms
  • present 395: 232.7 ms at 5557 ms, persistence 20.1 ms
  • present 387: 231.2 ms at 3791 ms, persistence 15.0 ms
  • present 407: 229.4 ms at 8209 ms, persistence 11.7 ms
  • present 379: 227.9 ms at 2027 ms, persistence 9.0 ms
  • present 403: 226.2 ms at 7323 ms, persistence 7.2 ms
  • present 411: 215.5 ms at 9065 ms, persistence 6.5 ms
  • present 375: 225.1 ms at 1144 ms, persistence 5.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 220.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 194.8 (88 %) 21.5 (10 %) 4.4 12.8 Driver.Packet 209.6, Driver.EndSubmission 6.7
draw committer 72.8 (33 %) 11.9 (5 %) 136.0 1.6 Graphics.Draw 62.9, Vulkan.DrawFromRecipe 13.8
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
presenter 1.3 (1 %) 0.0 (0 %) 219.4 0.1 VideoOut.Flip 1.3
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.1 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.6 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 220.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x23 18.1 (8 %) 199.1 (90 %) 3.5 2.3 Driver.Packet 212.2, Driver.EndSubmission 5.0
gpu 45.3 (21 %) 0.0 (0 %) 175.4 0.0 batch 45.3

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 421.8, Driver.Packet.dispatch 209.0, Driver.Packet.memory_wait 191.7, Driver.Dispatch 143.7, Vulkan.Dispatch 98.7, Vulkan.Dispatch.shader_resources 94.6, Graphics.Draw 62.9, Graphics.Draw.draw_and_resource_release 61.8, batch 45.3, Recorder.Sync 39.5

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x23) 135.6 ms at 563 ms, present 372
  • Driver.Packet.memory_wait (queue worker 0x23) 134.6 ms at 3448 ms, present 385
  • Driver.Packet.memory_wait (queue worker 0x23) 130.4 ms at 334 ms, present 371
  • Driver.Packet.memory_wait (queue worker 0x23) 129.6 ms at 5669 ms, present 395
  • Driver.Packet.memory_wait (queue worker 0x23) 129.5 ms at 108 ms, present 370
  • Driver.Packet.memory_wait (queue worker 0x23) 129.4 ms at 2135 ms, present 379
  • Driver.Packet.memory_wait (queue worker 0x23) 129.1 ms at 5442 ms, present 394
  • Driver.Packet.memory_wait (queue worker 0x23) 128.9 ms at 2360 ms, present 380
  • Driver.Packet.memory_wait (queue worker 0x23) 128.8 ms at 3903 ms, present 387
  • Driver.Packet.memory_wait (queue worker 0x23) 128.1 ms at 6548 ms, present 399

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

  • batch 32632: 10.8 ms at 10060 ms, present 415: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.9, Driver.Packet.dispatch (queue worker 0x0) 10.9, Driver.Dispatch (queue worker 0x0) 10.9, Vulkan.Dispatch (queue worker 0x0) 10.4
  • batch 28218: 10.7 ms at 2395 ms, present 380: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.0, Driver.Packet.dispatch (queue worker 0x0) 10.0, Driver.Dispatch (queue worker 0x0) 9.9, Vulkan.Dispatch (queue worker 0x0) 9.7
  • batch 29220: 10.6 ms at 4161 ms, present 388: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 9.8, Driver.Packet.dispatch (queue worker 0x0) 9.8, Driver.Dispatch (queue worker 0x0) 9.7, Vulkan.Dispatch (queue worker 0x0) 9.3
  • batch 31494: 10.6 ms at 8130 ms, present 406: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 9.4, Driver.Packet.dispatch (queue worker 0x0) 9.4, Driver.Dispatch (queue worker 0x0) 9.3, Vulkan.Dispatch (queue worker 0x0) 8.9
  • batch 27207: 10.5 ms at 601 ms, present 372: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.8, Driver.Packet.dispatch (queue worker 0x0) 10.8, Driver.Dispatch (queue worker 0x0) 10.7, Vulkan.Dispatch (queue worker 0x0) 10.2

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: NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (10.0.26200)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5259537277 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-11-11T12:34:29Z. --- ### What Some titles reuse one guest address range as a transient pool: within a frame, images of different sizes start at the same address, one pass after another. In Cyberpunk 2077 they are 3200x1800, 2560x1440, 2048x2048, 1848x1040 and 1600x900 images. A compute dispatch that writes a new storage image refreshes it over memory where an earlier image of another shape still holds pending GPU results. The refresh writes those results back to guest memory and uploads the memory into the new image, although the dispatch is about to overwrite them. This PR lets the driver skip that write-back when the overwrite is proven. Off by default; `APS5_PROVEN_OVERWRITE` turns it on and `APS5_AB` can toggle it. **Recompiler.** A new pass, `ImageOverwriteProof`, runs after resource tracking for compute shaders. For each 2D storage image it proves that the shader stores every texel of the addressed level and never reads it: - each store coordinate is an offset from user data (or none), plus a tile per workgroup times the workgroup id, plus a lane term; - the lane terms are evaluated for every thread of one group, and the lanes of all stores to the image must cover the tile; - the store's exec may contain only lane-local conditions, `gid < limit` (which then needs a dispatch without partial groups), and bounds of the pre-offset coordinate against user data or an immediate that are never tighter than the coordinate itself; - 16-bit address halves (A16) and 16-bit masks become range checks on the grid; - the stores are outside loops, and the only branches that may skip them are exec-zero or VCC-zero skips on a mask the store's exec requires; - no other access reads, samples or atomically updates the same image source, and the shader uses no DMA. The proof is carried in `ImageResource` and `DescriptorBinding` and stored in the shader disk cache. **Driver.** A direct dispatch with zero `COMPUTE_START` offsets records its grid, partial threads and user data. When a storage element with a proof is looked up (in the build, the T1 refresh and the full walk), the driver checks: - the grid and user data cover the element's level from the origin; - the element is 2D, has no DCC and is at its base level; - no other image or buffer binding of the dispatch touches the level's bytes. If all of these hold, the refresh or creation of its image drops the pending units of other images that lie wholly inside the level's covered bytes, instead of writing them back. Covered bytes are whole tile blocks or exact rows, never padding. Images whose pending units are being stored are left alone. DCC images are dropped only when their write-back stores by units, which is the clear hand-over's rule. With the switch on, `ScanPending` and `FindPending` count a pending image as over a range only where one of its pending units lies. After a drop, a larger earlier image keeps pending units only outside the new one. This replaces the unsafe takeover in #18348, which dropped such units without proof. ### Tested **Body Type on current `main`, 2026-11-15** Cyberpunk 2077 (PPSA03974) 02.120.000, character creator Body Type, 3200x1800; Windows 11 (10.0.26200), RTX 5090 (NVIDIA 617.42), Ryzen 9 9950X3D. Both builds are `main` `b39603dbdc` + #19071 (the game only reaches the creator with it); the change is merged on top. Each line is the 20 s trace window opened about 80 s after entering the creator, one boot each, the same environment on both sides. `APS5_PROVEN_OVERWRITE=1` is set on both sides; `main` does not read it. `main` + #19071 (`262be96458`), 130 presents in the window: ```json {"commit":"262be96458b9","dirty":false,"env":{"APS5_CAPTURE_UNPROVEN_PENDING":"1","APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 0:20","first_present":4805,"ms":20123.912},"presents":130,"frame_ms":{"p50":152.206,"p90":166.180,"p99":190.679,"max":221.704},"gpu_busy_ms_per_present":34.777,"worker_busy_pct":{"queue worker 0x0":99.072,"queue worker 0x23":99.853},"phase_totals_ms":{"Driver.Completion":8.774,"Driver.Dispatch":11044.863,"Driver.Dispatch.capture_resources":461.631,"Driver.Dispatch.decode_key_device_setup":113.191,"Driver.Dispatch.lookup_cache":99.373,"Driver.Dispatch.materialize":112.393,"Driver.Dispatch.prepared_invocation":83.741,"Driver.Draw":2314.959,"Driver.Draw.device_setup":48.597,"Driver.Draw.draw_enqueued":343.686,"Driver.Draw.post_compile_prepare":18.174,"Driver.Draw.prepare":134.186,"Driver.Draw.shader_compile_and_link":1751.783,"Driver.EndSubmission":323.513,"Driver.Packet":39699.190,"Driver.Packet.device_lock":42.749,"Driver.Packet.dispatch":18634.454,"Driver.Packet.draw":2325.982,"Driver.Packet.execute":152.285,"Driver.Packet.flip_flush":0.376,"Driver.Packet.flush_between_packets":299.229,"Driver.Packet.memory_wait":16958.491,"Driver.Packet.pipeline_drain":841.079,"Driver.Packet.pipeline_prepare":65.882,"Driver.Packet.prepare_memory":87.326,"Driver.Packet.rendering_wait":0.194,"Driver.Present":108.799,"Driver.Present.acquire_image":2.477,"Driver.Present.device_setup":0.115,"Driver.Present.gpu_mutex_wait":1.116,"Driver.Present.inflight_wait":0.452,"Driver.Present.present_display_buffer":20.972,"Driver.Present.queue_present":77.047,"Driver.Present.release_and_callback":0.165,"Driver.Present.render_fence_wait":5.992,"Driver.Present.resize":0.336,"Driver.Present.validate":0.043,"Driver.Suspend":0.030,"GpuMutex.wait.copy":7.784,"GpuMutex.wait.dispatch":1183.375,"GpuMutex.wait.draw":231.373,"GpuMutex.wait.end":182.333,"GpuMutex.wait.fill":104.878,"GpuMutex.wait.flush":16.225,"GpuMutex.wait.hook":2459.968,"GpuMutex.wait.indirect":43.897,"GpuMutex.wait.label":304.996,"GpuMutex.wait.other":86.925,"GpuMutex.wait.present":0.783,"GpuMutex.wait.wait":12.314,"Graphics.Draw":7911.797,"Graphics.Draw.draw_and_resource_release":7329.288,"Graphics.Draw.index_upload":172.089,"Graphics.Draw.validate":124.962,"Graphics.Draw.vertex_upload":271.469,"Graphics.DrawWithRecipe":227.558,"Graphics.DrawWithRecipe.draw_and_resource_release":166.504,"Graphics.DrawWithRecipe.index_upload":0.073,"Graphics.DrawWithRecipe.validate":0.832,"Graphics.DrawWithRecipe.vertex_upload":0.524,"Graphics.Submit":0.325,"Graphics.Submit.command_end":0.028,"Graphics.Submit.queue_submit":0.291,"Graphics.Wait":7.873,"Graphics.Wait.fence_wait":7.662,"Recorder.Reap":207.990,"Recorder.Submit":878.430,"Recorder.Sync":387.631,"Recorder.WaitSerial":993.227,"Resources.Complete":92.280,"Resources.Prepare":75.516,"Shader.DrawStage":1559.408,"Shader.DrawStage.capture_resources":1177.897,"Shader.DrawStage.materialize":295.976,"Shader.DrawStage.prepared_invocation":79.039,"Shader.ResolveAbi":69.360,"Shader.ResolveGraphicsAbi":20.208,"Shader.ResolveGraphicsStagesAbi":90.901,"VideoOut.Flip":123.031,"VideoOut.Flip.completion_mutex_wait":0.174,"VideoOut.Flip.config_mutex_wait":0.017,"VideoOut.Flip.frame_limit":0.103,"VideoOut.Flip.notify_game":3.286,"VideoOut.Flip.present":110.638,"VideoOut.Flip.validate":0.208,"VideoOut.Flip.vblank_wait":0.131,"VideoOut.Flip.window_prepare":0.305,"VideoOut.Flip.window_title":8.069,"VideoOut.Readiness":0.392,"VideoOut.Readiness.locks_validate":0.158,"Vulkan.Acquire":2.276,"Vulkan.Acquire.acquire_fence_wait":0.287,"Vulkan.Acquire.acquire_image":1.572,"Vulkan.Acquire.fence_reset":0.287,"Vulkan.Acquire.retired_swapchains":0.073,"Vulkan.Dispatch":5115.651,"Vulkan.Dispatch.command_record":449.745,"Vulkan.Dispatch.shader_resources":4652.917,"Vulkan.DispatchRecipe":498.051,"Vulkan.DispatchRecipe.command_record":474.878,"Vulkan.DrawFromRecipe":228.360,"Vulkan.Present":10.163,"Vulkan.Present.command_record_scale":5.015,"Vulkan.Present.pixel_upload":0.461,"Vulkan.Present.queue_submit":4.554,"Vulkan.QueuePresent":76.768,"Vulkan.QueuePresent.queue_present":76.574,"Vulkan.Retire":6.060,"Vulkan.Retire.wait":4.032},"top_phases_ms_per_frame":{"Driver.Packet":305.378,"Driver.Packet.dispatch":143.342,"Driver.Packet.memory_wait":130.450,"Driver.Dispatch":84.960,"Graphics.Draw":60.860,"Graphics.Draw.draw_and_resource_release":56.379,"Vulkan.Dispatch":39.351,"Vulkan.Dispatch.shader_resources":35.792},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2569,"Graphics.Barrier.dcc-clear":4680,"Graphics.Barrier.dcc-keys":2080,"Graphics.Barrier.dispatch-lead":45274,"Graphics.Barrier.dispatch-trail":38956,"Graphics.Barrier.draw":23864,"Graphics.Barrier.fill":7982,"Graphics.Barrier.fill-clear":3640,"Graphics.Barrier.indirect-args":9459,"Graphics.Barrier.input-mirror":88,"Graphics.Barrier.label-run":43567,"Graphics.Barrier.present-blit":520,"Graphics.Barrier.shadow-publish":3904,"Graphics.Barrier.staging-in":14564,"Graphics.Barrier.staging-out":6382,"Graphics.Barrier.storage-upload":29926,"Graphics.Barrier.storage-writeback":42662,"Graphics.BarrierMerged.copy":489,"Graphics.BarrierMerged.dispatch-lead":12600,"Graphics.BarrierMerged.fill":2276,"Graphics.BarrierMerged.shadow-publish":3896,"Graphics.BarrierMerged.staging-in":4582,"Graphics.BarrierMerged.staging-out":6382,"Graphics.BarrierMerged.storage-writeback":12701,"Graphics.Copy":16435,"Graphics.Copy.bytes":40606550272,"Graphics.RenderPass":10634,"Graphics.RenderPass.Close.command":6841,"Graphics.RenderPass.Close.image":915,"Graphics.RenderPass.Close.new-batch":2878,"Graphics.RenderPass.Continued":22098},"trace_dropped":false,"trace":"aps5-trace-262be96458b9-50340.json.gz"} ``` This PR on the same base (`2f57ee27aa`), 138 presents in the window: ```json {"commit":"2f57ee27aaae","dirty":false,"env":{"APS5_CAPTURE_UNPROVEN_PENDING":"1","APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"0:20","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 0:20","first_present":4849,"ms":20019.281},"presents":138,"frame_ms":{"p50":141.776,"p90":161.548,"p99":179.646,"max":181.593},"gpu_busy_ms_per_present":36.835,"worker_busy_pct":{"queue worker 0x0":99.003,"queue worker 0x23":99.875},"phase_totals_ms":{"Driver.Completion":8.894,"Driver.Dispatch":11494.802,"Driver.Dispatch.capture_resources":465.217,"Driver.Dispatch.decode_key_device_setup":140.891,"Driver.Dispatch.lookup_cache":93.325,"Driver.Dispatch.materialize":123.156,"Driver.Dispatch.prepared_invocation":82.218,"Driver.Draw":2494.278,"Driver.Draw.device_setup":50.033,"Driver.Draw.draw_enqueued":369.772,"Driver.Draw.post_compile_prepare":19.436,"Driver.Draw.prepare":139.795,"Driver.Draw.shader_compile_and_link":1896.890,"Driver.EndSubmission":421.298,"Driver.Packet":39383.694,"Driver.Packet.device_lock":44.914,"Driver.Packet.dispatch":18417.999,"Driver.Packet.draw":2505.877,"Driver.Packet.execute":155.927,"Driver.Packet.flip_flush":0.378,"Driver.Packet.flush_between_packets":292.446,"Driver.Packet.memory_wait":16645.393,"Driver.Packet.pipeline_drain":837.495,"Driver.Packet.pipeline_prepare":66.562,"Driver.Packet.prepare_memory":89.207,"Driver.Packet.rendering_wait":0.210,"Driver.Present":129.739,"Driver.Present.acquire_image":2.645,"Driver.Present.device_setup":0.112,"Driver.Present.gpu_mutex_wait":0.696,"Driver.Present.inflight_wait":0.504,"Driver.Present.present_display_buffer":27.237,"Driver.Present.queue_present":91.600,"Driver.Present.release_and_callback":0.233,"Driver.Present.render_fence_wait":6.251,"Driver.Present.resize":0.314,"Driver.Present.validate":0.058,"Driver.Suspend":0.054,"GpuMutex.wait.copy":9.982,"GpuMutex.wait.dispatch":1259.858,"GpuMutex.wait.draw":211.824,"GpuMutex.wait.end":252.090,"GpuMutex.wait.fill":99.771,"GpuMutex.wait.flush":34.442,"GpuMutex.wait.hook":2725.017,"GpuMutex.wait.indirect":42.279,"GpuMutex.wait.label":321.350,"GpuMutex.wait.other":99.388,"GpuMutex.wait.present":0.336,"GpuMutex.wait.wait":10.899,"Graphics.Draw":7230.136,"Graphics.Draw.draw_and_resource_release":6670.817,"Graphics.Draw.index_upload":129.010,"Graphics.Draw.validate":127.290,"Graphics.Draw.vertex_upload":289.383,"Graphics.DrawWithRecipe":241.063,"Graphics.DrawWithRecipe.draw_and_resource_release":153.828,"Graphics.DrawWithRecipe.index_upload":0.101,"Graphics.DrawWithRecipe.validate":0.999,"Graphics.DrawWithRecipe.vertex_upload":0.604,"Graphics.Submit":0.181,"Graphics.Submit.command_end":0.019,"Graphics.Submit.queue_submit":0.158,"Graphics.Wait":6.230,"Graphics.Wait.fence_wait":6.051,"Recorder.Reap":147.743,"Recorder.Submit":953.998,"Recorder.Sync":627.251,"Recorder.WaitSerial":1123.507,"Resources.Complete":233.804,"Resources.Prepare":139.080,"Shader.DrawStage":1708.846,"Shader.DrawStage.capture_resources":1311.409,"Shader.DrawStage.materialize":310.040,"Shader.DrawStage.prepared_invocation":80.631,"Shader.ResolveAbi":79.937,"Shader.ResolveGraphicsAbi":20.827,"Shader.ResolveGraphicsStagesAbi":103.917,"VideoOut.Flip":147.576,"VideoOut.Flip.completion_mutex_wait":0.199,"VideoOut.Flip.config_mutex_wait":0.020,"VideoOut.Flip.frame_limit":0.105,"VideoOut.Flip.notify_game":4.145,"VideoOut.Flip.present":131.708,"VideoOut.Flip.validate":0.224,"VideoOut.Flip.vblank_wait":0.135,"VideoOut.Flip.window_prepare":0.328,"VideoOut.Flip.window_title":10.592,"VideoOut.Readiness":0.545,"VideoOut.Readiness.locks_validate":0.285,"Vulkan.Acquire":2.438,"Vulkan.Acquire.acquire_fence_wait":0.292,"Vulkan.Acquire.acquire_image":1.667,"Vulkan.Acquire.fence_reset":0.326,"Vulkan.Acquire.retired_swapchains":0.080,"Vulkan.Dispatch":5211.056,"Vulkan.Dispatch.command_record":463.644,"Vulkan.Dispatch.shader_resources":4733.385,"Vulkan.DispatchRecipe":535.768,"Vulkan.DispatchRecipe.command_record":508.361,"Vulkan.DrawFromRecipe":242.102,"Vulkan.Present":12.111,"Vulkan.Present.command_record_scale":5.969,"Vulkan.Present.pixel_upload":0.491,"Vulkan.Present.queue_submit":5.511,"Vulkan.QueuePresent":91.236,"Vulkan.QueuePresent.queue_present":91.026,"Vulkan.Retire":6.234,"Vulkan.Retire.wait":3.666},"top_phases_ms_per_frame":{"Driver.Packet":285.389,"Driver.Packet.dispatch":133.464,"Driver.Packet.memory_wait":120.619,"Driver.Dispatch":83.296,"Graphics.Draw":52.392,"Graphics.Draw.draw_and_resource_release":48.339,"Vulkan.Dispatch":37.761,"Vulkan.Dispatch.shader_resources":34.300},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2744,"Graphics.Barrier.dcc-clear":4968,"Graphics.Barrier.dcc-keys":2208,"Graphics.Barrier.dispatch-lead":47332,"Graphics.Barrier.dispatch-trail":41372,"Graphics.Barrier.draw":25685,"Graphics.Barrier.fill":8076,"Graphics.Barrier.fill-clear":3864,"Graphics.Barrier.indirect-args":10078,"Graphics.Barrier.input-mirror":95,"Graphics.Barrier.label-run":46063,"Graphics.Barrier.present-blit":552,"Graphics.Barrier.shadow-publish":6391,"Graphics.Barrier.staging-in":14905,"Graphics.Barrier.staging-out":6487,"Graphics.Barrier.storage-upload":30840,"Graphics.Barrier.storage-writeback":44547,"Graphics.BarrierMerged.copy":576,"Graphics.BarrierMerged.dispatch-lead":14196,"Graphics.BarrierMerged.fill":2422,"Graphics.BarrierMerged.shadow-publish":6305,"Graphics.BarrierMerged.staging-in":4556,"Graphics.BarrierMerged.staging-out":6487,"Graphics.BarrierMerged.storage-writeback":12956,"Graphics.Copy":17908,"Graphics.Copy.bytes":42895010432,"Graphics.RenderPass":11487,"Graphics.RenderPass.Close.command":7506,"Graphics.RenderPass.Close.image":1015,"Graphics.RenderPass.Close.new-batch":2966,"Graphics.RenderPass.Continued":23212},"trace_dropped":false,"trace":"aps5-trace-2f57ee27aaae-2448.json.gz"} ``` In-run A/B on this PR's build, `APS5_AB=10:APS5_PROVEN_OVERWRITE` from 150 s, phases after 200 s (Body Type): n 15 B-A +7.05 +- 0.42 presents/10 s (+11.1% +- 0.7) A 63.4 B 70.5. B turns the proof on: +11.1% +- 0.7. Traces, the two summary lines, `tools/trace_digest.py` output (`digest-mbase-po.txt`, `digest-m18369a.txt`) and the A/B phases: https://github.com/klosixgaming-arch/AnyPS5/releases/tag/perf-captures-2026-11-15 Cyberpunk 2077 (PPSA03974), the intro movie, 3200x1800, warm caches; Windows 11, RTX 5090 (driver 617.42), Ryzen 9 9950X3D. 2026-11-11. **In-run A/B on `a6a7c14dbc`** (`APS5_AB=10:APS5_PROVEN_OVERWRITE` from 80 s): the B phase beat both neighbouring A phases in all 8 pairs inside the movie. B vs neighbouring A: **+1.67 +- 0.15 presents per 10 s (SD 0.42, n 8), +3.4%**, with A at 48.8 and B at 50.5. The last pair straddles the end of the movie and is left out. An earlier A/B on the same code plus diagnostic counters gave +1.19 +- 0.12 (n 9), +2.5%, and again B won every pair. **In-run A/B on `d5a98f430b`** (after the review fixes, same settings, 10 pairs): **+0.86 +- 0.21 presents per 10 s (SD 0.67), +2.2%**, with A at 38.6 and B at 39.4. B was ahead in 9 of 10 pairs. The overall rate was lower in this run than in the one above. **Separate runs do not resolve it.** On this machine, separate runs move by about 5% with the GPU time per present, because the desktop compositor took 25-50% of the GPU's 3D engine tonight. Five separate runs of this commit (movie windows, presents per 10 s): | run | switch | presents per 10 s | GPU ms per present | `Recorder.Sync` per present | |---|---|---|---|---| | `main` `17fec48224` | - | 48.1 | 43.3-45.4 | 39.7 | | this PR | off | 47.9 | 42.1-44.4 | 43.2 | | this PR | on | 45.6 | 43.5-46.0 | 44.1 | | this PR | off | 43.8 | 46.0-48.5 | 46.2 | | this PR | on | 47.1 | 43.5-45.8 | 42.4 | | this PR (summary line below) | on | 45.0 | 44.2-46.6 | 45.1 | The summary lines below are separate runs, so they carry that noise. The in-run A/B is the number to go by. **Summary lines of `main` and of this PR.** Same machine and session, with only the capture switches (`APS5_TRACE_SECONDS=60:10`, `APS5_TRACE_SUMMARY_EVERY=10`, `APS5_TRACE_EVENTS=1048576`), plus `APS5_PROVEN_OVERWRITE=1` on this PR. Traces, all summary lines, the A/B splits and the frame sheets: https://github.com/klosixgaming-arch/AnyPS5/releases/tag/perf-captures-2026-11-11 `main` `17fec48224`: ```json {"commit":"17fec482248b","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":382,"ms":10035.302},"presents":48,"frame_ms":{"p50":208.145,"p90":218.537,"p99":224.709,"max":224.709},"gpu_busy_ms_per_present":44.976,"worker_busy_pct":{"queue worker 0x0":99.523,"queue worker 0x23":99.864},"top_phases_ms_per_frame":{"Driver.Packet":405.930,"Driver.Packet.dispatch":197.113,"Driver.Packet.memory_wait":183.662,"Driver.Dispatch":139.957,"Vulkan.Dispatch":94.447,"Vulkan.Dispatch.shader_resources":89.724,"Graphics.Draw":60.683,"Graphics.Draw.draw_and_resource_release":59.634},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-17fec482248b-45764.json.gz"} ``` this PR, `a6a7c14dbc`, with `APS5_PROVEN_OVERWRITE=1`: ```json {"commit":"a6a7c14dbcff","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":370,"ms":10151.654},"presents":46,"frame_ms":{"p50":219.565,"p90":232.724,"p99":235.362,"max":235.362},"gpu_busy_ms_per_present":44.303,"worker_busy_pct":{"queue worker 0x0":99.543,"queue worker 0x23":99.809},"top_phases_ms_per_frame":{"Driver.Packet":428.153,"Driver.Packet.dispatch":209.196,"Driver.Packet.memory_wait":194.250,"Driver.Dispatch":144.171,"Vulkan.Dispatch":99.074,"Vulkan.Dispatch.shader_resources":95.174,"Graphics.Draw":62.959,"Graphics.Draw.draw_and_resource_release":61.828},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a6a7c14dbcff-45720.json.gz"} ``` **What it drops.** A diagnostic build counted, per 10 s of the movie: - about 440 claimed storage lookups; - 24k units of 64 KiB dropped instead of written back. Before the DCC rule above, the claims dropped only about 48 units, because 310 of the 660 pending images they touched have DCC. The proof covers the top programs by takeover traffic that I checked by IR dump. It refuses the others, which a census showed hold about 40% of the units: - covered: a copy-rectangle kernel with user-data offset and size, a 64-lane kernel with four A16 stores per lane, a 16x16 clear, and plain global-id stores; - refused: a read-modify-write of the same image, a ballot-predicated store, tile-list coordinates, atomics, and LDS-derived coordinates. **Pictures.** Frames dumped with the switch on (every 150th frame): the logos, the legal screens, six scenes of the intro movie and the title render correctly. The red streaks over one legal screen are the game's transition effect; a dump with the switch off shows the same streaks over the CD PROJEKT RED logo. Both sheets are in the release. **Tests** (Windows, RTX 5090) on `d5a98f430b`: - New `shader_image_overwrite_proof` (16 cases): a global-id store, two stores per thread, a user-data rectangle, packed A16 coordinates, and an exec-zero skip on the store's mask are proved. A bound whose term wraps below zero for the first lanes, a second read of the image, a tile with gaps, a lane guard, a bound ahead of the coordinate, a 16-bit truncation past 65535, both axes on one group axis, a scalar branch and a skip on another mask are refused. `ImageOverwriteCovers` rejects a grid with no groups on an axis, a partial group on an axis a full-groups proof needs whole, a short grid, an offset, a short size, a size register past the dispatch's user data and packed coordinates past 65535. Removing the coverage, alias, bound, branch or axis check fails it. - New `agc_storage_discard_covered`: `DiscardPendingCovered` drops only the 64 KiB units wholly inside the covered range, keeps the unit the range ends in, and drops nothing while another image over the range is being stored. Removing the flushing guard or dropping every touched unit fails it. - Unchanged and passing: `agc_runtime_switches`, `agc_runtime_switches_refused`, `agc_storage_clear_hand_over`, `agc_driver_storage_one_slice_alias`, `agc_driver_own_refresh_repack_alias`, `agc_driver_storage_write_back_no_window`, `agc_driver_ordered_refresh_failure`, `agc_driver_depth_clear_hle`, `agc_driver_copy_surface_bytes`. <details><summary>trace_digest.py, main 17fec48224</summary> **seconds 60:10** from present 382: 48 presents, frame p50 208.1 / p90 218.5 / p99 224.7 / max 224.7 ms, GPU busy 45.0 ms per present NVIDIA GeForce RTX 5090, NVIDIA 617.42, Windows 10.0.26200, 3200x1800, commit 17fec482248b, dropped: no ```json {"commit":"17fec482248b","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":382,"ms":10035.302},"presents":48,"frame_ms":{"p50":208.145,"p90":218.537,"p99":224.709,"max":224.709},"gpu_busy_ms_per_present":44.976,"worker_busy_pct":{"queue worker 0x0":99.523,"queue worker 0x23":99.864},"top_phases_ms_per_frame":{"Driver.Packet":405.93,"Driver.Packet.dispatch":197.113,"Driver.Packet.memory_wait":183.662,"Driver.Dispatch":139.957,"Vulkan.Dispatch":94.447,"Vulkan.Dispatch.shader_resources":89.724,"Graphics.Draw":60.683,"Graphics.Draw.draw_and_resource_release":59.634},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-17fec482248b-45764.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 429: 224.7 ms at 9811 ms: Driver.Packet (queue worker 0x0) 212.4, Driver.Packet.dispatch (queue worker 0x0) 182.7, Driver.Dispatch (queue worker 0x0) 126.7, Driver.Packet (queue worker 0x23) 105.4 - present 417: 223.6 ms at 7283 ms: Driver.Packet (queue worker 0x23) 221.1, Driver.Packet (queue worker 0x0) 211.7, Driver.Packet.memory_wait (queue worker 0x23) 188.0, Driver.Packet.dispatch (queue worker 0x0) 179.5 - present 413: 222.0 ms at 6422 ms: Driver.Packet (queue worker 0x23) 217.2, Driver.Packet (queue worker 0x0) 209.8, Driver.Packet.memory_wait (queue worker 0x23) 187.1, Driver.Packet.dispatch (queue worker 0x0) 179.8 - present 382: 219.5 ms at 0 ms: Driver.Packet (queue worker 0x23) 217.3, Driver.Packet (queue worker 0x0) 206.8, Driver.Packet.memory_wait (queue worker 0x23) 182.8, Driver.Packet.dispatch (queue worker 0x0) 176.6 - present 428: 218.5 ms at 9592 ms: Driver.Packet (queue worker 0x23) 214.8, Driver.Packet (queue worker 0x0) 206.3, Driver.Packet.memory_wait (queue worker 0x23) 182.1, Driver.Packet.dispatch (queue worker 0x0) 175.0 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 429: 224.7 ms at 9811 ms, persistence 25.4 ms - present 417: 223.6 ms at 7283 ms, persistence 20.7 ms - present 382: 219.5 ms at 0 ms, persistence 20.2 ms - present 405: 218.5 ms at 4779 ms, persistence 18.7 ms - present 387: 217.4 ms at 1039 ms, persistence 17.8 ms - present 389: 216.7 ms at 1458 ms, persistence 15.0 ms - present 398: 217.9 ms at 3308 ms, persistence 14.4 ms - present 413: 222.0 ms at 6422 ms, persistence 10.8 ms - present 421: 213.7 ms at 8134 ms, persistence 8.4 ms - present 393: 207.2 ms at 2280 ms, persistence 6.0 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.1 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x0 | 182.2 (87 %) | 22.5 (11 %) | 4.4 | 12.7 | Driver.Packet 198.4, Driver.EndSubmission 6.3 | | draw committer | 65.4 (31 %) | 11.7 (6 %) | 132.0 | 1.5 | Graphics.Draw 60.7, Vulkan.DrawFromRecipe 8.4 | | title | 0.0 (0 %) | 0.1 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 1.1 (1 %) | 0.0 (0 %) | 207.9 | 0.1 | VideoOut.Flip 1.2 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.1 (0 %) | 209.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.1 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 209.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x23 | 19.0 (9 %) | 187.0 (89 %) | 3.1 | 2.3 | Driver.Packet 201.4, Driver.EndSubmission 4.6 | | gpu | 44.1 (21 %) | 0.0 (0 %) | 165.0 | 0.0 | batch 44.1 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 399.8, Driver.Packet.dispatch 196.9, Driver.Packet.memory_wait 181.4, Driver.Dispatch 139.5, Vulkan.Dispatch 94.0, Vulkan.Dispatch.shader_resources 89.2, Graphics.Draw 60.7, Graphics.Draw.draw_and_resource_release 59.6, batch 44.1, Recorder.Sync 38.1 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x23) 123.9 ms at 1139 ms, present 387 - Driver.Packet.memory_wait (queue worker 0x23) 123.5 ms at 7390 ms, present 417 - Driver.Packet.memory_wait (queue worker 0x23) 122.2 ms at 4881 ms, present 405 - Driver.Packet.memory_wait (queue worker 0x23) 121.4 ms at 3410 ms, present 398 - Driver.Packet.memory_wait (queue worker 0x23) 120.1 ms at 8021 ms, present 420 - Driver.Packet.memory_wait (queue worker 0x23) 120.0 ms at 9699 ms, present 428 - Driver.Packet.memory_wait (queue worker 0x23) 119.7 ms at 8233 ms, present 421 - Driver.Packet.memory_wait (queue worker 0x23) 119.3 ms at 1562 ms, present 389 - Driver.Packet.memory_wait (queue worker 0x23) 119.1 ms at 9479 ms, present 427 - Driver.Packet.memory_wait (queue worker 0x23) 118.6 ms at 6530 ms, present 413 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 26958: 11.5 ms at 1176 ms, present 387: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.9, Driver.Packet.dispatch (queue worker 0x0) 12.9, Driver.Dispatch (queue worker 0x0) 12.8, Vulkan.Dispatch (queue worker 0x0) 12.3 - batch 28529: 11.5 ms at 3874 ms, present 400: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 13.1, Driver.Packet.dispatch (queue worker 0x0) 13.1, Driver.Dispatch (queue worker 0x0) 13.0, Vulkan.Dispatch (queue worker 0x0) 12.7 - batch 30437: 11.3 ms at 7208 ms, present 416: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.7, Driver.Packet.dispatch (queue worker 0x0) 12.7, Driver.Dispatch (queue worker 0x0) 12.7, Vulkan.Dispatch (queue worker 0x0) 12.3 - batch 30918: 11.2 ms at 8062 ms, present 420: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 13.5, Driver.Packet.dispatch (queue worker 0x0) 13.5, Driver.Dispatch (queue worker 0x0) 13.4, Vulkan.Dispatch (queue worker 0x0) 13.0 - batch 26593: 11.0 ms at 553 ms, present 384: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.9, Driver.Packet.dispatch (queue worker 0x0) 12.9, Driver.Dispatch (queue worker 0x0) 12.8, Vulkan.Dispatch (queue worker 0x0) 12.5 </details> <details><summary>trace_digest.py, this PR a6a7c14dbc with APS5_PROVEN_OVERWRITE=1</summary> **seconds 60:10** from present 370: 46 presents, frame p50 219.6 / p90 232.7 / p99 235.4 / max 235.4 ms, GPU busy 44.3 ms per present NVIDIA GeForce RTX 5090, NVIDIA 617.42, Windows 10.0.26200, 3200x1800, commit a6a7c14dbcff, dropped: no ```json {"commit":"a6a7c14dbcff","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROVEN_OVERWRITE":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"60:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5090","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","cpu":"AMD Ryzen 9 9950X3D 16-Core Processor","cpu_threads":32,"memory_mib":194197,"title_id":"PPSA03974","title":"Cyberpunk 2077","content_version":"02.120.000","resolution":"3200x1800","window":{"spec":"seconds 60:10","first_present":370,"ms":10151.654},"presents":46,"frame_ms":{"p50":219.565,"p90":232.724,"p99":235.362,"max":235.362},"gpu_busy_ms_per_present":44.303,"worker_busy_pct":{"queue worker 0x0":99.543,"queue worker 0x23":99.809},"top_phases_ms_per_frame":{"Driver.Packet":428.153,"Driver.Packet.dispatch":209.196,"Driver.Packet.memory_wait":194.25,"Driver.Dispatch":144.171,"Vulkan.Dispatch":99.074,"Vulkan.Dispatch.shader_resources":95.174,"Graphics.Draw":62.959,"Graphics.Draw.draw_and_resource_release":61.828},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a6a7c14dbcff-45720.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 373: 235.4 ms at 689 ms: Driver.Packet (queue worker 0x23) 224.7, Driver.Packet (queue worker 0x0) 223.1, Driver.Packet.memory_wait (queue worker 0x23) 195.4, Driver.Packet.dispatch (queue worker 0x0) 187.4 - present 372: 235.0 ms at 454 ms: Driver.Packet (queue worker 0x23) 227.0, Driver.Packet (queue worker 0x0) 222.1, Driver.Packet.memory_wait (queue worker 0x23) 200.9, Driver.Packet.dispatch (queue worker 0x0) 193.9 - present 399: 234.3 ms at 6433 ms: Driver.Packet (queue worker 0x23) 227.0, Driver.Packet (queue worker 0x0) 223.7, Driver.Packet.memory_wait (queue worker 0x23) 198.9, Driver.Packet.dispatch (queue worker 0x0) 193.2 - present 415: 234.1 ms at 9918 ms: Driver.Packet (queue worker 0x0) 224.8, Driver.Packet.dispatch (queue worker 0x0) 195.5, Driver.Dispatch (queue worker 0x0) 127.6, Driver.Packet (queue worker 0x23) 101.5 - present 395: 232.7 ms at 5557 ms: Driver.Packet (queue worker 0x23) 225.2, Driver.Packet (queue worker 0x0) 223.3, Driver.Packet.memory_wait (queue worker 0x23) 196.5, Driver.Packet.dispatch (queue worker 0x0) 194.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 373: 235.4 ms at 689 ms, persistence 32.6 ms - present 415: 234.1 ms at 9918 ms, persistence 31.4 ms - present 399: 234.3 ms at 6433 ms, persistence 22.2 ms - present 395: 232.7 ms at 5557 ms, persistence 20.1 ms - present 387: 231.2 ms at 3791 ms, persistence 15.0 ms - present 407: 229.4 ms at 8209 ms, persistence 11.7 ms - present 379: 227.9 ms at 2027 ms, persistence 9.0 ms - present 403: 226.2 ms at 7323 ms, persistence 7.2 ms - present 411: 215.5 ms at 9065 ms, persistence 6.5 ms - present 375: 225.1 ms at 1144 ms, persistence 5.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 220.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 194.8 (88 %) | 21.5 (10 %) | 4.4 | 12.8 | Driver.Packet 209.6, Driver.EndSubmission 6.7 | | draw committer | 72.8 (33 %) | 11.9 (5 %) | 136.0 | 1.6 | Graphics.Draw 62.9, Vulkan.DrawFromRecipe 13.8 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | presenter | 1.3 (1 %) | 0.0 (0 %) | 219.4 | 0.1 | VideoOut.Flip 1.3 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.1 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.6 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 220.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x23 | 18.1 (8 %) | 199.1 (90 %) | 3.5 | 2.3 | Driver.Packet 212.2, Driver.EndSubmission 5.0 | | gpu | 45.3 (21 %) | 0.0 (0 %) | 175.4 | 0.0 | batch 45.3 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 421.8, Driver.Packet.dispatch 209.0, Driver.Packet.memory_wait 191.7, Driver.Dispatch 143.7, Vulkan.Dispatch 98.7, Vulkan.Dispatch.shader_resources 94.6, Graphics.Draw 62.9, Graphics.Draw.draw_and_resource_release 61.8, batch 45.3, Recorder.Sync 39.5 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x23) 135.6 ms at 563 ms, present 372 - Driver.Packet.memory_wait (queue worker 0x23) 134.6 ms at 3448 ms, present 385 - Driver.Packet.memory_wait (queue worker 0x23) 130.4 ms at 334 ms, present 371 - Driver.Packet.memory_wait (queue worker 0x23) 129.6 ms at 5669 ms, present 395 - Driver.Packet.memory_wait (queue worker 0x23) 129.5 ms at 108 ms, present 370 - Driver.Packet.memory_wait (queue worker 0x23) 129.4 ms at 2135 ms, present 379 - Driver.Packet.memory_wait (queue worker 0x23) 129.1 ms at 5442 ms, present 394 - Driver.Packet.memory_wait (queue worker 0x23) 128.9 ms at 2360 ms, present 380 - Driver.Packet.memory_wait (queue worker 0x23) 128.8 ms at 3903 ms, present 387 - Driver.Packet.memory_wait (queue worker 0x23) 128.1 ms at 6548 ms, present 399 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 32632: 10.8 ms at 10060 ms, present 415: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.9, Driver.Packet.dispatch (queue worker 0x0) 10.9, Driver.Dispatch (queue worker 0x0) 10.9, Vulkan.Dispatch (queue worker 0x0) 10.4 - batch 28218: 10.7 ms at 2395 ms, present 380: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.0, Driver.Packet.dispatch (queue worker 0x0) 10.0, Driver.Dispatch (queue worker 0x0) 9.9, Vulkan.Dispatch (queue worker 0x0) 9.7 - batch 29220: 10.6 ms at 4161 ms, present 388: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 9.8, Driver.Packet.dispatch (queue worker 0x0) 9.8, Driver.Dispatch (queue worker 0x0) 9.7, Vulkan.Dispatch (queue worker 0x0) 9.3 - batch 31494: 10.6 ms at 8130 ms, present 406: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 9.4, Driver.Packet.dispatch (queue worker 0x0) 9.4, Driver.Dispatch (queue worker 0x0) 9.3, Vulkan.Dispatch (queue worker 0x0) 8.9 - batch 27207: 10.5 ms at 601 ms, present 372: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 10.8, Driver.Packet.dispatch (queue worker 0x0) 10.8, Driver.Dispatch (queue worker 0x0) 10.7, Vulkan.Dispatch (queue worker 0x0) 10.2 </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (10.0.26200) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-12 14:49:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T14:49:35Z.

Review: COMMENTED


Reviewed proven-overwrite pending discard — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Head: d5a98f430b99dd1f3e65c3ae4608b0a8d5125765 (PR 18369, base main). No build and no test run in this review.

Read: the diff for all 21 files in files.json reviewed. Eighteen were read in full from the review folder. Three large files (ShaderResources.cpp, Texture.cpp, tests/Recorder.cpp) were read only through their hunks in diff.patch, plus the ranges of Texture.cpp listed below.

Reader calls at head:

repo_read.py search storesWhole
repo_read.py search partialThreads
repo_read.py search readUserData
repo_read.py search COMPUTE_START
repo_read.py search pendingUnitsOverlap
repo_read.py cat core/shader/recompiler/CMakeLists.txt 244 262
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 4810 4835
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 5040 5070
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 5860 5880
repo_read.py cat core/shader/recompiler/ShaderDiskCache.cpp 1 40
repo_read.py search Revision

Results

Check Result Note
Build not run Windows and GPU-bound; not built here
shader_image_overwrite_proof not run Author-reported, Windows, RTX 5090
agc_storage_discard_covered not run Author-reported; skipped (exit 77) without host imports
Diff read passed 18 files in full, 3 by hunk

Negative control

Not run. The PR reports removal experiments for its checks (author-reported). I did not repeat them.

Findings

Blocking

None.

Non-blocking

  1. core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp:485: the gate reads registers 0x204, 0x205 and 0x206 as bare numbers. The proof assumes a zero dispatch origin, so this gate is what keeps the grid-coverage claim sound. Naming these offsets where they are used would let a reader check the gate without the register map. Failure scenario: if one of these offsets were not the COMPUTE_START register the gate is meant to test, a non-zero origin would pass the check and the driver would drop pending results over texels the dispatch never writes. I did not confirm the register meaning.

  2. core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:4277: pendingUnitsOverlap repeats the per-unit overlap test that pendingUnitInside (Texture.cpp:4825 at head, outside this diff) runs over the same layerPending, layerBegin and layerBytes. This is a maintenance risk, not a current defect: a later change to unit bounds in one copy and not the other would make the lookups and the flush pretest disagree about whether an image holds results over a range.

Not verified

  • Build and every test named in the PR: not run here. The PR's runs are author-reported on Windows with an RTX 5090 (driver 617.42). Nothing ran on Linux.
  • Prover soundness beyond the hunks read: I read the bound, alias and coverage logic, but not the IR opcode semantics or GetRdnaImageAddressComponentLayout.
  • Meaning of registers 0x204–0x206 as COMPUTE_START offsets: not checked, no register header read.
  • Shader disk cache invalidation: the static_assert sizes and fieldCount changes are in the diff. How stale entries are rejected (ShaderCacheSourceVersion.hpp, which is included by ShaderDiskCache.cpp) was not read.
  • Lock state at Texture.cpp:5068 when the test hook runs: if pending.mutex is held there, the test would deadlock. Not checked.
  • ShaderResources.cpp and tests/Recorder.cpp: read by hunk only; surrounding code not read.
  • Performance: the in-run A/B figures (+1.67 ± 0.15 and +0.86 ± 0.21 presents per 10 s) and the external capture release were not checked. The PR's separate-run table does not show a consistent on/off gain (for example 45.6 on against 47.9 off, and 47.1 on against 43.8 off). The author says so.

Sources

To get this to a good state

Nothing is required.

Optional: the two non-blocking points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5876477257 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5876477257). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T14:49:35Z. **Review:** COMMENTED --- # Reviewed proven-overwrite pending discard — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Head: `d5a98f430b99dd1f3e65c3ae4608b0a8d5125765` (PR 18369, base `main`). No build and no test run in this review. Read: the diff for all 21 files in `files.json` `reviewed`. Eighteen were read in full from the review folder. Three large files (`ShaderResources.cpp`, `Texture.cpp`, `tests/Recorder.cpp`) were read only through their hunks in `diff.patch`, plus the ranges of `Texture.cpp` listed below. Reader calls at head: ``` repo_read.py search storesWhole repo_read.py search partialThreads repo_read.py search readUserData repo_read.py search COMPUTE_START repo_read.py search pendingUnitsOverlap repo_read.py cat core/shader/recompiler/CMakeLists.txt 244 262 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 4810 4835 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 5040 5070 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp 5860 5880 repo_read.py cat core/shader/recompiler/ShaderDiskCache.cpp 1 40 repo_read.py search Revision ``` ## Results | Check | Result | Note | |---|---|---| | Build | not run | Windows and GPU-bound; not built here | | `shader_image_overwrite_proof` | not run | Author-reported, Windows, RTX 5090 | | `agc_storage_discard_covered` | not run | Author-reported; skipped (exit 77) without host imports | | Diff read | passed | 18 files in full, 3 by hunk | ## Negative control Not run. The PR reports removal experiments for its checks (author-reported). I did not repeat them. ## Findings **Blocking** None. **Non-blocking** 1. `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp:485`: the gate reads registers `0x204`, `0x205` and `0x206` as bare numbers. The proof assumes a zero dispatch origin, so this gate is what keeps the grid-coverage claim sound. Naming these offsets where they are used would let a reader check the gate without the register map. Failure scenario: if one of these offsets were not the COMPUTE_START register the gate is meant to test, a non-zero origin would pass the check and the driver would drop pending results over texels the dispatch never writes. I did not confirm the register meaning. 2. `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:4277`: `pendingUnitsOverlap` repeats the per-unit overlap test that `pendingUnitInside` (`Texture.cpp:4825` at head, outside this diff) runs over the same `layerPending`, `layerBegin` and `layerBytes`. This is a maintenance risk, not a current defect: a later change to unit bounds in one copy and not the other would make the lookups and the flush pretest disagree about whether an image holds results over a range. ## Not verified - Build and every test named in the PR: not run here. The PR's runs are author-reported on Windows with an RTX 5090 (driver 617.42). Nothing ran on Linux. - Prover soundness beyond the hunks read: I read the bound, alias and coverage logic, but not the IR opcode semantics or `GetRdnaImageAddressComponentLayout`. - Meaning of registers `0x204`–`0x206` as COMPUTE_START offsets: not checked, no register header read. - Shader disk cache invalidation: the `static_assert` sizes and `fieldCount` changes are in the diff. How stale entries are rejected (`ShaderCacheSourceVersion.hpp`, which is included by `ShaderDiskCache.cpp`) was not read. - Lock state at `Texture.cpp:5068` when the test hook runs: if `pending.mutex` is held there, the test would deadlock. Not checked. - `ShaderResources.cpp` and `tests/Recorder.cpp`: read by hunk only; surrounding code not read. - Performance: the in-run A/B figures (+1.67 ± 0.15 and +0.86 ± 0.21 presents per 10 s) and the external capture release were not checked. The PR's separate-run table does not show a consistent on/off gain (for example 45.6 on against 47.9 off, and 47.1 on against 43.8 off). The author says so. ## Sources - https://github.com/boykopovar/AnyPS5/blob/d5a98f430b99dd1f3e65c3ae4608b0a8d5125765/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L485 - https://github.com/boykopovar/AnyPS5/blob/d5a98f430b99dd1f3e65c3ae4608b0a8d5125765/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L4277 ## To get this to a good state Nothing is required. Optional: the two non-blocking points above.
MarcZX10 commented 2026-11-14 01:48:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T01:48:35Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed changes add an opt-in compute overwrite proof and use it to discard pending storage image results; I found no verified blocking defect, but could not run the checks needed for a formal approval.

What I ran

Reviewed head 66520ff24fce99c7b58a08b18fd4a26e7caffeac using the prepared diff and repo_read.py for changed code and targeted context. No build or tests were run.

Results

Check Result Note
Diff and source review passed Reviewed all listed changed files
Build and tests not run No execution available
Runtime behavior not run Author-reported results only

Negative control

Not run. The description reports negative-control tests, but I did not run them on this head.

Findings

Blocking

None verified.

Non-blocking

None.

Sources

Not verified

No build, unit tests, or console run was performed. The review bundle excluded the full text of ShaderResources.cpp, Texture.cpp, and Recorder.cpp; I read their relevant changed hunks and targeted source ranges through repo_read.py. The other 18 changed files were included in the bundle and reviewed.

To get this to a good state

Nothing is required. Consider running the reported build and tests on this head before relying on the optimization in a release.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5900582373 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5900582373). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T01:48:35Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed changes add an opt-in compute overwrite proof and use it to discard pending storage image results; I found no verified blocking defect, but could not run the checks needed for a formal approval. ## What I ran Reviewed head `66520ff24fce99c7b58a08b18fd4a26e7caffeac` using the prepared diff and `repo_read.py` for changed code and targeted context. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Reviewed all listed changed files | | Build and tests | not run | No execution available | | Runtime behavior | not run | Author-reported results only | ## Negative control Not run. The description reports negative-control tests, but I did not run them on this head. ## Findings ### Blocking None verified. ### Non-blocking None. ## Sources - [Overwrite proof implementation](https://github.com/boykopovar/AnyPS5/blob/66520ff24fce99c7b58a08b18fd4a26e7caffeac/core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp) - [Overwrite coverage check](https://github.com/boykopovar/AnyPS5/blob/66520ff24fce99c7b58a08b18fd4a26e7caffeac/core/shader/recompiler/ImageOverwrite.hpp) - [Pending storage discard](https://github.com/boykopovar/AnyPS5/blob/66520ff24fce99c7b58a08b18fd4a26e7caffeac/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp) ## Not verified No build, unit tests, or console run was performed. The review bundle excluded the full text of `ShaderResources.cpp`, `Texture.cpp`, and `Recorder.cpp`; I read their relevant changed hunks and targeted source ranges through `repo_read.py`. The other 18 changed files were included in the bundle and reviewed. ## To get this to a good state Nothing is required. Consider running the reported build and tests on this head before relying on the optimization in a release.
MarcZX10 commented 2026-11-15 09:44:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T09:44:18Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected proof and discard paths are consistent with the stated opt-in behavior; I could not complete a full review because three changed files were not available in full text and no checks were run here.

What I ran

Reviewed head daf1cf37e26b352460c6f3a808bb6b0c83b39bae using the prepared diff and pinned repository reader. No tests or build checks were run.

Results

Check Result Note
Diff and targeted code review passed Inspected proof, dispatch, alias, and discard paths
Build and tests not run No local execution was available

Findings

Blocking

None in the code inspected.

Non-blocking

None.

Not verified

Full text was read for 15 of 18 changed files. ShaderResources.cpp, Texture.cpp, and tests/Recorder.cpp were excluded from the review folder because they were too large; I read only targeted ranges of the first two through the reader. I did not read their remaining contents, and did not read the full text of tests/Recorder.cpp. Build, automated tests, and the reported hardware runs were not independently verified.

To get this to a good state

Nothing is required. Optional: include the excluded file text in a follow-up review bundle if a complete file-by-file approval is needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5910100370 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5910100370). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T09:44:18Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected proof and discard paths are consistent with the stated opt-in behavior; I could not complete a full review because three changed files were not available in full text and no checks were run here. ## What I ran Reviewed head `daf1cf37e26b352460c6f3a808bb6b0c83b39bae` using the prepared diff and pinned repository reader. No tests or build checks were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Inspected proof, dispatch, alias, and discard paths | | Build and tests | not run | No local execution was available | ## Findings ### Blocking None in the code inspected. ### Non-blocking None. ## Not verified Full text was read for 15 of 18 changed files. `ShaderResources.cpp`, `Texture.cpp`, and `tests/Recorder.cpp` were excluded from the review folder because they were too large; I read only targeted ranges of the first two through the reader. I did not read their remaining contents, and did not read the full text of `tests/Recorder.cpp`. Build, automated tests, and the reported hardware runs were not independently verified. ## To get this to a good state Nothing is required. Optional: include the excluded file text in a follow-up review bundle if a complete file-by-file approval is needed.
MarcZX10 commented 2026-11-16 11:00:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T11:00:59Z.

Review: COMMENTED


Reviewed — comments

The reviewed portions show a guarded overwrite optimization, but the review is incomplete because several changed files were not read and no checks were run.

What I ran

No commands or tests were run. I inspected the prepared diff and targeted source ranges at head bf4e6dc777af78f8d90861af5667fc3ad42ec537 using repo_read.py.

Results

Check Result Note
Diff inspection passed Prepared diff reviewed
Tests not run No test execution
Full-file review not run Some changed files were not read

Findings

Blocking

None identified in the portions reviewed.

Non-blocking

  • The title and description claim the proof checks detailed control-flow and address conditions. I inspected only part of the proof implementation and could not verify those claims end to end.

Sources

  • core/shader/recompiler/ImageOverwrite.hpp
  • core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp (lines 1–300)
  • core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp (lines 1510–1620)
  • core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp (lines 6300–6425)
  • review/description.md, review/commits.md, review/manifest.json, and review/diff.patch

Not verified

The full text of these changed files was not read: core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp. Other included changed files were not read in full either. No build, tests, or runtime checks were performed. files.json was not available through the reader; the changed-file listing reports these exclusions: none (too large for the review folder), as named above.

To get this to a good state

Nothing is required. Optional: complete the review of the remaining changed code and run the relevant tests before making a formal merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5918896330 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5918896330). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T11:00:59Z. **Review:** COMMENTED --- # Reviewed — comments The reviewed portions show a guarded overwrite optimization, but the review is incomplete because several changed files were not read and no checks were run. ## What I ran No commands or tests were run. I inspected the prepared diff and targeted source ranges at head `bf4e6dc777af78f8d90861af5667fc3ad42ec537` using `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff inspection | passed | Prepared diff reviewed | | Tests | not run | No test execution | | Full-file review | not run | Some changed files were not read | ## Findings ### Blocking None identified in the portions reviewed. ### Non-blocking - The title and description claim the proof checks detailed control-flow and address conditions. I inspected only part of the proof implementation and could not verify those claims end to end. ## Sources - `core/shader/recompiler/ImageOverwrite.hpp` - `core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp` (lines 1–300) - `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` (lines 1510–1620) - `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` (lines 6300–6425) - `review/description.md`, `review/commits.md`, `review/manifest.json`, and `review/diff.patch` ## Not verified The full text of these changed files was not read: `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`, and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`. Other included changed files were not read in full either. No build, tests, or runtime checks were performed. `files.json` was not available through the reader; the changed-file listing reports these exclusions: none (too large for the review folder), as named above. ## To get this to a good state Nothing is required. Optional: complete the review of the remaining changed code and run the relevant tests before making a formal merge decision.
MarcZX10 commented 2026-11-16 22:58:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T22:58:59Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: the overwrite proof can accept stores whose coordinates wrap in 32-bit arithmetic, allowing pending image data to be discarded even though the dispatch does not overwrite the corresponding texels.

What I ran

Reviewed head 48777e63b287a15e1a4ea7c9a6aeaa36440776ad using the prepared review bundle and targeted reads through repo_read.py. No build or tests were run.

Results

Check Result Note
Diff and description passed Reviewed prepared bundle
Proof and discard paths failed Found a coordinate-wrap proof gap
Build and tests not run No commands run

Findings

Blocking

  • core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp:604 — The proof checks the lane component is below 2^30, but does not ensure that tile * workgroupId + lane stays within 32-bit unsigned range. The same unchecked addition is accepted by Evaluate for IAdd32 at lines 225–236. For example, a store coordinate formed as globalInvocationId + 0x80000000 can wrap to the low image coordinates for high group IDs. With a suitable dispatch and bound, the lane coverage check can prove the low tile while other workgroups wrap onto it, leaving other texels untouched. ImageOverwriteCovers then accepts the claim and the driver may drop pending data in the claimed bytes. Reject coordinate expressions whose complete dispatched range can overflow, or model 32-bit wrap and prove coverage under the wrapped semantics.

Non-blocking

None.

Not verified

  • Build and test execution were not performed.
  • Full text was excluded from the bundle for ShaderResources.cpp, Texture.cpp, and Recorder.cpp; targeted sections of the first two and the changed test hunk in the diff were read. Other changed files whose full text was present in review/files/ were not all read. Files excluded by the bundle rule were identified from the manifest.
  • Physical-console behavior and the author-reported performance measurements were not independently verified.

To get this to a good state

Reject or safely model wraparound in overwrite coordinates, add a regression test for a coordinate that wraps at 32 bits, then rerun the proof tests and relevant driver tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5929414830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5929414830). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T22:58:59Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: the overwrite proof can accept stores whose coordinates wrap in 32-bit arithmetic, allowing pending image data to be discarded even though the dispatch does not overwrite the corresponding texels. ## What I ran Reviewed head `48777e63b287a15e1a4ea7c9a6aeaa36440776ad` using the prepared `review` bundle and targeted reads through `repo_read.py`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and description | passed | Reviewed prepared bundle | | Proof and discard paths | failed | Found a coordinate-wrap proof gap | | Build and tests | not run | No commands run | ## Findings ### Blocking - `core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp:604` — The proof checks the lane component is below `2^30`, but does not ensure that `tile * workgroupId + lane` stays within 32-bit unsigned range. The same unchecked addition is accepted by `Evaluate` for `IAdd32` at lines 225–236. For example, a store coordinate formed as `globalInvocationId + 0x80000000` can wrap to the low image coordinates for high group IDs. With a suitable dispatch and bound, the lane coverage check can prove the low tile while other workgroups wrap onto it, leaving other texels untouched. `ImageOverwriteCovers` then accepts the claim and the driver may drop pending data in the claimed bytes. Reject coordinate expressions whose complete dispatched range can overflow, or model 32-bit wrap and prove coverage under the wrapped semantics. ### Non-blocking None. ## Not verified - Build and test execution were not performed. - Full text was excluded from the bundle for `ShaderResources.cpp`, `Texture.cpp`, and `Recorder.cpp`; targeted sections of the first two and the changed test hunk in the diff were read. Other changed files whose full text was present in `review/files/` were not all read. Files excluded by the bundle rule were identified from the manifest. - Physical-console behavior and the author-reported performance measurements were not independently verified. ## To get this to a good state Reject or safely model wraparound in overwrite coordinates, add a regression test for a coordinate that wraps at 32 bits, then rerun the proof tests and relevant driver tests.
MarcZX10 commented 2026-11-17 15:03:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T15:03:11Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head 42b37fb97e (full 42b37fb97eeec9b0a071404bafd2da2b61a18498), base main.
  • Read description.md, commits.md, manifest.json, files.json and all of diff.patch (1968 lines), plus the house-rule sections of the ruling file.
  • Reader searches:
python3 repo_read.py search "version" core/shader/recompiler/ShaderDiskCache.cpp
python3 repo_read.py search "FormatVersion\s*=|SourceVersion\(\)\s*\{" core/shader/recompiler/ShaderDiskCache.cpp
python3 repo_read.py search "RuntimeSwitches.hpp" core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
  • Nothing was built or run here.

Results

Check Result Note
Diff read passed all hunks, 22 files
Full file text read not run diff hunks only
Build and tests not run see Not verified
Include check failed one duplicate include, non-blocking
Disk cache version not run see Not verified

Findings

Blocking

None.

Non-blocking

  1. core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:12 adds RuntimeSwitches.hpp a third time. The file already includes it at lines 7 and 10 at this head. Dropping the added line is the smallest fix.
  2. core/shader/recompiler/Recompiler.cpp:402 runs ProveImageOverwrites for every compute shader, also when APS5_PROVEN_OVERWRITE is unset, and the proof is written to the disk cache. The switch only gates the driver (OverwriteClaimFor, FindPending, ScanPending). If "off by default" should cover compile-time work too, gate the proof. The description gives no compile-time cost.
  3. The tests and the in-run A/B in the description were run on d5a98f430b. The reviewed head is 42b37fb97e. The named tests should be re-run on this head, or the author should say which later commits changed nothing they cover.

Not verified

  • Nothing was built or run. The test results above are the author's, on d5a98f430b, not on this head.
  • Full file text was not read. ShaderResources.cpp, Texture.cpp and tests/Recorder.cpp are too large for the review folder, and the other files were read only as diff hunks. Not checked: the callers of the changed functions, the locking around DiscardPendingCovered where refresh and PrepareCreation call it, and whether OverwriteDispatch() (thread-local) is set on the thread that resolves the bindings.
  • Disk cache: the layout changed (DescriptorBinding 920 to 944 bytes, ImageResource 108 to 244 bytes, decoder minimum sizes updated). I did not confirm that old caches are rejected. FormatVersion and SourceVersion() are used in ShaderDiskCache.cpp, but the search did not find where FormatVersion is set.
  • Proof soundness: I read ImageOverwriteProof.cpp and ImageOverwrite.hpp as diff only. I did not trace how the IR producers (GetBuiltin, MakeImageAddress) and the RDNA image decoder feed it.
  • Performance: the numbers are the author's. The captures at the release link were not checked.

Sources

Repository lines are at head 42b37fb97e. Performance captures are at the release link in the description, not checked.

To get this to a good state

Nothing is required. The non-blocking points above are optional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5940923985 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5940923985). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T15:03:11Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head `42b37fb97e` (full `42b37fb97eeec9b0a071404bafd2da2b61a18498`), base `main`. - Read `description.md`, `commits.md`, `manifest.json`, `files.json` and all of `diff.patch` (1968 lines), plus the house-rule sections of the ruling file. - Reader searches: ``` python3 repo_read.py search "version" core/shader/recompiler/ShaderDiskCache.cpp python3 repo_read.py search "FormatVersion\s*=|SourceVersion\(\)\s*\{" core/shader/recompiler/ShaderDiskCache.cpp python3 repo_read.py search "RuntimeSwitches.hpp" core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp ``` - Nothing was built or run here. ## Results | Check | Result | Note | |---|---|---| | Diff read | passed | all hunks, 22 files | | Full file text read | not run | diff hunks only | | Build and tests | not run | see Not verified | | Include check | failed | one duplicate include, non-blocking | | Disk cache version | not run | see Not verified | ## Findings **Blocking** None. **Non-blocking** 1. `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:12` adds `RuntimeSwitches.hpp` a third time. The file already includes it at lines 7 and 10 at this head. Dropping the added line is the smallest fix. 2. `core/shader/recompiler/Recompiler.cpp:402` runs `ProveImageOverwrites` for every compute shader, also when `APS5_PROVEN_OVERWRITE` is unset, and the proof is written to the disk cache. The switch only gates the driver (`OverwriteClaimFor`, `FindPending`, `ScanPending`). If "off by default" should cover compile-time work too, gate the proof. The description gives no compile-time cost. 3. The tests and the in-run A/B in the description were run on `d5a98f430b`. The reviewed head is `42b37fb97e`. The named tests should be re-run on this head, or the author should say which later commits changed nothing they cover. ## Not verified - Nothing was built or run. The test results above are the author's, on `d5a98f430b`, not on this head. - Full file text was not read. `ShaderResources.cpp`, `Texture.cpp` and `tests/Recorder.cpp` are too large for the review folder, and the other files were read only as diff hunks. Not checked: the callers of the changed functions, the locking around `DiscardPendingCovered` where `refresh` and `PrepareCreation` call it, and whether `OverwriteDispatch()` (thread-local) is set on the thread that resolves the bindings. - Disk cache: the layout changed (`DescriptorBinding` 920 to 944 bytes, `ImageResource` 108 to 244 bytes, decoder minimum sizes updated). I did not confirm that old caches are rejected. `FormatVersion` and `SourceVersion()` are used in `ShaderDiskCache.cpp`, but the search did not find where `FormatVersion` is set. - Proof soundness: I read `ImageOverwriteProof.cpp` and `ImageOverwrite.hpp` as diff only. I did not trace how the IR producers (`GetBuiltin`, `MakeImageAddress`) and the RDNA image decoder feed it. - Performance: the numbers are the author's. The captures at the release link were not checked. ## Sources Repository lines are at head `42b37fb97e`. Performance captures are at the release link in the description, not checked. ## To get this to a good state Nothing is required. The non-blocking points above are optional.
MarcZX10 commented 2026-11-18 02:51:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T02:51:30Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this draft review; the points below are optional.

What I ran

Reviewed head e702a6223b7609a80a003e21119b027f820c41e8 using the prepared review bundle and pinned reader tools. No build or tests were run.

Results

Check Result Note
Diff and targeted code review passed Inspected selected proof and discard paths
Build and tests not run Runtime behavior remains unverified

Findings

Blocking

None.

Non-blocking

  • Consider including test output for the new proof and pending-discard behavior before treating the performance and correctness claims as independently verified.

Not verified

The full added lines in ShaderResources.cpp, Texture.cpp, and Recorder.cpp were not read. Several other changed files were not inspected, including ImageOverwriteProof.cpp beyond selected ranges, ImageOverwriteProof tests beyond the displayed source, the disk-cache changes, and the build and documentation edits. The files excluded from the review folder as too large were read only through selected head ranges. No tests, build, or console behavior were verified.

Files read from the review bundle: description.md, commits.md, manifest.json, README.md, and selected ranges of diff.patch. Changed repository files read: Dispatch.cpp, ShaderResources.cpp, Texture.cpp, ImageOverwrite.hpp, ImageOverwriteProof.cpp, ImageOverwriteProof tests, and Recorder.cpp. files.json was unavailable; the changed-file inventory and exclusions were checked through the review-folder listing.

To get this to a good state

Nothing is required. Optionally run the new shader image-overwrite proof and AGC recorder tests and share the results.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950122654 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5950122654). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T02:51:30Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this draft review; the points below are optional. ## What I ran Reviewed head `e702a6223b7609a80a003e21119b027f820c41e8` using the prepared review bundle and pinned reader tools. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Inspected selected proof and discard paths | | Build and tests | not run | Runtime behavior remains unverified | ## Findings ### Blocking None. ### Non-blocking - Consider including test output for the new proof and pending-discard behavior before treating the performance and correctness claims as independently verified. ## Not verified The full added lines in `ShaderResources.cpp`, `Texture.cpp`, and `Recorder.cpp` were not read. Several other changed files were not inspected, including `ImageOverwriteProof.cpp` beyond selected ranges, `ImageOverwriteProof` tests beyond the displayed source, the disk-cache changes, and the build and documentation edits. The files excluded from the review folder as too large were read only through selected head ranges. No tests, build, or console behavior were verified. Files read from the review bundle: `description.md`, `commits.md`, `manifest.json`, `README.md`, and selected ranges of `diff.patch`. Changed repository files read: `Dispatch.cpp`, `ShaderResources.cpp`, `Texture.cpp`, `ImageOverwrite.hpp`, `ImageOverwriteProof.cpp`, `ImageOverwriteProof` tests, and `Recorder.cpp`. `files.json` was unavailable; the changed-file inventory and exclusions were checked through the review-folder listing. ## To get this to a good state Nothing is required. Optionally run the new shader image-overwrite proof and AGC recorder tests and share the results.
MarcZX10 commented 2026-11-19 20:42:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T20:42:56Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: fix the proof’s handling of wrapped unsigned bounds so it cannot authorize dropping pending image data for a shader that skips texels.

What I ran

Reviewed head 46206fdb7fabf4f63807c06fe48f6962f2709e0b. No build or tests were run. I read the prepared description, commits, manifest, and diff; inspected the proof implementation and tests, dispatch integration, descriptor binding and disk cache serialization, and relevant pending-image code through repo_read.py.

Results

Check Result Note
Source review failed Wrapped bound can be accepted by proof
Build and tests not run No commands run
Console behavior not run Author-reported measurements only

Findings

Blocking

  • core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp:581: the bound validation compares bound.lane[lane] and coordinate.lane[lane] as signed affine values, but the shader comparison is unsigned 32-bit (ULessThan32). For a coordinate such as gid - 5, early lanes have negative affine values that represent large unsigned values after wrapping; the current check can still treat the bound as no tighter than the coordinate and accept a proof. A sufficiently large dispatch can therefore pass ImageOverwriteCovers even though wrapped coordinates fail the shader predicate and leave texels unwritten. Since the driver uses this proof to discard pending contents, reject any bound or coordinate expression whose unsigned comparison cannot be proven equivalent over all dispatched lanes, including wraparound. The existing WrappingBound case checks a different predicate and does not cover this path.

Non-blocking

None.

Not verified

  • Did not run the new shader proof or recorder tests, or build the project.
  • Did not run on a physical console or independently verify the performance measurements in the PR description.
  • The full text of core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp was excluded from the review folder. I inspected only relevant ranges of the first two through repo_read.py; the recorder test additions were not read.
  • Other repository and environment behavior beyond the targeted source ranges was not verified.

To get this to a good state

Fix the unsigned wraparound proof condition and add a regression test where a wrapped coordinate is guarded by an unsigned coordinate bound. Then rerun the image overwrite proof and recorder tests and build on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983052589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-5983052589). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T20:42:56Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: fix the proof’s handling of wrapped unsigned bounds so it cannot authorize dropping pending image data for a shader that skips texels. ## What I ran Reviewed head `46206fdb7fabf4f63807c06fe48f6962f2709e0b`. No build or tests were run. I read the prepared description, commits, manifest, and diff; inspected the proof implementation and tests, dispatch integration, descriptor binding and disk cache serialization, and relevant pending-image code through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | Wrapped bound can be accepted by proof | | Build and tests | not run | No commands run | | Console behavior | not run | Author-reported measurements only | ## Findings ### Blocking - `core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp:581`: the bound validation compares `bound.lane[lane]` and `coordinate.lane[lane]` as signed affine values, but the shader comparison is unsigned 32-bit (`ULessThan32`). For a coordinate such as `gid - 5`, early lanes have negative affine values that represent large unsigned values after wrapping; the current check can still treat the bound as no tighter than the coordinate and accept a proof. A sufficiently large dispatch can therefore pass `ImageOverwriteCovers` even though wrapped coordinates fail the shader predicate and leave texels unwritten. Since the driver uses this proof to discard pending contents, reject any bound or coordinate expression whose unsigned comparison cannot be proven equivalent over all dispatched lanes, including wraparound. The existing `WrappingBound` case checks a different predicate and does not cover this path. ### Non-blocking None. ## Not verified - Did not run the new shader proof or recorder tests, or build the project. - Did not run on a physical console or independently verify the performance measurements in the PR description. - The full text of `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`, and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` was excluded from the review folder. I inspected only relevant ranges of the first two through `repo_read.py`; the recorder test additions were not read. - Other repository and environment behavior beyond the targeted source ranges was not verified. ## To get this to a good state Fix the unsigned wraparound proof condition and add a regression test where a wrapped coordinate is guarded by an unsigned coordinate bound. Then rerun the image overwrite proof and recorder tests and build on the new head.
MarcZX10 commented 2026-11-21 00:11:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T00:11:29Z.

Review: COMMENTED


Reviewed — comments

The proof and pending-unit discard path appear deliberately constrained, but I could not complete review of all changed files or run the checks, so a formal merge decision is not justified.

What I ran

Reviewed head 03113f62c51479c79a2a60ff51b4ea53dde284a6 using the prepared diff and targeted reads through repo_read.py. No build or tests were run.

Results

Check Result Note
Prepared diff review passed Changed paths and hunks inspected
Targeted source review not run Several large changed files remain unread
Build and tests not run No commands executed

Findings

Blocking

None verified.

Non-blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:319 adds a second RuntimeSwitches.hpp include, although the header is already included at line 317. Remove the duplicate include.

Not verified

The review folder lists 17 changed files. I read the prepared diff and manifest, and targeted source ranges for Texture.cpp, ShaderResources.cpp, ImageOverwriteProof.cpp, and ShaderDiskCache.cpp; full text was not read for these files. I did not read the full text of every changed file. In particular, Texture.cpp, ShaderResources.cpp, and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp were excluded from the review folder because they were too large; only targeted ranges or searches were inspected. No build, test suite, or negative control was run. The author-reported performance results were not independently verified.

To get this to a good state

Nothing is required. Optional: remove the duplicate include in Texture.cpp.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6001111731 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-6001111731). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T00:11:29Z. **Review:** COMMENTED --- # Reviewed — comments The proof and pending-unit discard path appear deliberately constrained, but I could not complete review of all changed files or run the checks, so a formal merge decision is not justified. ## What I ran Reviewed head `03113f62c51479c79a2a60ff51b4ea53dde284a6` using the prepared diff and targeted reads through `repo_read.py`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Prepared diff review | passed | Changed paths and hunks inspected | | Targeted source review | not run | Several large changed files remain unread | | Build and tests | not run | No commands executed | ## Findings ### Blocking None verified. ### Non-blocking - `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:319` adds a second `RuntimeSwitches.hpp` include, although the header is already included at line 317. Remove the duplicate include. ## Not verified The review folder lists 17 changed files. I read the prepared diff and manifest, and targeted source ranges for `Texture.cpp`, `ShaderResources.cpp`, `ImageOverwriteProof.cpp`, and `ShaderDiskCache.cpp`; full text was not read for these files. I did not read the full text of every changed file. In particular, `Texture.cpp`, `ShaderResources.cpp`, and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` were excluded from the review folder because they were too large; only targeted ranges or searches were inspected. No build, test suite, or negative control was run. The author-reported performance results were not independently verified. ## To get this to a good state Nothing is required. Optional: remove the duplicate include in `Texture.cpp`.
MarcZX10 commented 2026-11-21 01:10:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T01:10:06Z.

Review: COMMENTED


Reviewed — comments

The review covers the overwrite proof and pending-image changes at 5e23e345b29fa1683527947e6a8b10470ba623ae; material uncertainty in proof validation and the unreviewed parts of several large files prevents a formal approval.

What I ran

  • Read the prepared description, commit summary, manifest, diff, and targeted source ranges through repo_read.py.
  • No build or tests were run. The author reports GPU performance captures in the PR description; those were not reproduced here.

Results

Check Result Note
Source review not run Partial; some changed files were not fully read
Build and tests not run No commands run
Author performance captures not run Reported in the description only

Findings

Blocking

None verified.

Non-blocking

  • ImageOverwriteCovers checks fullGroups by rejecting a nonzero partialThreads[axis], but does not require dispatch.groups[axis] to cover the corresponding image extent. For a store guarded by GlobalInvocationId < DispatchThreadLimit, a group-count value can be nonzero with a thread limit that yields fewer launched groups; the proof could then claim full coverage based on the requested group count even if the effective grid is smaller. Review and validate the dispatch group normalization and thread-limit relationship before relying on this proof. Changed line: core/shader/recompiler/ImageOverwrite.hpp:744.

Not verified

  • The full contents of core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, and core/libs/prx/libSceAgcDriver/tests/Recorder.cpp were not read; only relevant diff hunks and targeted ranges were inspected. These were excluded from files/ because they were too large.
  • The remaining changed files were present in the review folder but not all were read in full; the manifest and file listing identify those included and excluded.
  • No build, unit tests, GPU run, or negative control was performed. The captures and A/B measurements in the description are author-supplied.

To get this to a good state

Nothing is required. Optional: confirm that partial dispatch limits cannot result in fewer groups than the groups value used by ImageOverwriteCovers, and add a focused test for that case if they can.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6001641082 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-6001641082). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T01:10:06Z. **Review:** COMMENTED --- # Reviewed — comments The review covers the overwrite proof and pending-image changes at `5e23e345b29fa1683527947e6a8b10470ba623ae`; material uncertainty in proof validation and the unreviewed parts of several large files prevents a formal approval. ## What I ran - Read the prepared description, commit summary, manifest, diff, and targeted source ranges through `repo_read.py`. - No build or tests were run. The author reports GPU performance captures in the PR description; those were not reproduced here. ## Results | Check | Result | Note | |---|---|---| | Source review | not run | Partial; some changed files were not fully read | | Build and tests | not run | No commands run | | Author performance captures | not run | Reported in the description only | ## Findings ### Blocking None verified. ### Non-blocking - `ImageOverwriteCovers` checks `fullGroups` by rejecting a nonzero `partialThreads[axis]`, but does not require `dispatch.groups[axis]` to cover the corresponding image extent. For a store guarded by `GlobalInvocationId < DispatchThreadLimit`, a group-count value can be nonzero with a thread limit that yields fewer launched groups; the proof could then claim full coverage based on the requested group count even if the effective grid is smaller. Review and validate the dispatch group normalization and thread-limit relationship before relying on this proof. Changed line: `core/shader/recompiler/ImageOverwrite.hpp:744`. ## Not verified - The full contents of `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`, and `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` were not read; only relevant diff hunks and targeted ranges were inspected. These were excluded from `files/` because they were too large. - The remaining changed files were present in the review folder but not all were read in full; the manifest and file listing identify those included and excluded. - No build, unit tests, GPU run, or negative control was performed. The captures and A/B measurements in the description are author-supplied. ## To get this to a good state Nothing is required. Optional: confirm that partial dispatch limits cannot result in fewer groups than the `groups` value used by `ImageOverwriteCovers`, and add a focused test for that case if they can.
MarcZX10 commented 2026-11-21 12:08:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T12:08:20Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head 247ee996785ac081ca648d1cc0f2344ce71c223f. I inspected the prepared description, commits, manifest and diff, then targeted proof, dispatch, refresh, pending-unit and test code using repo_read.py. No build or test commands were run.

Results

Check Result Note
Changed code review passed Reviewed the proof and discard paths
Build and tests not run No execution performed
Reported performance captures not run Author supplied results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

I read all changed files marked included: true in the manifest, including the added lines in core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp. I did not read the complete contents of core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, or core/libs/prx/libSceAgcDriver/tests/Recorder.cpp; I inspected only relevant ranges in those files. Build, automated tests, and the reported console performance measurements were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6005083835 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18369#pullrequestreview-6005083835). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T12:08:20Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `247ee996785ac081ca648d1cc0f2344ce71c223f`. I inspected the prepared description, commits, manifest and diff, then targeted proof, dispatch, refresh, pending-unit and test code using `repo_read.py`. No build or test commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Reviewed the proof and discard paths | | Build and tests | not run | No execution performed | | Reported performance captures | not run | Author supplied results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I read all changed files marked `included: true` in the manifest, including the added lines in `core/shader/recompiler/Optimization/src/ImageOverwriteProof.cpp`. I did not read the complete contents of `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`, `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`, or `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`; I inspected only relevant ranges in those files. Build, automated tests, and the reported console performance measurements were not independently verified. ## To get this to a good state Nothing is required.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!18369
No description provided.