perf(shader): bypass identity fragment export mappings #12280

Merged
Filip722 merged 2 commits from upstream-pr/12280 into main 2026-10-29 07:48:15 +00:00
Filip722 commented 2026-10-28 07:05:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-28T07:05:06Z.


What

Registration fragment modules dynamically extract four output components even when the runtime color mapping is the identity. On RADV this emits scalar comparisons, conditional selections and dependency waits for a vector that is already in the required order.

  • Load the mapping byte once and forward the existing vector for identity 0xe4; keep the full mapper for other values and the existing specialization path for non-registration modules.
  • Preserve shared registration/prewarming, cached variant reuse, MRT indexing and the following alpha-to-coverage, target-merge and export-packing work. The fast path performs no arithmetic and preserves float/uint bits.

No guest instruction semantics or rendering quality changes. Focused compilation of the actual materialized game fragment on Radeon 760M skips 58 native instructions in the identity path, including twelve conditional selections and ten dependency waits, with 32 VGPRs and no spills. The retained fallback increases static total from 1018 to 1023; the benefit is less executed work. This compiler check is separate from the gameplay measurements.

Tested

Updated with a merge commit onto main 3a40945e62b7e2543031d5da2b8e351ab603bc1a; original commits are preserved. Current exact head: 90c9d5c8d327063ea30f6e907a192b71daafb018.

The same six focused fixtures ran on current main and this exact head: shader memory, prepared exports, dual-source blending, AR exports and UINT16 exports pass in both. Alpha-to-coverage fails identically for the existing UNORM16_ABGR case (half 0x3800, expected 0.25). Prepared exports emits the same ten pre-existing VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 messages in each. No new failure/VUID, skips or missing-layer warning; all five GPU fixtures loaded Khronos validation and selected the Radeon 760M.

The only SpirvModuleEmitter.cpp delta from measured base ccfb96757f9e to refreshed main is the depth-export clamp plus its <cmath> include; the MRT mapping hunk is unchanged. I parsed all 85 retained modules from the matched baseline camp warmup: all 64 fragment modules lack both BuiltIn FragDepth and DepthReplacing. Thus the depth-export store/clamp cannot execute in that captured fragment path. No shaders or ISA are published. The five original traces and exact-commit confirmation retain their recorded revisions; no fresh current-main FPS claim is made.

Debian 13, Ryzen 5 7640HS / Radeon 760M, RADV Mesa 25.0.7, Sons of Sparta PPSA28997 v01.008.001, stationary camp checkpoint. Baseline ccfb96757f9e was current main when pinned; candidate 2b4efb1dc033 contains only this change. Newer main 0cd07dc4ab25 merges cleanly; its depth-export/libc changes were reviewed but are not claimed as measured.

The prospective A1/B1/B2/A2 comparison improves 20.434 → 20.761 FPS (+1.60%), with positive pairs +2.21% and +0.99%. Baseline range 20.397–20.471; candidate 20.674–20.848 FPS. The predeclared exact-commit confirmation is 20.833 FPS, within the candidate range and +1.77% versus preceding A2; GPU time 45.861 → 44.925 ms/present. All five captures passed, with no numerical exclusions. This supports a modest improvement in this scene on this GPU.

Run Source FPS Frame p50 ms GPU ms/present
A1 main 20.397 48.968 45.895
B1 source-equivalent precommit candidate 20.848 47.915 44.818
B2 source-equivalent precommit candidate 20.674 48.256 45.219
A2 main 20.471 48.721 45.861
C1 exact candidate commit 20.833 47.975 44.925

All captures used the same GPU high power state, restored by the wrapper after each run. Matched copied save and fixed Enter route; internal/output 1920x1080, focused 1152x648 Wayland client, mailbox, independently warmed caches cloned for each run. Loaded native libraries, save/guest-module hashes, cache payloads and continuous focus were verified. Scene checks ran outside the 90:30 windows. Both arms used a 524288-event timing buffer, selected before ordinary captures after a warmup overflowed the default. No ordinary trace dropped events; no per-draw profiling, SQTT, validation, shader dump or readback ran in a timed window. Normal game output retained its PTY; script recorded that PTY.

The two precommit candidate traces honestly retain the baseline commit label; their frozen binary/source hashes prove the production patch is byte-identical to the committed C1. Identical private clock/screenshot/disabled diagnostic hooks explain every dirty flag and are excluded from this commit. Exact-commit VideoOut differs only in its embedded revision literal. The evidence bundle includes the hook patch, frozen binary hashes, audits and all original timing traces, summaries and digests.

All five original timing traces, summaries, full digests, protocol and provenance. The README explains lossless trace decoding and SHA256 verification; no game assets or private hardware captures are included.

Main A2 and exact-commit C1, from tools/trace_digest.py:

seconds 90:30 from present 2438: 615 presents, frame p50 48.7 / p90 49.6 / p99 50.1 / max 50.4 ms, GPU busy 45.9 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ccfb96757f (dirty), dropped: no

{"commit":"ccfb96757f9e","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"524288","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-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 90:30","first_present":2438,"ms":30041.966},"presents":615,"frame_ms":{"p50":48.721,"p90":49.597,"p99":50.095,"max":50.350},"gpu_busy_ms_per_present":45.861,"worker_busy_pct":{"queue worker 0x0":78.752},"top_phases_ms_per_frame":{"Driver.Packet":38.303,"Driver.Packet.draw":35.041,"Driver.Draw":34.967,"Driver.Draw.draw_enqueued":30.243,"Recorder.Sync":28.744,"VideoOut.Flip":9.726,"Driver.Present":9.675,"VideoOut.Flip.present":9.670},"trace_dropped":false,"trace":"aps5-trace-ccfb96757f9e-1528498.json.gz"}

seconds 90:30 from present 2466: 626 presents, frame p50 48.0 / p90 48.6 / p99 49.3 / max 51.9 ms, GPU busy 44.9 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 2b4efb1dc0 (dirty), dropped: no

{"commit":"2b4efb1dc033","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"524288","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-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 90:30","first_present":2466,"ms":30048.433},"presents":626,"frame_ms":{"p50":47.975,"p90":48.638,"p99":49.251,"max":51.933},"gpu_busy_ms_per_present":44.925,"worker_busy_pct":{"queue worker 0x0":78.823},"top_phases_ms_per_frame":{"Driver.Packet":37.672,"Driver.Packet.draw":34.436,"Driver.Draw":34.369,"Driver.Draw.draw_enqueued":29.683,"Recorder.Sync":28.266,"VideoOut.Flip":9.599,"Driver.Present":9.549,"VideoOut.Flip.present":9.544},"trace_dropped":false,"trace":"aps5-trace-2b4efb1dc033-1539013.json.gz"}

The same focused shader-memory, prepared-exports, dual-source-blend, AR-export, uint16-export and alpha-to-coverage fixtures ran on actual Radeon Vulkan with no shader cache and Khronos validation. The first five pass in both revisions. The alpha-to-coverage UNORM16_ABGR case fails identically in both; prepared exports emits the same ten existing VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 messages in both. Layer insertion and device selection were confirmed, without skips or missing-layer warnings; no new failure or VUID was introduced. Existing prepared-exports coverage exercises float/uint, multiple MRTs, mapping changes back to identity, cached/uncached materialization and shared registration variant reuse.

The overlap tool completed; conflicting shared-file diffs were reviewed manually. #6235 changes raw numeric output types, including the mapper scalar type, but does not implement an identity bypass. It is independent work and has a pre-existing conflict with main. No existing PR was integrated or benchmarked.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon 760M (RADV PHOENIX), RADV Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.12-x64v3-xanmod1
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5046587541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12280). Originally posted by [Filip722](https://github.com/Filip722) on 2026-10-28T07:05:06Z. --- ### What Registration fragment modules dynamically extract four output components even when the runtime color mapping is the identity. On RADV this emits scalar comparisons, conditional selections and dependency waits for a vector that is already in the required order. - Load the mapping byte once and forward the existing vector for identity `0xe4`; keep the full mapper for other values and the existing specialization path for non-registration modules. - Preserve shared registration/prewarming, cached variant reuse, MRT indexing and the following alpha-to-coverage, target-merge and export-packing work. The fast path performs no arithmetic and preserves float/uint bits. No guest instruction semantics or rendering quality changes. Focused compilation of the actual materialized game fragment on Radeon 760M skips 58 native instructions in the identity path, including twelve conditional selections and ten dependency waits, with 32 VGPRs and no spills. The retained fallback increases static total from 1018 to 1023; the benefit is less executed work. This compiler check is separate from the gameplay measurements. ### Tested <!-- current-main-refresh-20261028 --> Updated with a merge commit onto main `3a40945e62b7e2543031d5da2b8e351ab603bc1a`; original commits are preserved. Current exact head: `90c9d5c8d327063ea30f6e907a192b71daafb018`. The same six focused fixtures ran on current main and this exact head: shader memory, prepared exports, dual-source blending, AR exports and UINT16 exports pass in both. Alpha-to-coverage fails identically for the existing UNORM16_ABGR case (`half 0x3800`, expected `0.25`). Prepared exports emits the same ten pre-existing `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605` messages in each. No new failure/VUID, skips or missing-layer warning; all five GPU fixtures loaded Khronos validation and selected the Radeon 760M. The only `SpirvModuleEmitter.cpp` delta from measured base `ccfb96757f9e` to refreshed main is the depth-export clamp plus its `<cmath>` include; the MRT mapping hunk is unchanged. I parsed all 85 retained modules from the matched baseline camp warmup: all 64 fragment modules lack both `BuiltIn FragDepth` and `DepthReplacing`. Thus the depth-export store/clamp cannot execute in that captured fragment path. No shaders or ISA are published. The [five original traces and exact-commit confirmation](https://gist.github.com/Filip722/d276e3c8c852f6be71946fdf904b8a92) retain their recorded revisions; no fresh current-main FPS claim is made. Debian 13, Ryzen 5 7640HS / Radeon 760M, RADV Mesa 25.0.7, Sons of Sparta PPSA28997 v01.008.001, stationary camp checkpoint. Baseline `ccfb96757f9e` was current main when pinned; candidate `2b4efb1dc033` contains only this change. Newer main `0cd07dc4ab25` merges cleanly; its depth-export/libc changes were reviewed but are not claimed as measured. The prospective A1/B1/B2/A2 comparison improves **20.434 → 20.761 FPS (+1.60%)**, with positive pairs **+2.21% and +0.99%**. Baseline range 20.397–20.471; candidate 20.674–20.848 FPS. The predeclared exact-commit confirmation is **20.833 FPS**, within the candidate range and **+1.77%** versus preceding A2; GPU time **45.861 → 44.925 ms/present**. All five captures passed, with no numerical exclusions. This supports a modest improvement in this scene on this GPU. | Run | Source | FPS | Frame p50 ms | GPU ms/present | |---|---|---:|---:|---:| | A1 | main | 20.397 | 48.968 | 45.895 | | B1 | source-equivalent precommit candidate | 20.848 | 47.915 | 44.818 | | B2 | source-equivalent precommit candidate | 20.674 | 48.256 | 45.219 | | A2 | main | 20.471 | 48.721 | 45.861 | | C1 | exact candidate commit | 20.833 | 47.975 | 44.925 | All captures used the same GPU `high` power state, restored by the wrapper after each run. Matched copied save and fixed Enter route; internal/output 1920x1080, focused 1152x648 Wayland client, mailbox, independently warmed caches cloned for each run. Loaded native libraries, save/guest-module hashes, cache payloads and continuous focus were verified. Scene checks ran outside the 90:30 windows. Both arms used a 524288-event timing buffer, selected before ordinary captures after a warmup overflowed the default. No ordinary trace dropped events; no per-draw profiling, SQTT, validation, shader dump or readback ran in a timed window. Normal game output retained its PTY; `script` recorded that PTY. The two precommit candidate traces honestly retain the baseline commit label; their frozen binary/source hashes prove the production patch is byte-identical to the committed C1. Identical private clock/screenshot/disabled diagnostic hooks explain every dirty flag and are excluded from this commit. Exact-commit VideoOut differs only in its embedded revision literal. The evidence bundle includes the hook patch, frozen binary hashes, audits and all original timing traces, summaries and digests. [All five original timing traces, summaries, full digests, protocol and provenance](https://gist.github.com/Filip722/d276e3c8c852f6be71946fdf904b8a92). The README explains lossless trace decoding and SHA256 verification; no game assets or private hardware captures are included. Main A2 and exact-commit C1, from `tools/trace_digest.py`: **seconds 90:30** from present 2438: 615 presents, frame p50 48.7 / p90 49.6 / p99 50.1 / max 50.4 ms, GPU busy 45.9 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ccfb96757f9e (dirty), dropped: no ```json {"commit":"ccfb96757f9e","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"524288","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-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 90:30","first_present":2438,"ms":30041.966},"presents":615,"frame_ms":{"p50":48.721,"p90":49.597,"p99":50.095,"max":50.350},"gpu_busy_ms_per_present":45.861,"worker_busy_pct":{"queue worker 0x0":78.752},"top_phases_ms_per_frame":{"Driver.Packet":38.303,"Driver.Packet.draw":35.041,"Driver.Draw":34.967,"Driver.Draw.draw_enqueued":30.243,"Recorder.Sync":28.744,"VideoOut.Flip":9.726,"Driver.Present":9.675,"VideoOut.Flip.present":9.670},"trace_dropped":false,"trace":"aps5-trace-ccfb96757f9e-1528498.json.gz"} ``` **seconds 90:30** from present 2466: 626 presents, frame p50 48.0 / p90 48.6 / p99 49.3 / max 51.9 ms, GPU busy 44.9 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 2b4efb1dc033 (dirty), dropped: no ```json {"commit":"2b4efb1dc033","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"524288","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-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 90:30","first_present":2466,"ms":30048.433},"presents":626,"frame_ms":{"p50":47.975,"p90":48.638,"p99":49.251,"max":51.933},"gpu_busy_ms_per_present":44.925,"worker_busy_pct":{"queue worker 0x0":78.823},"top_phases_ms_per_frame":{"Driver.Packet":37.672,"Driver.Packet.draw":34.436,"Driver.Draw":34.369,"Driver.Draw.draw_enqueued":29.683,"Recorder.Sync":28.266,"VideoOut.Flip":9.599,"Driver.Present":9.549,"VideoOut.Flip.present":9.544},"trace_dropped":false,"trace":"aps5-trace-2b4efb1dc033-1539013.json.gz"} ``` The same focused shader-memory, prepared-exports, dual-source-blend, AR-export, uint16-export and alpha-to-coverage fixtures ran on actual Radeon Vulkan with no shader cache and Khronos validation. The first five pass in both revisions. The alpha-to-coverage UNORM16_ABGR case fails identically in both; prepared exports emits the same ten existing `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605` messages in both. Layer insertion and device selection were confirmed, without skips or missing-layer warnings; no new failure or VUID was introduced. Existing prepared-exports coverage exercises float/uint, multiple MRTs, mapping changes back to identity, cached/uncached materialization and shared registration variant reuse. The overlap tool completed; conflicting shared-file diffs were reviewed manually. #6235 changes raw numeric output types, including the mapper scalar type, but does not implement an identity bypass. It is independent work and has a pre-existing conflict with main. No existing PR was integrated or benchmarked. <!-- 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 - [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 <!-- #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: AMD Radeon 760M (RADV PHOENIX), RADV Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.12-x64v3-xanmod1 <!-- 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 <!-- yes / no -->
MarcZX10 commented 2026-10-28 08:53:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T08:53:26Z.

Review: CHANGES_REQUESTED


The identity fast path and the report are well covered on the pinned base. The head is now behind current main, and current SpirvModuleEmitter.cpp includes the intervening depth-export clamp change (7ec9ce9132) in the same function. Please update the branch and rerun the required focused shader validation against current main and the updated head. Since the compared production source has changed in the same emitter file, please also refresh the performance pair or show that the depth-export change does not affect the measured scene/path. The current hosted shader/GPU jobs are skipped, so the older report is the only evidence at present.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5680018570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12280#pullrequestreview-5680018570). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T08:53:26Z. **Review:** CHANGES_REQUESTED --- The identity fast path and the report are well covered on the pinned base. The head is now behind current `main`, and current `SpirvModuleEmitter.cpp` includes the intervening depth-export clamp change (`7ec9ce9132`) in the same function. Please update the branch and rerun the required focused shader validation against current `main` and the updated head. Since the compared production source has changed in the same emitter file, please also refresh the performance pair or show that the depth-export change does not affect the measured scene/path. The current hosted shader/GPU jobs are skipped, so the older report is the only evidence at present.
imellag commented 2026-10-28 18:45:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-28T18:45:02Z.

Review: APPROVED


macOS / MoltenVK data point. Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. main doesn't run titles on macOS yet, so the base is a support branch, not main: main 750cf6cf48 + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone.

Two alternated runs per side, warm shader cache, APS5_TRACE_SUMMARY_EVERY=10:

base with the eight PRs
God of War Sons of Sparta (PPSA28997), fps from 30 s 51.5 / 51.8 51.6 / 51.8
GoW GPU ms/present, gameplay before the fight / in the fight 13.6 / 19.6 13.5 / 19.5
Planet of Lana (PPSA19450), fps from 85 s 32.2 / 32.7 32.5 / 32.6

Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here.

Focused tests below ran with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on the same two trees; the layer was found and both logs have the same VUID- lines (12 VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, 20 VUID-vkCreateDescriptorSetLayout-support-09582, from tests that fail the same way on the base).

This PR on MoltenVK: agc_driver_alpha_to_coverage, agc_driver_dual_source_blend, agc_driver_pixel32_ar_export, agc_driver_pixel_uint16_export, agc_driver_prepared_exports and agc_shader_memory pass on the base and with this PR (agc_driver_alpha_to_coverage passes here, so the UNORM16_ABGR failure in the description is RADV-only). The identity check costs one compare and branch on the identity path and keeps the full mapper otherwise. Approving from the macOS side.

AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687924941 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12280#pullrequestreview-5687924941). Originally posted by [imellag](https://github.com/imellag) on 2026-10-28T18:45:02Z. **Review:** APPROVED --- **macOS / MoltenVK data point.** Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. `main` doesn't run titles on macOS yet, so the base is a support branch, not `main`: `main` `750cf6cf48` + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone. Two alternated runs per side, warm shader cache, `APS5_TRACE_SUMMARY_EVERY=10`: | | base | with the eight PRs | |---|---|---| | God of War Sons of Sparta (PPSA28997), fps from 30 s | 51.5 / 51.8 | 51.6 / 51.8 | | GoW GPU ms/present, gameplay before the fight / in the fight | 13.6 / 19.6 | 13.5 / 19.5 | | Planet of Lana (PPSA19450), fps from 85 s | 32.2 / 32.7 | 32.5 / 32.6 | Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here. Focused tests below ran with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` on the same two trees; the layer was found and both logs have the same `VUID-` lines (12 `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605`, 20 `VUID-vkCreateDescriptorSetLayout-support-09582`, from tests that fail the same way on the base). **This PR on MoltenVK:** `agc_driver_alpha_to_coverage`, `agc_driver_dual_source_blend`, `agc_driver_pixel32_ar_export`, `agc_driver_pixel_uint16_export`, `agc_driver_prepared_exports` and `agc_shader_memory` pass on the base and with this PR (`agc_driver_alpha_to_coverage` passes here, so the UNORM16_ABGR failure in the description is RADV-only). The identity check costs one compare and branch on the identity path and keeps the full mapper otherwise. Approving from the macOS side. AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)
MarcZX10 commented 2026-10-29 06:16:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:16:52Z.

Review: APPROVED


Re-checked — approved

The exact head 90c9d5c8d327063ea30f6e907a192b71daafb018 incorporates the depth-export clamp from the refreshed base. The author reports the six relevant Vulkan fixtures passing on both baseline and change, including a second Windows/NVIDIA run (three repetitions, 6/6 each side) with no new validation messages; the pre-existing prepared-export VUIDs match on both sides. The PR includes the requested matched Demon’s Souls trace summaries and digests.

I verified the current-main merge preview is clean and neither SpirvModuleEmitter.cpp nor the other changed paths have additional main-side edits since the refreshed base used for testing. Hosted policy and relinker checks pass; product jobs are skipped. I did not run GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693622255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12280#pullrequestreview-5693622255). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:16:52Z. **Review:** APPROVED --- ## Re-checked — approved The exact head `90c9d5c8d327063ea30f6e907a192b71daafb018` incorporates the depth-export clamp from the refreshed base. The author reports the six relevant Vulkan fixtures passing on both baseline and change, including a second Windows/NVIDIA run (three repetitions, 6/6 each side) with no new validation messages; the pre-existing prepared-export VUIDs match on both sides. The PR includes the requested matched Demon’s Souls trace summaries and digests. I verified the current-main merge preview is clean and neither `SpirvModuleEmitter.cpp` nor the other changed paths have additional main-side edits since the refreshed base used for testing. Hosted policy and relinker checks pass; product jobs are skipped. I did not run GPU tests locally.
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!12280
No description provided.