perf(shader): gate f32 NaN repair and narrow bounded window reads #17733

Merged
Filip722 merged 13 commits from upstream-pr/17733 into main 2026-11-16 05:43:05 +00:00
Filip722 commented 2026-11-09 13:29:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-11-09T13:29:01Z.


What

F32 source-NaN repairs can be expensive, but replacing the frontend selects with NanPropagateF32 hid those repairs from #17227's payload analysis and lost its benefit in the reported combined build. This updates the credited continuation of josealissonbr's #12548 to compose with that analysis and #4287's source-selection consolidation. All five original #12548 commits and both prerequisite histories remain unchanged in the branch history.

  • Build on #17227 (54a560b95f) and #4287 (81804d1508) as explicit prerequisites. Keep current main's exact/fast arithmetic switch, normal-multiplier proof and SRT validity behavior.
  • Treat NanPropagateF32 as a payload-only elimination candidate: replace it with its host result only when the existing observability proof succeeds. Its NaN status follows argument zero, not an arbitrary source operand. Raw-bit observers, arbitrary bit transformations and observed branches keep their exact repairs.
  • Select the exact source payload before applying the quiet bit once. Preserve source priority, invalid-product handling, signaling-NaN behavior, denormals, signed zero and the exact fallback.
  • Retain the original bounded vector-window narrowing. Extend the existing payload fixture with conditional-node clamp/raw sinks, mixed observed chains and a production Recompile multiply case. The old add-only integration case passed even without this adapter; the new multiply case reproduces the gap.

@talha-devp confirmed #17227 first, then this adapter. #4287 is retained as another prerequisite rather than proposed as a replacement. Its author's separate acceptance is not claimed. Both prerequisites merged on 2026-11-14 (#4287 first, then #17227); the requested prerequisite landing order is now satisfied.

The refreshed overlap scan covered 1,968 open PRs. It no longer reports #17227/#4287 as competing changes because their histories are included. It still flags adjacent opcode insertions in #14217 and unrelated debt edits in #15719/#15917, and fails closed on conflicting branches. All 40 non-ENV shared-branch patches are byte-identical in added/removed lines to the retained manual reviews; the additional ENV-only rows use other keys. No competing conditional opcode, listed-window pass or payload-node adapter was identified. The tool is not represented as green. Composition/performance with #17681/#17709 or every other open branch is not established.

Tested

Author follow-up (2026-11-15), head 1084e5e7bffc, with pinned main fd58fa5a0213 integrated before all tests and captures. Preserved the credited implementation and maintainer history, and moved the two existing debt entries into the required docs/dev/debt/changes/ fragment. Both #17227 and #4287 are now in the tested main.

Matched hardware validation passes the same 15 focused tests on each side, plus this PR’s bounded-relative-index device fixture (16 total) on AMD Radeon 760M / RADV Mesa 25.0.7 / Debian 13 / Linux 7.3.3 and the NVIDIA GeForce RTX 5060 Laptop GPU / NVIDIA 615.78.08 / Bazzite 44 / Linux 7.2.9. Khronos 1.4.363 is actually inserted in every device fixture; no skipped GPU tests, missing-layer messages or VUID errors. These are author runs, distinct from the contributor reports below.

Current-head NVIDIA capture: ProsperoLight PPSA99002 01.000.110, the same fresh no-PC idle scene, 3840×2160 source buffers and 1920×1080 X11 output, GCC 15.2 Release/SPIRV-Tools ON. Two fixed warmed 10-second windows per head, with shared main controls in forward/reverse order; all ten valid windows are retained; two objectively unusable outage attempts were replaced, with no extra pairs. GPU command span/present: main 5.720 / 6.032 ms; this full PR head 5.240 / 5.494 ms. Paired reduction: +8.392% / +8.919%, mean +8.655%, 95% Student-t df1 interval [+5.304%, +12.007%] (reduced in this scene). This is GPU command-span efficiency at the 60 Hz cap, not an FPS increase. The #17681/#17709/#17919 comparisons measure their full prerequisite stacks, not isolated incremental gains. One stationary scene and two pairs limit scope and precision.

Audited current-head traces, raw summary lines, trace_digest.py outputs, protocol, exact binary provenance, cold diagnostics, numeric replay counts and hardware validation. Traces contain only host timing/count data. Game files, shaders, screenshots, caches and console logs remain private. After an abrupt laptop outage, six usable original captures were retained; the seventh had zero-length recovered files and the eighth had no completed trace. Only those two were replaced, and the remaining planned windows finished after a qualified restart. The driver, binaries and scene were unchanged. Earlier excluded warmup deadline failures are also disclosed. Author work and reviewer acceptance are separate.

Current main and current-head capture summary lines (first window; all windows and digests attached)
{"commit":"fd58fa5a0213","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"15:10"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.78.08","os":"Linux 7.2.9-ogc2.1.fc44.x86_64","cpu":"Intel(R) Core(TM) 7 240H","cpu_threads":16,"memory_mib":15672,"title_id":"PPSA99002","title":"ProsperoLight","content_version":"01.000.110","resolution":"3840x2160","window":{"spec":"seconds 15:10","first_present":895,"ms":10016.296},"presents":600,"frame_ms":{"p50":16.688,"p90":18.355,"p99":20.51,"max":22.375},"gpu_busy_ms_per_present":5.72,"worker_busy_pct":{"queue worker 0x0":25.322},"phase_totals_ms":{"Driver.Completion":4.606,"Driver.Draw":1103.352,"Driver.Draw.device_setup":60.847,"Driver.Draw.draw_enqueued":166.414,"Driver.Draw.post_compile_prepare":5.042,"Driver.Draw.prepare":162.183,"Driver.Draw.shader_compile_and_link":688.095,"Driver.EndSubmission":10.786,"Driver.Packet":2520.12,"Driver.Packet.device_lock":12.268,"Driver.Packet.draw":1114.525,"Driver.Packet.execute":117.855,"Driver.Packet.flip_flush":80.287,"Driver.Packet.flush_between_packets":25.34,"Driver.Packet.pipeline_drain":1033.953,"Driver.Packet.pipeline_prepare":22.714,"Driver.Packet.prepare_memory":25.067,"Driver.Present":685.783,"Driver.Present.acquire_image":81.77,"Driver.Present.device_setup":1.64,"Driver.Present.gpu_mutex_wait":28.468,"Driver.Present.inflight_wait":5.559,"Driver.Present.present_display_buffer":192.211,"Driver.Present.queue_present":266.594,"Driver.Present.release_and_callback":1.787,"Driver.Present.render_fence_wait":102.398,"Driver.Present.resize":2.948,"Driver.Present.validate":0.908,"Driver.Suspend":0.85,"GpuMutex.wait.draw":4.448,"GpuMutex.wait.end":4.622,"GpuMutex.wait.flush":0.288,"GpuMutex.wait.label":1.06,"GpuMutex.wait.present":24.161,"GpuMutex.wait.wait":91.828,"Graphics.Draw":2707.314,"Graphics.Draw.draw_and_resource_release":2575.438,"Graphics.Draw.index_upload":2.235,"Graphics.Draw.validate":96.073,"Graphics.Draw.vertex_upload":14.498,"Recorder.Reap":119.636,"Recorder.Submit":416.117,"Recorder.Sync":39.308,"Recorder.WaitSerial":22.766,"Resources.Complete":268.193,"Resources.Prepare":350.273,"Shader.DrawStage":588.314,"Shader.DrawStage.capture_resources":408.147,"Shader.DrawStage.materialize":78.085,"Shader.DrawStage.prepared_invocation":95.298,"VideoOut.Flip":1640.189,"VideoOut.Flip.completion_mutex_wait":1.439,"VideoOut.Flip.config_mutex_wait":0.523,"VideoOut.Flip.frame_limit":1.91,"VideoOut.Flip.notify_game":17.825,"VideoOut.Flip.present":692.791,"VideoOut.Flip.validate":2.683,"VideoOut.Flip.vblank_wait":863.104,"VideoOut.Flip.window_prepare":2.525,"VideoOut.Flip.window_title":56.486,"VideoOut.Readiness":4.384,"VideoOut.Readiness.locks_validate":2.019,"Vulkan.Acquire":77.189,"Vulkan.Acquire.acquire_fence_wait":13.495,"Vulkan.Acquire.acquire_image":50.198,"Vulkan.Acquire.fence_reset":12.182,"Vulkan.Acquire.retired_swapchains":0.631,"Vulkan.Present":132.132,"Vulkan.Present.command_record_scale":90.561,"Vulkan.Present.pixel_upload":5.489,"Vulkan.Present.queue_submit":34.151,"Vulkan.QueuePresent":263.242,"Vulkan.QueuePresent.queue_present":261.368,"Vulkan.Retire":100.432,"Vulkan.Retire.wait":82.154},"top_phases_ms_per_frame":{"Graphics.Draw":4.512,"Graphics.Draw.draw_and_resource_release":4.292,"Driver.Packet":4.2,"VideoOut.Flip":2.734,"Driver.Packet.draw":1.858,"Driver.Draw":1.839,"Driver.Packet.pipeline_drain":1.723,"VideoOut.Flip.vblank_wait":1.439},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":10801,"Graphics.Barrier.label-run":11764,"Graphics.Barrier.present-blit":1200,"Graphics.RenderPass":5400,"Graphics.RenderPass.Close.new-batch":5400,"Graphics.RenderPass.Continued":1800},"trace_dropped":false,"trace":"aps5-trace-fd58fa5a0213-57461.json.gz"}
{"commit":"1084e5e7bffc","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"15:10"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.78.08","os":"Linux 7.2.9-ogc2.1.fc44.x86_64","cpu":"Intel(R) Core(TM) 7 240H","cpu_threads":16,"memory_mib":15672,"title_id":"PPSA99002","title":"ProsperoLight","content_version":"01.000.110","resolution":"3840x2160","window":{"spec":"seconds 15:10","first_present":899,"ms":10008.181},"presents":600,"frame_ms":{"p50":16.685,"p90":17.865,"p99":19.954,"max":22.538},"gpu_busy_ms_per_present":5.24,"worker_busy_pct":{"queue worker 0x0":25.01},"phase_totals_ms":{"Driver.Completion":4.547,"Driver.Draw":1080.073,"Driver.Draw.device_setup":59.605,"Driver.Draw.draw_enqueued":161.458,"Driver.Draw.post_compile_prepare":4.912,"Driver.Draw.prepare":162.016,"Driver.Draw.shader_compile_and_link":672.639,"Driver.EndSubmission":11.225,"Driver.Packet":2486.523,"Driver.Packet.device_lock":12.445,"Driver.Packet.draw":1090.56,"Driver.Packet.execute":115.693,"Driver.Packet.flip_flush":76.756,"Driver.Packet.flush_between_packets":25.185,"Driver.Packet.pipeline_drain":1032.559,"Driver.Packet.pipeline_prepare":22.837,"Driver.Packet.prepare_memory":25.569,"Driver.Present":691.915,"Driver.Present.acquire_image":80.661,"Driver.Present.device_setup":1.656,"Driver.Present.gpu_mutex_wait":33.991,"Driver.Present.inflight_wait":5.922,"Driver.Present.present_display_buffer":192.387,"Driver.Present.queue_present":268.409,"Driver.Present.release_and_callback":2.146,"Driver.Present.render_fence_wait":101.504,"Driver.Present.resize":2.929,"Driver.Present.validate":0.945,"Driver.Suspend":0.789,"GpuMutex.wait.draw":4.14,"GpuMutex.wait.end":3.653,"GpuMutex.wait.flush":0.471,"GpuMutex.wait.label":1.486,"GpuMutex.wait.present":29.648,"GpuMutex.wait.wait":83.172,"Graphics.Draw":2657.531,"Graphics.Draw.draw_and_resource_release":2527.196,"Graphics.Draw.index_upload":2.451,"Graphics.Draw.validate":95.918,"Graphics.Draw.vertex_upload":14.555,"Recorder.Reap":119.036,"Recorder.Submit":405.693,"Recorder.Sync":38.488,"Recorder.WaitSerial":21.933,"Resources.Complete":262.92,"Resources.Prepare":347.235,"Shader.DrawStage":574.404,"Shader.DrawStage.capture_resources":397.038,"Shader.DrawStage.materialize":76.444,"Shader.DrawStage.prepared_invocation":94.182,"VideoOut.Flip":1927.027,"VideoOut.Flip.completion_mutex_wait":1.532,"VideoOut.Flip.config_mutex_wait":0.44,"VideoOut.Flip.frame_limit":2.277,"VideoOut.Flip.notify_game":17.582,"VideoOut.Flip.present":697.923,"VideoOut.Flip.validate":2.522,"VideoOut.Flip.vblank_wait":1144.306,"VideoOut.Flip.window_prepare":2.635,"VideoOut.Flip.window_title":57.037,"VideoOut.Readiness":4.38,"VideoOut.Readiness.locks_validate":2.113,"Vulkan.Acquire":75.925,"Vulkan.Acquire.acquire_fence_wait":12.666,"Vulkan.Acquire.acquire_image":49.893,"Vulkan.Acquire.fence_reset":11.998,"Vulkan.Acquire.retired_swapchains":0.678,"Vulkan.Present":130.571,"Vulkan.Present.command_record_scale":88.384,"Vulkan.Present.pixel_upload":6.045,"Vulkan.Present.queue_submit":34.579,"Vulkan.QueuePresent":264.956,"Vulkan.QueuePresent.queue_present":263.015,"Vulkan.Retire":99.764,"Vulkan.Retire.wait":82.133},"top_phases_ms_per_frame":{"Graphics.Draw":4.429,"Graphics.Draw.draw_and_resource_release":4.212,"Driver.Packet":4.144,"VideoOut.Flip":3.212,"VideoOut.Flip.vblank_wait":1.907,"Driver.Packet.draw":1.818,"Driver.Draw":1.8,"Driver.Packet.pipeline_drain":1.721},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":10803,"Graphics.Barrier.label-run":11796,"Graphics.Barrier.present-blit":1200,"Graphics.RenderPass":5400,"Graphics.RenderPass.Close.new-batch":5400,"Graphics.RenderPass.Continued":1800},"trace_dropped":false,"trace":"aps5-trace-1084e5e7bffc-66444.json.gz"}

Upstream assessment after the batch: later main 2454441420d5 changes shader lowering and AGC resources. All ten retained NVIDIA shader inputs emit byte-identical SPIR-V, and five focused regression tests pass on Radeon. This is bounded compatibility evidence, not a timing measurement of later main; the results above remain tied to the exact fd58fa5a0213-based binaries.

Earlier evidence, attributed to its original revisions:

Earlier status check on 2026-11-15: a maintainer merged main 4aa2f8b69447 into the branch as 56e881314e37. The measurements and local hardware checks below retain their original exact revisions; they do not measure or validate this later integration. That metadata-only status update added no local validation; it is superseded by the current-head author measurements above.

Independent updated-head rerun: talha-devp's Windows/RTX 4060 report, NVIDIA 621.14 / Windows 10 19045 / MSYS2 GCC 16.2.0 Release, compares four builds on main 52c33518f8. Integrated head 6105d0d207 (this PR d6ac9fe9bc) reports 8.68 / 8.74 ms warm GPU time against 10.31 / 10.10 ms for prerequisite control bb40dfc102, in ProsperoLight's 4K idle screen. Both reach the 60 Hz cap; this is GPU command-span efficiency, not an FPS increase. The dominant program has 215,467 versus 224,281 SPIR-V words. Slowest cold pipeline creation is 1.81 versus 1.75 s, one run each, which the reviewer cannot separate from normal variation. All 21–23 applicable focused tests pass on each arm with Khronos validation and no VUID lines. This supports recovery of the adapter interaction on that contributor's host and scene; it is not a local reproduction, a broad cold-compilation claim or pooled with the inconclusive Radeon pairs.

JJenkx's Windows/RX 6700 XT follow-up, AMD 32.0.21045.16010 / Windows 11 Enterprise 22621 / WinLibs GCC 15.2 UCRT, passes bounded-relative-index execution three times on integration 89d0ae0cc2 (head plus main 5c26d4f13c). The preceding CPU run passes its other 29 selected tests three times; its Vulkan-dependent skip is covered by this GPU follow-up. Those Windows reports do not state Khronos-layer validation.

Frozen revisions, GCC Release, production GPL/LTO, Radeon 760M / system RADV Mesa 25.0.7 / Linux 7.3.3:

  • M, plain main: d34caa9dbe8a2ef0596775607d90b962caa0a531.
  • A, prerequisite control: M + #17227 + #4287, bdc113ce6809f24a9706b165f0bfe146c918fc6d.
  • B, this integrated change: d6ac9fe9bc752171f3e33bb520e65339ddbbecea.

The 12 common focused groups pass on all three trees. A passes its additional payload-elimination fixture (13 total); B passes the extended fixture and bounded-relative-index execution group (14 total). These runs create eight / eight / nine actual Radeon Vulkan devices with Khronos instance/device layer insertion, respectively. No skips, missing-layer messages or VUID errors. Coverage includes exact/fast arithmetic, NaN source order/quieting, denormal and constant-factor tininess, legacy FMA/MAC, div_fmas, shader memory/SRT, vector windows, branch targets and the unchanged denormal-flush count regression. Removing the analysis adapter makes the final extended fixture fail; restoring it passes, including the raw-bit and mixed-observer cases.

Two retained hot request replays validate as Vulkan 1.3 SPIR-V. Relative to A, B changes their word counts from 30,072 to 30,727 and 30,039 to 30,658, while conditional branches rise from 65 to 105 and selects fall from 875 to 804 / 802. These counts expose the code-size/control-flow tradeoff; they do not prove a speedup.

Exactly two prospectively fixed ordinary pairs, AB/BA, all four valid, no replacements or extra pairs. This is the incremental B-versus-A result, not a plain-main or additive estimate:

Pair Prerequisite A FPS Integrated B FPS Paired FPS change
1 28.561499 29.001937 +1.542071%
2 28.505118 29.133901 +2.205860%

Mean paired FPS change +1.873965%, 95% Student-t interval (df 1) [-2.343155%, +6.091085%]: inconclusive, no demonstrated incremental gameplay gain.

Sons of Sparta PPSA28997 v01.008.001, stationary restored camp, owned 4K save setting with actual 3840×2160 rendering witnessed in each excluded warmup; 1280×720 X11 client, requested Immediate presentation, dummy audio and unchanged guest cap. Same visible MangoHud observer, 60-second windows, separate owned warm cache seeds. All four ordinary windows pass focus, camp, client-geometry and unchanged-cache checks. All 63 loaded modules match except AGC; reported clocks remain 2,599 MHz. Completed exported intervals include the first interval with its duration. No screenshots, input, build, debugger or profiler during ordinary windows. No general gameplay, hitch or cross-vendor claim.

Preparation failures remain retained: the owned package initially used the wrong libc NID-patch recipe; a screenshot race and later Spectacle failures occurred outside timed runs; one candidate diagnostic lost geometry before a user-requested focus pause. After resumption, direct capture of the owned X11 game window repaired readiness/post-window observation. No ordinary run was replaced or discarded.

Separate normal eight-second traces give GPU command-span time M 32.916, A 31.850, B 30.528 ms/present, with no dropped events. M/A were captured before the focus pause, B after resumption on the same frozen packages and settings. These are diagnostics, not ordinary replicates or confidence estimates. Only APS5_TRACE_SECONDS=40:8 and APS5_TRACE_DIR were used for capture; stdout was unredirected. Summary resolution is API metadata; the excluded warmups establish the 4K rendering setting.

Audited interval CSVs, protocol, exact-revision provenance, validation/count summaries, official digests and original host timing traces. All 24 files were verified byte-for-byte after upload. Decode the base64 gzip files for Perfetto. Game files, saves, screenshots, shader requests, SPIR-V, IR, ISA, console logs and binaries remain private.

Plain main:

{"commit":"d34caa9dbe8a","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1153,"ms":8005.156},"presents":224,"frame_ms":{"p50":35.618,"p90":36.44,"p99":38.018,"max":39.706},"gpu_busy_ms_per_present":32.916,"worker_busy_pct":{"queue worker 0x0":78.268},"top_phases_ms_per_frame":{"Driver.Packet":27.865,"Driver.Packet.draw":25.244,"Driver.Draw":25.198,"Driver.Draw.draw_enqueued":21.289,"Recorder.Sync":20.006,"VideoOut.Flip":7.215,"Driver.Present":7.174,"VideoOut.Flip.present":7.149},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-d34caa9dbe8a-348754.json.gz"}

Prerequisite control:

{"commit":"bdc113ce6809","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1173,"ms":8018.163},"presents":230,"frame_ms":{"p50":34.748,"p90":35.4,"p99":36.649,"max":37.201},"gpu_busy_ms_per_present":31.85,"worker_busy_pct":{"queue worker 0x0":77.715},"top_phases_ms_per_frame":{"Driver.Packet":26.988,"Driver.Packet.draw":24.348,"Driver.Draw":24.309,"Driver.Draw.draw_enqueued":20.494,"Recorder.Sync":19.316,"VideoOut.Flip":7.034,"Driver.Present":6.992,"VideoOut.Flip.present":6.969},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-bdc113ce6809-350169.json.gz"}

Integrated change:

{"commit":"d6ac9fe9bc75","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1200,"ms":8009.5},"presents":238,"frame_ms":{"p50":33.576,"p90":34.195,"p99":35.432,"max":35.654},"gpu_busy_ms_per_present":30.528,"worker_busy_pct":{"queue worker 0x0":76.772},"top_phases_ms_per_frame":{"Driver.Packet":25.731,"Driver.Packet.draw":23.188,"Driver.Draw":23.149,"Driver.Draw.draw_enqueued":19.419,"Recorder.Sync":18.328,"VideoOut.Flip":6.916,"Driver.Present":6.871,"VideoOut.Flip.present":6.85},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-d6ac9fe9bc75-382749.json.gz"}

Historical evidence remains separate. The earlier Radeon whole-PR retest measured 94904838ae90 versus 3a484a00c09e: +1.644931% mean paired FPS, CI crossing zero. talha-devp's unadapted RTX 4060 report found 16.83 → 17.17 ms GPU time, cold pipeline creation about 2.2 → 2.9 s, and loss of #17227's benefit in the old combined build. That adverse report remains valid for its revisions; the updated-head rerun above is a separate comparison. The original RTX 5070 report and older physical-1440p Radeon validation likewise remain attributed historical results, not measurements of this head.

Checklist

  • Based on current main; no other open PR implements the same functions — fd58fa5a0213 pinned before validation; subsequent upstream assessment above
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: #17227, #4287 (both included and now merged)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: author current-head runs: NVIDIA GeForce RTX 5060 Laptop GPU, NVIDIA 615.78.08, Bazzite 44 / Linux 7.2.9; AMD Radeon 760M, RADV Mesa 25.0.7, Linux 7.3.3; independent reports: NVIDIA GeForce RTX 4060, NVIDIA 621.14, Windows 10 19045; AMD Radeon RX 6700 XT, AMD 32.0.21045.16010, Windows 11 Enterprise 22621
  • AI-assisted: yes (original implementation and integration)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5224652801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17733). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-09T13:29:01Z. --- ### What F32 source-NaN repairs can be expensive, but replacing the frontend selects with `NanPropagateF32` hid those repairs from #17227's payload analysis and lost its benefit in the reported combined build. This updates the credited continuation of **josealissonbr's #12548** to compose with that analysis and #4287's source-selection consolidation. All five original #12548 commits and both prerequisite histories remain unchanged in the branch history. - Build on #17227 (`54a560b95f`) and #4287 (`81804d1508`) as explicit prerequisites. Keep current main's exact/fast arithmetic switch, normal-multiplier proof and SRT validity behavior. - Treat `NanPropagateF32` as a payload-only elimination candidate: replace it with its host result only when the existing observability proof succeeds. Its NaN status follows argument zero, not an arbitrary source operand. Raw-bit observers, arbitrary bit transformations and observed branches keep their exact repairs. - Select the exact source payload before applying the quiet bit once. Preserve source priority, invalid-product handling, signaling-NaN behavior, denormals, signed zero and the exact fallback. - Retain the original bounded vector-window narrowing. Extend the existing payload fixture with conditional-node clamp/raw sinks, mixed observed chains and a production `Recompile` multiply case. The old add-only integration case passed even without this adapter; the new multiply case reproduces the gap. @talha-devp [confirmed #17227 first, then this adapter](https://github.com/boykopovar/AnyPS5/pull/17733#issuecomment-6743941444). #4287 is retained as another prerequisite rather than proposed as a replacement. Its author's separate acceptance is not claimed. Both prerequisites merged on 2026-11-14 (#4287 first, then #17227); the requested prerequisite landing order is now satisfied. The refreshed overlap scan covered 1,968 open PRs. It no longer reports #17227/#4287 as competing changes because their histories are included. It still flags adjacent opcode insertions in #14217 and unrelated debt edits in #15719/#15917, and fails closed on conflicting branches. All 40 non-ENV shared-branch patches are byte-identical in added/removed lines to the retained manual reviews; the additional ENV-only rows use other keys. No competing conditional opcode, listed-window pass or payload-node adapter was identified. The tool is not represented as green. Composition/performance with #17681/#17709 or every other open branch is not established. ### Tested Author follow-up (2026-11-15), head `1084e5e7bffc`, with pinned main `fd58fa5a0213` integrated before all tests and captures. Preserved the credited implementation and maintainer history, and moved the two existing debt entries into the required `docs/dev/debt/changes/` fragment. Both #17227 and #4287 are now in the tested main. Matched hardware validation passes the same 15 focused tests on each side, plus this PR’s bounded-relative-index device fixture (16 total) on **AMD Radeon 760M / RADV Mesa 25.0.7 / Debian 13 / Linux 7.3.3** and the **NVIDIA GeForce RTX 5060 Laptop GPU / NVIDIA 615.78.08 / Bazzite 44 / Linux 7.2.9**. Khronos **1.4.363** is actually inserted in every device fixture; no skipped GPU tests, missing-layer messages or VUID errors. These are author runs, distinct from the contributor reports below. Current-head NVIDIA capture: ProsperoLight PPSA99002 01.000.110, the same fresh no-PC idle scene, 3840×2160 source buffers and 1920×1080 X11 output, GCC 15.2 Release/SPIRV-Tools ON. Two fixed warmed 10-second windows per head, with shared main controls in forward/reverse order; all ten valid windows are retained; two objectively unusable outage attempts were replaced, with no extra pairs. GPU command span/present: **main 5.720 / 6.032 ms; this full PR head 5.240 / 5.494 ms**. Paired reduction: **+8.392% / +8.919%**, mean **+8.655%**, 95% Student-t df1 interval **[+5.304%, +12.007%]** (reduced in this scene). This is GPU command-span efficiency at the 60 Hz cap, not an FPS increase. The #17681/#17709/#17919 comparisons measure their full prerequisite stacks, not isolated incremental gains. One stationary scene and two pairs limit scope and precision. [Audited current-head traces, raw summary lines, `trace_digest.py` outputs, protocol, exact binary provenance, cold diagnostics, numeric replay counts and hardware validation](https://gist.github.com/Filip722/d89e2c14fd1ca0048edf483f97abcfb2). Traces contain only host timing/count data. Game files, shaders, screenshots, caches and console logs remain private. After an abrupt laptop outage, six usable original captures were retained; the seventh had zero-length recovered files and the eighth had no completed trace. Only those two were replaced, and the remaining planned windows finished after a qualified restart. The driver, binaries and scene were unchanged. Earlier excluded warmup deadline failures are also disclosed. Author work and reviewer acceptance are separate. <details> <summary>Current main and current-head capture summary lines (first window; all windows and digests attached)</summary> ```json {"commit":"fd58fa5a0213","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"15:10"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.78.08","os":"Linux 7.2.9-ogc2.1.fc44.x86_64","cpu":"Intel(R) Core(TM) 7 240H","cpu_threads":16,"memory_mib":15672,"title_id":"PPSA99002","title":"ProsperoLight","content_version":"01.000.110","resolution":"3840x2160","window":{"spec":"seconds 15:10","first_present":895,"ms":10016.296},"presents":600,"frame_ms":{"p50":16.688,"p90":18.355,"p99":20.51,"max":22.375},"gpu_busy_ms_per_present":5.72,"worker_busy_pct":{"queue worker 0x0":25.322},"phase_totals_ms":{"Driver.Completion":4.606,"Driver.Draw":1103.352,"Driver.Draw.device_setup":60.847,"Driver.Draw.draw_enqueued":166.414,"Driver.Draw.post_compile_prepare":5.042,"Driver.Draw.prepare":162.183,"Driver.Draw.shader_compile_and_link":688.095,"Driver.EndSubmission":10.786,"Driver.Packet":2520.12,"Driver.Packet.device_lock":12.268,"Driver.Packet.draw":1114.525,"Driver.Packet.execute":117.855,"Driver.Packet.flip_flush":80.287,"Driver.Packet.flush_between_packets":25.34,"Driver.Packet.pipeline_drain":1033.953,"Driver.Packet.pipeline_prepare":22.714,"Driver.Packet.prepare_memory":25.067,"Driver.Present":685.783,"Driver.Present.acquire_image":81.77,"Driver.Present.device_setup":1.64,"Driver.Present.gpu_mutex_wait":28.468,"Driver.Present.inflight_wait":5.559,"Driver.Present.present_display_buffer":192.211,"Driver.Present.queue_present":266.594,"Driver.Present.release_and_callback":1.787,"Driver.Present.render_fence_wait":102.398,"Driver.Present.resize":2.948,"Driver.Present.validate":0.908,"Driver.Suspend":0.85,"GpuMutex.wait.draw":4.448,"GpuMutex.wait.end":4.622,"GpuMutex.wait.flush":0.288,"GpuMutex.wait.label":1.06,"GpuMutex.wait.present":24.161,"GpuMutex.wait.wait":91.828,"Graphics.Draw":2707.314,"Graphics.Draw.draw_and_resource_release":2575.438,"Graphics.Draw.index_upload":2.235,"Graphics.Draw.validate":96.073,"Graphics.Draw.vertex_upload":14.498,"Recorder.Reap":119.636,"Recorder.Submit":416.117,"Recorder.Sync":39.308,"Recorder.WaitSerial":22.766,"Resources.Complete":268.193,"Resources.Prepare":350.273,"Shader.DrawStage":588.314,"Shader.DrawStage.capture_resources":408.147,"Shader.DrawStage.materialize":78.085,"Shader.DrawStage.prepared_invocation":95.298,"VideoOut.Flip":1640.189,"VideoOut.Flip.completion_mutex_wait":1.439,"VideoOut.Flip.config_mutex_wait":0.523,"VideoOut.Flip.frame_limit":1.91,"VideoOut.Flip.notify_game":17.825,"VideoOut.Flip.present":692.791,"VideoOut.Flip.validate":2.683,"VideoOut.Flip.vblank_wait":863.104,"VideoOut.Flip.window_prepare":2.525,"VideoOut.Flip.window_title":56.486,"VideoOut.Readiness":4.384,"VideoOut.Readiness.locks_validate":2.019,"Vulkan.Acquire":77.189,"Vulkan.Acquire.acquire_fence_wait":13.495,"Vulkan.Acquire.acquire_image":50.198,"Vulkan.Acquire.fence_reset":12.182,"Vulkan.Acquire.retired_swapchains":0.631,"Vulkan.Present":132.132,"Vulkan.Present.command_record_scale":90.561,"Vulkan.Present.pixel_upload":5.489,"Vulkan.Present.queue_submit":34.151,"Vulkan.QueuePresent":263.242,"Vulkan.QueuePresent.queue_present":261.368,"Vulkan.Retire":100.432,"Vulkan.Retire.wait":82.154},"top_phases_ms_per_frame":{"Graphics.Draw":4.512,"Graphics.Draw.draw_and_resource_release":4.292,"Driver.Packet":4.2,"VideoOut.Flip":2.734,"Driver.Packet.draw":1.858,"Driver.Draw":1.839,"Driver.Packet.pipeline_drain":1.723,"VideoOut.Flip.vblank_wait":1.439},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":10801,"Graphics.Barrier.label-run":11764,"Graphics.Barrier.present-blit":1200,"Graphics.RenderPass":5400,"Graphics.RenderPass.Close.new-batch":5400,"Graphics.RenderPass.Continued":1800},"trace_dropped":false,"trace":"aps5-trace-fd58fa5a0213-57461.json.gz"} {"commit":"1084e5e7bffc","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"15:10"},"gpu":"NVIDIA GeForce RTX 5060 Laptop GPU","driver":"NVIDIA 615.78.08","os":"Linux 7.2.9-ogc2.1.fc44.x86_64","cpu":"Intel(R) Core(TM) 7 240H","cpu_threads":16,"memory_mib":15672,"title_id":"PPSA99002","title":"ProsperoLight","content_version":"01.000.110","resolution":"3840x2160","window":{"spec":"seconds 15:10","first_present":899,"ms":10008.181},"presents":600,"frame_ms":{"p50":16.685,"p90":17.865,"p99":19.954,"max":22.538},"gpu_busy_ms_per_present":5.24,"worker_busy_pct":{"queue worker 0x0":25.01},"phase_totals_ms":{"Driver.Completion":4.547,"Driver.Draw":1080.073,"Driver.Draw.device_setup":59.605,"Driver.Draw.draw_enqueued":161.458,"Driver.Draw.post_compile_prepare":4.912,"Driver.Draw.prepare":162.016,"Driver.Draw.shader_compile_and_link":672.639,"Driver.EndSubmission":11.225,"Driver.Packet":2486.523,"Driver.Packet.device_lock":12.445,"Driver.Packet.draw":1090.56,"Driver.Packet.execute":115.693,"Driver.Packet.flip_flush":76.756,"Driver.Packet.flush_between_packets":25.185,"Driver.Packet.pipeline_drain":1032.559,"Driver.Packet.pipeline_prepare":22.837,"Driver.Packet.prepare_memory":25.569,"Driver.Present":691.915,"Driver.Present.acquire_image":80.661,"Driver.Present.device_setup":1.656,"Driver.Present.gpu_mutex_wait":33.991,"Driver.Present.inflight_wait":5.922,"Driver.Present.present_display_buffer":192.387,"Driver.Present.queue_present":268.409,"Driver.Present.release_and_callback":2.146,"Driver.Present.render_fence_wait":101.504,"Driver.Present.resize":2.929,"Driver.Present.validate":0.945,"Driver.Suspend":0.789,"GpuMutex.wait.draw":4.14,"GpuMutex.wait.end":3.653,"GpuMutex.wait.flush":0.471,"GpuMutex.wait.label":1.486,"GpuMutex.wait.present":29.648,"GpuMutex.wait.wait":83.172,"Graphics.Draw":2657.531,"Graphics.Draw.draw_and_resource_release":2527.196,"Graphics.Draw.index_upload":2.451,"Graphics.Draw.validate":95.918,"Graphics.Draw.vertex_upload":14.555,"Recorder.Reap":119.036,"Recorder.Submit":405.693,"Recorder.Sync":38.488,"Recorder.WaitSerial":21.933,"Resources.Complete":262.92,"Resources.Prepare":347.235,"Shader.DrawStage":574.404,"Shader.DrawStage.capture_resources":397.038,"Shader.DrawStage.materialize":76.444,"Shader.DrawStage.prepared_invocation":94.182,"VideoOut.Flip":1927.027,"VideoOut.Flip.completion_mutex_wait":1.532,"VideoOut.Flip.config_mutex_wait":0.44,"VideoOut.Flip.frame_limit":2.277,"VideoOut.Flip.notify_game":17.582,"VideoOut.Flip.present":697.923,"VideoOut.Flip.validate":2.522,"VideoOut.Flip.vblank_wait":1144.306,"VideoOut.Flip.window_prepare":2.635,"VideoOut.Flip.window_title":57.037,"VideoOut.Readiness":4.38,"VideoOut.Readiness.locks_validate":2.113,"Vulkan.Acquire":75.925,"Vulkan.Acquire.acquire_fence_wait":12.666,"Vulkan.Acquire.acquire_image":49.893,"Vulkan.Acquire.fence_reset":11.998,"Vulkan.Acquire.retired_swapchains":0.678,"Vulkan.Present":130.571,"Vulkan.Present.command_record_scale":88.384,"Vulkan.Present.pixel_upload":6.045,"Vulkan.Present.queue_submit":34.579,"Vulkan.QueuePresent":264.956,"Vulkan.QueuePresent.queue_present":263.015,"Vulkan.Retire":99.764,"Vulkan.Retire.wait":82.133},"top_phases_ms_per_frame":{"Graphics.Draw":4.429,"Graphics.Draw.draw_and_resource_release":4.212,"Driver.Packet":4.144,"VideoOut.Flip":3.212,"VideoOut.Flip.vblank_wait":1.907,"Driver.Packet.draw":1.818,"Driver.Draw":1.8,"Driver.Packet.pipeline_drain":1.721},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":10803,"Graphics.Barrier.label-run":11796,"Graphics.Barrier.present-blit":1200,"Graphics.RenderPass":5400,"Graphics.RenderPass.Close.new-batch":5400,"Graphics.RenderPass.Continued":1800},"trace_dropped":false,"trace":"aps5-trace-1084e5e7bffc-66444.json.gz"} ``` </details> Upstream assessment after the batch: later main `2454441420d5` changes shader lowering and AGC resources. All ten retained NVIDIA shader inputs emit byte-identical SPIR-V, and five focused regression tests pass on Radeon. This is bounded compatibility evidence, not a timing measurement of later main; the results above remain tied to the exact `fd58fa5a0213`-based binaries. Earlier evidence, attributed to its original revisions: Earlier status check on 2026-11-15: a maintainer merged main `4aa2f8b69447` into the branch as `56e881314e37`. The measurements and local hardware checks below retain their original exact revisions; they do not measure or validate this later integration. That metadata-only status update added no local validation; it is superseded by the current-head author measurements above. Independent updated-head rerun: [talha-devp's Windows/RTX 4060 report](https://github.com/boykopovar/AnyPS5/pull/17733#issuecomment-6747697301), NVIDIA 621.14 / Windows 10 19045 / MSYS2 GCC 16.2.0 Release, compares four builds on main `52c33518f8`. Integrated head `6105d0d207` (this PR `d6ac9fe9bc`) reports 8.68 / 8.74 ms warm GPU time against 10.31 / 10.10 ms for prerequisite control `bb40dfc102`, in ProsperoLight's 4K idle screen. Both reach the 60 Hz cap; this is GPU command-span efficiency, not an FPS increase. The dominant program has 215,467 versus 224,281 SPIR-V words. Slowest cold pipeline creation is 1.81 versus 1.75 s, one run each, which the reviewer cannot separate from normal variation. All 21–23 applicable focused tests pass on each arm with Khronos validation and no VUID lines. This supports recovery of the adapter interaction on that contributor's host and scene; it is not a local reproduction, a broad cold-compilation claim or pooled with the inconclusive Radeon pairs. [JJenkx's Windows/RX 6700 XT follow-up](https://github.com/boykopovar/AnyPS5/pull/17733#issuecomment-6756331672), AMD 32.0.21045.16010 / Windows 11 Enterprise 22621 / WinLibs GCC 15.2 UCRT, passes bounded-relative-index execution three times on integration `89d0ae0cc2` (head plus main `5c26d4f13c`). The preceding CPU run passes its other 29 selected tests three times; its Vulkan-dependent skip is covered by this GPU follow-up. Those Windows reports do not state Khronos-layer validation. Frozen revisions, GCC Release, production GPL/LTO, Radeon 760M / system RADV Mesa 25.0.7 / Linux 7.3.3: - **M, plain main:** `d34caa9dbe8a2ef0596775607d90b962caa0a531`. - **A, prerequisite control:** M + #17227 + #4287, `bdc113ce6809f24a9706b165f0bfe146c918fc6d`. - **B, this integrated change:** `d6ac9fe9bc752171f3e33bb520e65339ddbbecea`. The 12 common focused groups pass on all three trees. A passes its additional payload-elimination fixture (13 total); B passes the extended fixture and bounded-relative-index execution group (14 total). These runs create eight / eight / nine actual Radeon Vulkan devices with Khronos instance/device layer insertion, respectively. No skips, missing-layer messages or VUID errors. Coverage includes exact/fast arithmetic, NaN source order/quieting, denormal and constant-factor tininess, legacy FMA/MAC, div_fmas, shader memory/SRT, vector windows, branch targets and the unchanged denormal-flush count regression. Removing the analysis adapter makes the final extended fixture fail; restoring it passes, including the raw-bit and mixed-observer cases. Two retained hot request replays validate as Vulkan 1.3 SPIR-V. Relative to A, B changes their word counts from 30,072 to 30,727 and 30,039 to 30,658, while conditional branches rise from 65 to 105 and selects fall from 875 to 804 / 802. These counts expose the code-size/control-flow tradeoff; they do not prove a speedup. Exactly two prospectively fixed ordinary pairs, AB/BA, all four valid, no replacements or extra pairs. **This is the incremental B-versus-A result**, not a plain-main or additive estimate: | Pair | Prerequisite A FPS | Integrated B FPS | Paired FPS change | |---|---:|---:|---:| | 1 | 28.561499 | 29.001937 | +1.542071% | | 2 | 28.505118 | 29.133901 | +2.205860% | Mean paired FPS change **+1.873965%**, 95% Student-t interval (df 1) **[-2.343155%, +6.091085%]**: **inconclusive**, no demonstrated incremental gameplay gain. Sons of Sparta PPSA28997 v01.008.001, stationary restored camp, owned 4K save setting with actual 3840×2160 rendering witnessed in each excluded warmup; 1280×720 X11 client, requested Immediate presentation, dummy audio and unchanged guest cap. Same visible MangoHud observer, 60-second windows, separate owned warm cache seeds. All four ordinary windows pass focus, camp, client-geometry and unchanged-cache checks. All 63 loaded modules match except AGC; reported clocks remain 2,599 MHz. Completed exported intervals include the first interval with its duration. No screenshots, input, build, debugger or profiler during ordinary windows. No general gameplay, hitch or cross-vendor claim. Preparation failures remain retained: the owned package initially used the wrong libc NID-patch recipe; a screenshot race and later Spectacle failures occurred outside timed runs; one candidate diagnostic lost geometry before a user-requested focus pause. After resumption, direct capture of the owned X11 game window repaired readiness/post-window observation. No ordinary run was replaced or discarded. Separate normal eight-second traces give GPU command-span time **M 32.916, A 31.850, B 30.528 ms/present**, with no dropped events. M/A were captured before the focus pause, B after resumption on the same frozen packages and settings. These are diagnostics, not ordinary replicates or confidence estimates. Only `APS5_TRACE_SECONDS=40:8` and `APS5_TRACE_DIR` were used for capture; stdout was unredirected. Summary resolution is API metadata; the excluded warmups establish the 4K rendering setting. [Audited interval CSVs, protocol, exact-revision provenance, validation/count summaries, official digests and original host timing traces](https://gist.github.com/Filip722/e71c2df05bf63b2d9cb70755c1a9ddc4). All 24 files were verified byte-for-byte after upload. Decode the base64 gzip files for Perfetto. Game files, saves, screenshots, shader requests, SPIR-V, IR, ISA, console logs and binaries remain private. Plain main: ```json {"commit":"d34caa9dbe8a","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1153,"ms":8005.156},"presents":224,"frame_ms":{"p50":35.618,"p90":36.44,"p99":38.018,"max":39.706},"gpu_busy_ms_per_present":32.916,"worker_busy_pct":{"queue worker 0x0":78.268},"top_phases_ms_per_frame":{"Driver.Packet":27.865,"Driver.Packet.draw":25.244,"Driver.Draw":25.198,"Driver.Draw.draw_enqueued":21.289,"Recorder.Sync":20.006,"VideoOut.Flip":7.215,"Driver.Present":7.174,"VideoOut.Flip.present":7.149},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-d34caa9dbe8a-348754.json.gz"} ``` Prerequisite control: ```json {"commit":"bdc113ce6809","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1173,"ms":8018.163},"presents":230,"frame_ms":{"p50":34.748,"p90":35.4,"p99":36.649,"max":37.201},"gpu_busy_ms_per_present":31.85,"worker_busy_pct":{"queue worker 0x0":77.715},"top_phases_ms_per_frame":{"Driver.Packet":26.988,"Driver.Packet.draw":24.348,"Driver.Draw":24.309,"Driver.Draw.draw_enqueued":20.494,"Recorder.Sync":19.316,"VideoOut.Flip":7.034,"Driver.Present":6.992,"VideoOut.Flip.present":6.969},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-bdc113ce6809-350169.json.gz"} ``` Integrated change: ```json {"commit":"d6ac9fe9bc75","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_OUTPUT_RESOLUTION":"3840x2160","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:8"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.3.3-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 40:8","first_present":1200,"ms":8009.5},"presents":238,"frame_ms":{"p50":33.576,"p90":34.195,"p99":35.432,"max":35.654},"gpu_busy_ms_per_present":30.528,"worker_busy_pct":{"queue worker 0x0":76.772},"top_phases_ms_per_frame":{"Driver.Packet":25.731,"Driver.Packet.draw":23.188,"Driver.Draw":23.149,"Driver.Draw.draw_enqueued":19.419,"Recorder.Sync":18.328,"VideoOut.Flip":6.916,"Driver.Present":6.871,"VideoOut.Flip.present":6.85},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-d6ac9fe9bc75-382749.json.gz"} ``` Historical evidence remains separate. [The earlier Radeon whole-PR retest](https://gist.github.com/Filip722/0f869d59cb3c11e5c64bfbe74953b1c1) measured `94904838ae90` versus `3a484a00c09e`: +1.644931% mean paired FPS, CI crossing zero. [talha-devp's unadapted RTX 4060 report](https://github.com/boykopovar/AnyPS5/pull/17733#issuecomment-6742111356) found 16.83 → 17.17 ms GPU time, cold pipeline creation about 2.2 → 2.9 s, and loss of #17227's benefit in the old combined build. That adverse report remains valid for its revisions; the updated-head rerun above is a separate comparison. [The original RTX 5070 report](https://github.com/boykopovar/AnyPS5/pull/12548) and [older physical-1440p Radeon validation](https://github.com/boykopovar/AnyPS5/pull/12548#issuecomment-6591155802) likewise remain attributed historical results, not measurements of this head. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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 — `fd58fa5a0213` pinned before validation; subsequent upstream assessment above - [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) and the licence notice of code adapted from upstream (see AGENTS.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: #17227, #4287 (both included and now merged) <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: author current-head runs: NVIDIA GeForce RTX 5060 Laptop GPU, NVIDIA 615.78.08, Bazzite 44 / Linux 7.2.9; AMD Radeon 760M, RADV Mesa 25.0.7, Linux 7.3.3; independent reports: NVIDIA GeForce RTX 4060, NVIDIA 621.14, Windows 10 19045; AMD Radeon RX 6700 XT, AMD 32.0.21045.16010, Windows 11 Enterprise 22621 <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes (original implementation and integration) <!-- yes / no -->
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!17733
No description provided.