fix(recompiler): run vertex programs as one-lane waves without vertex subgroups #4470

Merged
overlordxrz-source merged 1 commit from upstream-pr/4470 into main 2026-10-12 18:34:14 +00:00
overlordxrz-source commented 2026-10-12 12:50:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-12T12:50:47Z.


What

On lavapipe and MoltenVK every vertex program that declares a subgroup capability is refused by the driver's shader validation (ShaderValidation.cpp:205):

AGC graphics: subgroup capability 61 is unsupported for shader stage 1

Capability 61 is GroupNonUniform and stage 1 is VK_SHADER_STAGE_VERTEX_BIT. Most vertex programs declare it, because the entry EXEC is a ballot. Neither driver lists the vertex stage in subgroupSupportedStages:

  • lavapipe: FRAGMENT | COMPUTE | TASK_EXT | MESH_EXT (lvp_device.c, Mesa main)
  • MoltenVK: FRAGMENT | COMPUTE, plus TESSELLATION_CONTROL when tessellation is on (MVKDevice.mm, populateSubgroupProperties). #1565 measured the same set on an M1 Pro and skipped agc_driver_exec_host_lanes's vertex draw there.

The validation is right to refuse these modules, so this PR changes what the recompiler emits for vertex programs on such devices.

How.

  • SpirvTarget::vertexSubgroups (default true) records whether the device's subgroupSupportedStages has VK_SHADER_STAGE_VERTEX_BIT. VulkanDevice::buildTarget sets it. It is part of the cache key and of the serialized request (version 17 → 18; older requests read as true).
  • When it is false, HostSubgroupSize gives vertex and local programs a host subgroup of 1 lane. The existing narrow-host machinery takes it from there, so each invocation runs as a wave of one lane:
    • s3 is 1 | 1 << 8 (one vertex, one primitive), next to the 32 | 32 << 8 that #3546 added for 32-lane hosts;
    • the lane id is 0 and no SubgroupLocalInvocationId is declared;
    • a ballot is (p ? 1 : 0, 0, 0, 0), the find-LSB of a ballot is FindILsb of its first word, a shuffle returns the invocation's own value, an elect is true;
    • a matched half-wave reduction read (#2449-#2451) is the key itself for lane 31 and the identity for lane 63.
  • The GroupNonUniform* instructions now go through four helpers in SpirvSubgroup.cpp (EmitSubgroupBallot, EmitSubgroupBallotFindLsb, EmitSubgroupShuffle, EmitSubgroupElect), which emit the subgroup instruction as before or the one-lane form. The call sites keep their ID allocation order.
  • Pixel, compute, mesh and tessellation programs are unchanged, and so is every program on a device whose vertex stage has subgroups.

Why results are right for the lanes that exist. Each lowering is what the subgroup instruction returns in a subgroup of exactly one invocation. A wave with one vertex is also a wave the console launches, and s3 now says so. EXEC starts as ballot(true) = lane 0, so v_mbcnt, s_ff1/v_readlane waterfalls, v_readfirstlane, saveexec and branches compute what they compute for lane 0 of such a wave. Cross-lane reads keep the rules narrow hosts already have (TechnicalDebt, "lanes outside the host subgroup"):

  • a constant v_readlane_b32 of lane ≥ 1 and v_permlanex16_b32 throw (... is outside the 1-lane host subgroup ...), as they do on 8-lane hosts today;
  • v_permlane16_b32 without fetch-inactive, ds_swizzle, ds_bpermute and DPP take any other lane as inactive (old value or 0).

Limits.

  • A program that turns on lanes the wave did not launch (s_mov_b64 exec, -1) and reads them still differs from the console, as on any narrow host. The Unreal NGG culling scan from #2783 is such a program. On these devices it now throws at v_permlanex16_b32 in the recompiler instead of at shader validation; matching it on one lane would need the #3546 proofs redone for s3 = 1, which is not in this PR.
  • Tessellation control/evaluation and geometry are not covered. lavapipe also leaves them out of subgroupSupportedStages; I kept this PR to the vertex stage the error names.
  • Vertex invocations no longer share a subgroup, so a draw on these devices does wave-wide work once per vertex. Devices with vertex subgroups are not affected.

Related: #3891 (draft, Apple ARM64 AOT) folds away a constant LaneId < 32 mask so its cube shader avoids the vertex capability on MoltenVK. That removes the capability for one shape only; this PR covers any vertex program.

Tested

Rig evidence (before this change): our Linux sweep on main b42ef24e with Mesa lavapipe stops eight homebrew titles at the error above: Stremio Plus, ProsperoStore, EVO Player, OpenNOW, PS5VR, Jelly5, Emby5 and Nuvio PS5. They have not been rerun with this change, so whether they get further, and where they stop next, is unknown until a rig rerun.

This change, on main 3d8ffeb27, in an aarch64 Linux sandbox with zig 0.17 (clang) and no GPU:

  • agc_shader_memory, new verifySingleLaneVertexWave:
    • with vertexSubgroups = false, a lane-op program (v_mbcnt_lo/hi, v_readfirstlane_b32, v_readlane_b32 lane 0) and an s_ff1_i32_b64 waterfall build with no GroupNonUniform* capability, instruction or subgroup built-in; with true both use them;
    • s3 is 0x101 without vertex subgroups (the same module for device subgroup sizes 4 and 32), and 0x4040 with them on 64 lanes;
    • a constant read of lane 31 throws outside the 1-lane host subgroup, and builds on a 32-lane vertex subgroup;
    • a pixel program keeps its subgroup operations when only the vertex stage lacks them;
    • the flag survives serialization, the replayed request builds the same module, and the flag changes the cache key.
    • The serialization test now expects version 18 and rejects 19.
  • The recompiler library and ShaderMemory.cpp built natively. 35 of the 36 agc_shader_memory functions pass, including verifyLanesOutsideHostSubgroup, verifyHalfWaveReduction, verifyNarrowVertexWave and the new one. verifyGuardedNullPointers can't run in that harness: it reads guest memory through a stubbed GuestMemory.
  • 8 programs (the above, lane 31/63 reads, v_permlane16_b32, v_permlanex16_b32, the #2783 culling scan) as vertex and pixel programs × wave32/64 × subgroup sizes 4/8/32/64, 128 compilations with vertex subgroups on (the default): all 96 modules that build are byte-identical to main's. The 32 that throw give the same messages; only the request version embedded in the message changes.
  • The same 64 vertex compilations without vertex subgroups: all 36 modules that build pass spirv-val --target-env vulkan1.1 (SPIRV-Tools 2026.4) and use no subgroup capability. The 28 that throw are the constant lane ≥ 1 and v_permlanex16_b32 reads above. The pixel modules are byte-identical to main's.
  • x86_64-windows-gnu -fsyntax-only of every changed .cpp (including VulkanDevice.cpp and ShaderMemory.cpp): no errors, no warnings on changed lines.
  • tools/check_conventions.py --base origin/main passes.

Not tested: a Windows build or run, any run on lavapipe, MoltenVK or another GPU, and any title.

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 in TechnicalDebt
  • 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
  • Unblocks: all eight titles move past it on the rig (lavapipe, 120 s): Stremio Plus and ProsperoStore reach last provoking vertex with explicit per-vertex flat interpolation is unsupported; EVO Player, OpenNOW, PS5VR, Jelly5 and Emby5 run past the 120 s timeout with no stop; Nuvio PS5 throws std::logic_error from a later stage
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4829661906 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-12T12:50:47Z. --- ### What On lavapipe and MoltenVK every vertex program that declares a subgroup capability is refused by the driver's shader validation (`ShaderValidation.cpp:205`): ``` AGC graphics: subgroup capability 61 is unsupported for shader stage 1 ``` Capability 61 is `GroupNonUniform` and stage 1 is `VK_SHADER_STAGE_VERTEX_BIT`. Most vertex programs declare it, because the entry EXEC is a ballot. Neither driver lists the vertex stage in `subgroupSupportedStages`: - lavapipe: `FRAGMENT | COMPUTE | TASK_EXT | MESH_EXT` ([`lvp_device.c`](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/gallium/frontends/lavapipe/lvp_device.c#L1103-L1106), Mesa `main`) - MoltenVK: `FRAGMENT | COMPUTE`, plus `TESSELLATION_CONTROL` when tessellation is on ([`MVKDevice.mm`, `populateSubgroupProperties`](https://github.com/KhronosGroup/MoltenVK/blob/main/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L1484-L1490)). #1565 measured the same set on an M1 Pro and skipped `agc_driver_exec_host_lanes`'s vertex draw there. The validation is right to refuse these modules, so this PR changes what the recompiler emits for vertex programs on such devices. **How.** - `SpirvTarget::vertexSubgroups` (default `true`) records whether the device's `subgroupSupportedStages` has `VK_SHADER_STAGE_VERTEX_BIT`. `VulkanDevice::buildTarget` sets it. It is part of the cache key and of the serialized request (version 17 → 18; older requests read as `true`). - When it is `false`, `HostSubgroupSize` gives vertex and local programs a host subgroup of 1 lane. The existing narrow-host machinery takes it from there, so each invocation runs as a wave of one lane: - `s3` is `1 | 1 << 8` (one vertex, one primitive), next to the `32 | 32 << 8` that #3546 added for 32-lane hosts; - the lane id is 0 and no `SubgroupLocalInvocationId` is declared; - a ballot is `(p ? 1 : 0, 0, 0, 0)`, the find-LSB of a ballot is `FindILsb` of its first word, a shuffle returns the invocation's own value, an elect is `true`; - a matched half-wave reduction read (#2449-#2451) is the key itself for lane 31 and the identity for lane 63. - The `GroupNonUniform*` instructions now go through four helpers in `SpirvSubgroup.cpp` (`EmitSubgroupBallot`, `EmitSubgroupBallotFindLsb`, `EmitSubgroupShuffle`, `EmitSubgroupElect`), which emit the subgroup instruction as before or the one-lane form. The call sites keep their ID allocation order. - Pixel, compute, mesh and tessellation programs are unchanged, and so is every program on a device whose vertex stage has subgroups. **Why results are right for the lanes that exist.** Each lowering is what the subgroup instruction returns in a subgroup of exactly one invocation. A wave with one vertex is also a wave the console launches, and `s3` now says so. EXEC starts as `ballot(true)` = lane 0, so `v_mbcnt`, `s_ff1`/`v_readlane` waterfalls, `v_readfirstlane`, saveexec and branches compute what they compute for lane 0 of such a wave. Cross-lane reads keep the rules narrow hosts already have (TechnicalDebt, "lanes outside the host subgroup"): - a constant `v_readlane_b32` of lane ≥ 1 and `v_permlanex16_b32` throw (`... is outside the 1-lane host subgroup ...`), as they do on 8-lane hosts today; - `v_permlane16_b32` without fetch-inactive, `ds_swizzle`, `ds_bpermute` and DPP take any other lane as inactive (old value or 0). **Limits.** - A program that turns on lanes the wave did not launch (`s_mov_b64 exec, -1`) and reads them still differs from the console, as on any narrow host. The Unreal NGG culling scan from #2783 is such a program. On these devices it now throws at `v_permlanex16_b32` in the recompiler instead of at shader validation; matching it on one lane would need the #3546 proofs redone for `s3 = 1`, which is not in this PR. - Tessellation control/evaluation and geometry are not covered. lavapipe also leaves them out of `subgroupSupportedStages`; I kept this PR to the vertex stage the error names. - Vertex invocations no longer share a subgroup, so a draw on these devices does wave-wide work once per vertex. Devices with vertex subgroups are not affected. Related: #3891 (draft, Apple ARM64 AOT) folds away a constant `LaneId < 32` mask so its cube shader avoids the vertex capability on MoltenVK. That removes the capability for one shape only; this PR covers any vertex program. ### Tested Rig evidence (before this change): our Linux sweep on `main` b42ef24e with Mesa lavapipe stops eight homebrew titles at the error above: Stremio Plus, ProsperoStore, EVO Player, OpenNOW, PS5VR, Jelly5, Emby5 and Nuvio PS5. They have not been rerun with this change, so whether they get further, and where they stop next, is unknown until a rig rerun. This change, on `main` 3d8ffeb27, in an aarch64 Linux sandbox with zig 0.17 (clang) and no GPU: - `agc_shader_memory`, new `verifySingleLaneVertexWave`: - with `vertexSubgroups = false`, a lane-op program (`v_mbcnt_lo/hi`, `v_readfirstlane_b32`, `v_readlane_b32` lane 0) and an `s_ff1_i32_b64` waterfall build with no `GroupNonUniform*` capability, instruction or subgroup built-in; with `true` both use them; - `s3` is `0x101` without vertex subgroups (the same module for device subgroup sizes 4 and 32), and `0x4040` with them on 64 lanes; - a constant read of lane 31 throws `outside the 1-lane host subgroup`, and builds on a 32-lane vertex subgroup; - a pixel program keeps its subgroup operations when only the vertex stage lacks them; - the flag survives serialization, the replayed request builds the same module, and the flag changes the cache key. - The serialization test now expects version 18 and rejects 19. - The recompiler library and `ShaderMemory.cpp` built natively. 35 of the 36 `agc_shader_memory` functions pass, including `verifyLanesOutsideHostSubgroup`, `verifyHalfWaveReduction`, `verifyNarrowVertexWave` and the new one. `verifyGuardedNullPointers` can't run in that harness: it reads guest memory through a stubbed `GuestMemory`. - 8 programs (the above, lane 31/63 reads, `v_permlane16_b32`, `v_permlanex16_b32`, the #2783 culling scan) as vertex and pixel programs × wave32/64 × subgroup sizes 4/8/32/64, 128 compilations with vertex subgroups on (the default): all 96 modules that build are byte-identical to `main`'s. The 32 that throw give the same messages; only the request version embedded in the message changes. - The same 64 vertex compilations without vertex subgroups: all 36 modules that build pass `spirv-val --target-env vulkan1.1` (SPIRV-Tools 2026.4) and use no subgroup capability. The 28 that throw are the constant lane ≥ 1 and `v_permlanex16_b32` reads above. The pixel modules are byte-identical to `main`'s. - x86_64-windows-gnu `-fsyntax-only` of every changed `.cpp` (including `VulkanDevice.cpp` and `ShaderMemory.cpp`): no errors, no warnings on changed lines. - `tools/check_conventions.py --base origin/main` passes. Not tested: a Windows build or run, any run on lavapipe, MoltenVK or another GPU, and any title. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] Unblocks: all eight titles move past it on the rig (lavapipe, 120 s): Stremio Plus and ProsperoStore reach `last provoking vertex with explicit per-vertex flat interpolation is unsupported`; EVO Player, OpenNOW, PS5VR, Jelly5 and Emby5 run past the 120 s timeout with no stop; Nuvio PS5 throws `std::logic_error` from a later stage - [x] AI-assisted: yes
Dextroid17 commented 2026-10-12 14:35:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T14:35:13Z.

Review: COMMENTED


PPSA28997 gets past this wall on lavapipe with this PR's libs. The case this body describes — a device whose vertex stage has no subgroups — is the one here: Selected GPU name=llvmpipe (LLVM 23.1.1, 256 bits) vendor=0x10005 device=0x0 subgroup=8, on which the run used to abort with exactly that error.

Same relinked app.elf and the same staged tree for both runs; only libs/ was replaced. Logs: ~/rea-work/gow-run4.log (before) and ~/rea-work/gow-run5.log (after), launched the same way:

systemd-run --user --scope -p MemoryMax=22G -p MemorySwapMax=8G -- \
  env VK_ICD_FILENAMES=…/lavapipe/lvp_icd_abs.json DISPLAY=:0 timeout 600 ./app.elf

Before — libs from a main-era build (33ae282e4), gow-run4.log:152-158:

[videoout] presentation failed: AGC graphics: subgroup capability 61 is unsupported for shader stage 1
terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: subgroup capability 61 is unsupported for shader stage 1
run4 exit=134

That is 12 s of run (09:55:03 → 09:55:15), 10 StorageTexture lines and one rect-list draw, dead at the first presentation — before the shader cache flushed any totals, which is why there is none to compare below.

After — this PR rebased onto 57dc13602 (applied without conflicts, 048b59c3a) and built, gow-run5.log:

run5 (PR #4470 libs) start 2026-10-12T10:05:33-04:00
[shader-disk-cache] (10 s): 0 hits, 4 misses, 5 writes (0.2 MiB), 0 load failures, 0 write failures; 0.0 MiB read in 0.7 ms (totals: 0 hits, 90 misses, 90 writes)
[PS5VideoMedia] INFO: AvPlayerResource FreeDirectMemory 3342336
[src/PadInput.cpp:54 openController] Pad: connected game controller: PS4 Controller (type 4, sensors accel=1 gyro=1, touchpads=1, led=1, trigger rumble=0)
run5 exit=124
  • The subgroup capability error and any [videoout] presentation failed line are absent from the after log altogether (0 occurrences each, against 2 and 1 before).
  • The run went further: 44 StorageTexture lines — 11×1920x1080, 10×2048x1088, 10×1024x544, 8×128x1 and smaller, vk formats 37×11, 9×10, 16×10, 76×8, 122×4, 100×1 — one rect-list draw, ten AvPlayerResource FreeDirectMemory INFO lines, a pad connect.
  • It was still running when the 600 s wrapper killed it (run5 exit=124, 10:05:33 → 10:15:43); the timeout path dumps core, so that is a kill rather than a clean exit.
  • The cache key moved with the change: the after log's directory is …/shader_cache/7ec63b111d1bd1ac (source version 7ec63b111d1bd1ac, format 27) where the before run's was 2169f238263a0f90 — those are ShaderCacheVersion source versions, not commits — and the totals are (totals: 0 hits, 90 misses, 90 writes) with 0 load and 0 write failures in that interval. A new key selects a new empty directory; the old one is still on disk with its 86 files. CacheKey.hpp is in this diff, so the move is expected.

Attribution. git log 0ef9dc928..57dc13602 -- core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp core/shader/recompiler core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp is empty (19 commits in that span), so for these paths the two builds differ only by this PR. The two builds do also differ by main's nine other commits in between, which I did not control — so this shows the change is enough to get past the wall here, not that nothing else contributed.

The SHAs, for whoever re-checks: before-sha 33ae282e4; PR head 0bcff53b2 (parent 0ef9dc928); the rebase tested, 048b59c3a (parent 57dc13602, current main). The before libs are no longer in the staged tree — it was rebuilt at 10:02, so only gow-run4.log carries that state.

Caveats. Not gameplay: after the pad line the log has three teardown lines and then the kill, so this is "past the wall, title alive". AvPlayer shows only that repeated free-memory INFO line, so "the intro video is playing" would be an inference the log does not support. All of it is lavapipe — no real-GPU comparison. And this title needed its own PSN plugin parked (run-gow/.disabled/PSN.prx.guest.prx) before it reached presentation at all; that is a separate crash in that plugin's initialiser, unrelated to this change.

Posting as an observation only — nothing requested, and I have no PR against this path.

Written with AI assistance.

Hermes Agent 🤖 at your service

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5492234069 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#pullrequestreview-5492234069). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-12T14:35:13Z. **Review:** COMMENTED --- **PPSA28997 gets past this wall on lavapipe with this PR's libs.** The case this body describes — a device whose vertex stage has no subgroups — is the one here: `Selected GPU name=llvmpipe (LLVM 23.1.1, 256 bits) vendor=0x10005 device=0x0 subgroup=8`, on which the run used to abort with exactly that error. Same relinked `app.elf` and the same staged tree for both runs; only `libs/` was replaced. Logs: `~/rea-work/gow-run4.log` (before) and `~/rea-work/gow-run5.log` (after), launched the same way: ``` systemd-run --user --scope -p MemoryMax=22G -p MemorySwapMax=8G -- \ env VK_ICD_FILENAMES=…/lavapipe/lvp_icd_abs.json DISPLAY=:0 timeout 600 ./app.elf ``` **Before** — libs from a main-era build (`33ae282e4`), `gow-run4.log:152-158`: ``` [videoout] presentation failed: AGC graphics: subgroup capability 61 is unsupported for shader stage 1 terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: subgroup capability 61 is unsupported for shader stage 1 run4 exit=134 ``` That is 12 s of run (09:55:03 → 09:55:15), 10 `StorageTexture` lines and one rect-list draw, dead at the first presentation — before the shader cache flushed any totals, which is why there is none to compare below. **After** — this PR rebased onto `57dc13602` (applied without conflicts, `048b59c3a`) and built, `gow-run5.log`: ``` run5 (PR #4470 libs) start 2026-10-12T10:05:33-04:00 [shader-disk-cache] (10 s): 0 hits, 4 misses, 5 writes (0.2 MiB), 0 load failures, 0 write failures; 0.0 MiB read in 0.7 ms (totals: 0 hits, 90 misses, 90 writes) [PS5VideoMedia] INFO: AvPlayerResource FreeDirectMemory 3342336 [src/PadInput.cpp:54 openController] Pad: connected game controller: PS4 Controller (type 4, sensors accel=1 gyro=1, touchpads=1, led=1, trigger rumble=0) run5 exit=124 ``` - The `subgroup capability` error and any `[videoout] presentation failed` line are absent from the after log altogether (0 occurrences each, against 2 and 1 before). - The run went further: 44 `StorageTexture` lines — 11×1920x1080, 10×2048x1088, 10×1024x544, 8×128x1 and smaller, vk formats 37×11, 9×10, 16×10, 76×8, 122×4, 100×1 — one rect-list draw, ten `AvPlayerResource FreeDirectMemory` INFO lines, a pad connect. - It was still running when the 600 s wrapper killed it (`run5 exit=124`, 10:05:33 → 10:15:43); the timeout path dumps core, so that is a kill rather than a clean exit. - The cache key moved with the change: the after log's directory is `…/shader_cache/7ec63b111d1bd1ac (source version 7ec63b111d1bd1ac, format 27)` where the before run's was `2169f238263a0f90` — those are `ShaderCacheVersion` source versions, not commits — and the totals are `(totals: 0 hits, 90 misses, 90 writes)` with 0 load and 0 write failures in that interval. A new key selects a new empty directory; the old one is still on disk with its 86 files. `CacheKey.hpp` is in this diff, so the move is expected. **Attribution.** `git log 0ef9dc928..57dc13602 -- core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp core/shader/recompiler core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` is empty (19 commits in that span), so for these paths the two builds differ only by this PR. The two builds do also differ by main's nine other commits in between, which I did not control — so this shows the change is enough to get past the wall here, not that nothing else contributed. The SHAs, for whoever re-checks: before-sha `33ae282e4`; PR head `0bcff53b2` (parent `0ef9dc928`); the rebase tested, `048b59c3a` (parent `57dc13602`, current `main`). The before libs are no longer in the staged tree — it was rebuilt at 10:02, so only `gow-run4.log` carries that state. **Caveats.** Not gameplay: after the pad line the log has three teardown lines and then the kill, so this is "past the wall, title alive". `AvPlayer` shows only that repeated free-memory INFO line, so "the intro video is playing" would be an inference the log does not support. All of it is lavapipe — no real-GPU comparison. And this title needed its own PSN plugin parked (`run-gow/.disabled/PSN.prx.guest.prx`) before it reached presentation at all; that is a separate crash in that plugin's initialiser, unrelated to this change. Posting as an observation only — nothing requested, and I have no PR against this path. Written with AI assistance. Hermes Agent 🤖 at your service
Xabilimon1 commented 2026-10-12 15:31:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Xabilimon1 on 2026-10-12T15:31:27Z.


Tested this PR on MoltenVK, since the description lists that as not tested.

Setup: Apple M3, macOS 27.0.1 (26A434), x86-64 under Rosetta, Vulkan SDK 1.4.363.0 with MoltenVK 1.4.2. vulkaninfo reports subgroupSize = 32 and subgroupSupportedStages = TESSELLATION_CONTROL | FRAGMENT | COMPUTE.

Base: mugurc:macos-port (de3ef5d53) merged with main 0ef9dc928 (this PR's base), then this PR (0bcff53b2) on top. Two things in that base are mine and not in either branch:

  • three local build fixes, because code main added since the last re-stack does not compile on macOS: O_DIRECT in DescriptorControl.cpp, the physical-span blocks in DirectMemory.cpp (__linux__ only, while WatchMapping also builds on __APPLE__), and missing <initializer_list> / <sys/mman.h> includes in GuestGetrlimit.cpp and GuestKernelStackProtect.cpp;
  • this PR conflicts with macos-port in five recompiler files: its commit 47bf3675a already routes shuffles and ballots through EmitLaneShuffle / EmitLaneBallot (results stored via EmitConvergentResult). I kept those helpers and made them emit through EmitSubgroupShuffle / EmitSubgroupBallot. @mugurc, this will need the same merge when macos-port is re-stacked.

Results (ctest -j1 --timeout 30, without lds_atomics64, flip and video_out, 920 tests, same set of skips in both runs):

failed
without this PR 23
with this PR 21
  • agc_driver_ngg_vertex_wave_info fails without the PR (subgroup capability 61 is unsupported for shader stage 1) and passes with it (3 of 3 runs alone).
  • patched_libraries timed out at 30 s in the run without the PR and passed in 3 s in the run with it. @DavidSamir reported it timing out under load on #1, so I don't count it as an effect of this PR.
  • No test that passed without the PR fails with it.

With the vertex-subgroup skips removed locally from the tests (not part of this PR):

  • agc_driver_exec_host_lanes: the vertex draw passes, 3 of 3.
  • agc_driver_ngg_vertex_wave_reduction: v_permlanex16_b32 from lanes 16-31 is outside the 1-lane host subgroup that runs this wave64 program at one lane per invocation, 3 of 3. That is the limit described in the PR, so its skip should stay.

Not tested: any title, lavapipe, Windows.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6127400836 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6127400836). Originally posted by [Xabilimon1](https://github.com/Xabilimon1) on 2026-10-12T15:31:27Z. --- Tested this PR on MoltenVK, since the description lists that as not tested. **Setup:** Apple M3, macOS 27.0.1 (26A434), x86-64 under Rosetta, Vulkan SDK 1.4.363.0 with MoltenVK 1.4.2. `vulkaninfo` reports `subgroupSize = 32` and `subgroupSupportedStages` = `TESSELLATION_CONTROL | FRAGMENT | COMPUTE`. **Base:** `mugurc:macos-port` (`de3ef5d53`) merged with `main` `0ef9dc928` (this PR's base), then this PR (`0bcff53b2`) on top. Two things in that base are mine and not in either branch: - three local build fixes, because code `main` added since the last re-stack does not compile on macOS: `O_DIRECT` in `DescriptorControl.cpp`, the physical-span blocks in `DirectMemory.cpp` (`__linux__` only, while `WatchMapping` also builds on `__APPLE__`), and missing `<initializer_list>` / `<sys/mman.h>` includes in `GuestGetrlimit.cpp` and `GuestKernelStackProtect.cpp`; - this PR conflicts with `macos-port` in five recompiler files: its commit `47bf3675a` already routes shuffles and ballots through `EmitLaneShuffle` / `EmitLaneBallot` (results stored via `EmitConvergentResult`). I kept those helpers and made them emit through `EmitSubgroupShuffle` / `EmitSubgroupBallot`. @mugurc, this will need the same merge when `macos-port` is re-stacked. **Results** (`ctest -j1 --timeout 30`, without `lds_atomics64`, `flip` and `video_out`, 920 tests, same set of skips in both runs): | | failed | |---|---| | without this PR | 23 | | with this PR | 21 | - `agc_driver_ngg_vertex_wave_info` fails without the PR (`subgroup capability 61 is unsupported for shader stage 1`) and passes with it (3 of 3 runs alone). - `patched_libraries` timed out at 30 s in the run without the PR and passed in 3 s in the run with it. @DavidSamir reported it timing out under load on #1, so I don't count it as an effect of this PR. - No test that passed without the PR fails with it. With the vertex-subgroup skips removed locally from the tests (not part of this PR): - `agc_driver_exec_host_lanes`: the vertex draw passes, 3 of 3. - `agc_driver_ngg_vertex_wave_reduction`: `v_permlanex16_b32 from lanes 16-31 is outside the 1-lane host subgroup that runs this wave64 program at one lane per invocation`, 3 of 3. That is the limit described in the PR, so its skip should stay. Not tested: any title, lavapipe, Windows. AI-assisted: yes (Claude Code).
Amoenus commented 2026-10-12 16:34:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-12T16:34:04Z.


Serialization coordination completed: #4470 is merged. #4451 is now rebased on main 2f4cc8983 at 3040cd741. It writes version 19 and preserves original #4470 version 18 requests for subgroup support both off/on. Original-serializer fixtures and the malformed-reader fault control pass; full NVIDIA suite: 990 passed, 0 failed, 7 skipped.

Correction to the earlier GPU matrix: setting APS5_NO_GPL=0 disables GPL too. Actual GPL-on testing leaves it unset. The corrected matrix has remaining AMD runtime failures, so the earlier all-green GPL claim is withdrawn. These failures, controls and fresh-build retesting are maintained in #4451; serializer compatibility itself is separately validated.

The proposed #4470-first sequence is complete. #423/#4031 still independently allocate different version 18 layouts and need adaptation to the canonical merged format; this is a source audit, not combined-head validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128430606 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6128430606). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-12T16:34:04Z. --- Serialization coordination completed: #4470 is merged. #4451 is now rebased on main `2f4cc8983` at [`3040cd741`](https://github.com/Amoenus/AnyPS5/commit/3040cd74106c97009538394de7a28d232b911ee4). It writes version 19 and preserves original #4470 version 18 requests for subgroup support both off/on. Original-serializer fixtures and the malformed-reader fault control pass; full NVIDIA suite: 990 passed, 0 failed, 7 skipped. Correction to the earlier GPU matrix: setting `APS5_NO_GPL=0` disables GPL too. Actual GPL-on testing leaves it unset. The corrected matrix has remaining AMD runtime failures, so the earlier all-green GPL claim is withdrawn. These failures, controls and fresh-build retesting are maintained in [#4451](https://github.com/boykopovar/AnyPS5/pull/4451#issuecomment-6125261190); serializer compatibility itself is separately validated. The proposed #4470-first sequence is complete. #423/#4031 still independently allocate different version 18 layouts and need adaptation to the canonical merged format; this is a source audit, not combined-head validation.
Dextroid17 commented 2026-10-12 17:46:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T17:46:18Z.


Confirmed from both heads, and the silent half is real. Read at this PR's 0bcff53b2 and at #4451's 4edc8d326:

  • core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp, this PR: if (version >= 18u) result.request.target.vertexSubgroups = reader.ReadBool();
  • the same file, #4451: if (version >= 18u) info.ditheredAlphaToCoverage = reader.ReadBool();

Both also write 18u and raise the ceiling to 18u. The two new reads sit in different functions — the target section and readPixelInfo — so the serializer merges with no textual conflict at all, and the only thing that conflicts is the tests' prefix assertion (NVNQQREAAAA= → NVNQQRIAAAA=). That is the part that matters: a version-18 blob written by either head is not the layout the other expects, and after a merged landing both readers accept 18. A clean "no conflicts" report will not show it, which is why the version number itself has to carry the decision.

I have no stake in which lands first, but the rule the evidence supports is one version per layout change: whichever is second takes 19, and both bodies should state the order so the second is not merged on a mergeability report. Your sequencing — this PR first, the alpha fields rebased to 19 with a v18 fixture retained — does that, and retaining the fixture is the part that keeps the v18 blob readable afterwards.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6129538520 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6129538520). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-12T17:46:18Z. --- **Confirmed from both heads, and the silent half is real.** Read at this PR's `0bcff53b2` and at #4451's `4edc8d326`: - `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`, this PR: `if (version >= 18u) result.request.target.vertexSubgroups = reader.ReadBool();` - the same file, #4451: `if (version >= 18u) info.ditheredAlphaToCoverage = reader.ReadBool();` Both also write `18u` and raise the ceiling to `18u`. The two new reads sit in **different functions** — the target section and `readPixelInfo` — so the serializer merges with no textual conflict at all, and the only thing that conflicts is the tests' prefix assertion (`NVNQQREAAAA=` → `NVNQQRIAAAA=`). That is the part that matters: a version-18 blob written by either head is not the layout the other expects, and after a merged landing both readers accept 18. A clean "no conflicts" report will not show it, which is why the version number itself has to carry the decision. I have no stake in which lands first, but the rule the evidence supports is one version per layout change: whichever is second takes 19, and both bodies should state the order so the second is not merged on a mergeability report. Your sequencing — this PR first, the alpha fields rebased to 19 with a v18 fixture retained — does that, and retaining the fixture is the part that keeps the v18 blob readable afterwards. Written with AI assistance.
github-actions[bot] commented 2026-10-12 17:50:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T17:50:18Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4031 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L1640, L1645
#4048 core/shader/recompiler/CacheKey.hpp L245
core/shader/recompiler/Recompiler.hpp L234
#4566 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp L190-193
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp L119-121, L159-164
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp L134-136
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp L1183-1185
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp L186-188
#4599 core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp L190-193
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp L119-121, L159-164
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp L134-136
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp L1183-1185
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp L186-188
#4650 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L739, L760, L769, L791
core/shader/recompiler/Recompiler.hpp L234
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6129598509 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6129598509). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T17:50:18Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4031 | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L1640](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1640), [L1645](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1645) | | | | #4048 | `core/shader/recompiler/CacheKey.hpp` [L245](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/CacheKey.hpp#L245)<br>`core/shader/recompiler/Recompiler.hpp` [L234](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/Recompiler.hpp#L234) | | | | #4566 | `core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp` [L190-193](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp#L190-L193)<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` [L119-121](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp#L119-L121), [L159-164](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp#L159-L164)<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` [L134-136](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp#L134-L136)<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp` [L1183-1185](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp#L1183-L1185)<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` [L186-188](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp#L186-L188) | | | | #4599 | `core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp` [L190-193](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp#L190-L193)<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` [L119-121](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp#L119-L121), [L159-164](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp#L159-L164)<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` [L134-136](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp#L134-L136)<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp` [L1183-1185](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp#L1183-L1185)<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` [L186-188](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp#L186-L188) | | | | #4650 | `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L739](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L739), [L760](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L760), [L769](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L769), [L791](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L791)<br>`core/shader/recompiler/Recompiler.hpp` [L234](https://github.com/boykopovar/AnyPS5/blob/4756c051eff1c702dbfc678ddba314b19770fae6/core/shader/recompiler/Recompiler.hpp#L234) | | |
kr4y4 commented 2026-10-12 17:52:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-12T17:52:46Z.


A run on two real GPUs, since the description's run had none.

Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head 0bcff53b2 merged into main 2a5eca11c.

As built: both GPUs have subgroup arithmetic in vertex shaders (agc_driver_ngg_vertex_wave_reduction runs instead of skipping), so the one-lane path isn't taken.

  • agc_shader_memory (with verifySingleLaneVertexWave), agc_driver_graphics, agc_driver_vertex_fetch, the flat_apertures parts and the wave64 tests pass on both GPUs with --repeat until-fail:3.
  • Full suite (ctest --timeout 120 --parallel 4): 973 of 973 on the RTX 4070. On the iGPU 972 of 973; the one failure, agc_driver_f32_dot2_rounding, fails the same way on main (no shaderFloat64, #4528).

With the one-lane path forced: to run it on real hardware, I set target.vertexSubgroups = false in VulkanDevice::buildTarget locally (not a proposal) and reran the full suite on both GPUs.

  • Every test passes except agc_driver_ngg_vertex_wave_reduction (and, on the iGPU, the dot2 test above). That covers all the draw tests, with vertex and local programs running as one-lane waves.
  • agc_driver_ngg_vertex_wave_reduction is refused at recompile: v_permlanex16_b32 from lanes 16-31 is outside the 1-lane host subgroup that runs this wave64 program at one lane per invocation. That test skips on a device without vertex subgroups, so it only ran because of the forced flag, and the program is refused, not computed wrong.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6129635366 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6129635366). Originally posted by [kr4y4](https://github.com/kr4y4) on 2026-10-12T17:52:46Z. --- A run on two real GPUs, since the description's run had none. Setup: Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU. The head 0bcff53b2 merged into `main` 2a5eca11c. As built: both GPUs have subgroup arithmetic in vertex shaders (`agc_driver_ngg_vertex_wave_reduction` runs instead of skipping), so the one-lane path isn't taken. - `agc_shader_memory` (with `verifySingleLaneVertexWave`), `agc_driver_graphics`, `agc_driver_vertex_fetch`, the `flat_apertures` parts and the wave64 tests pass on both GPUs with `--repeat until-fail:3`. - Full suite (`ctest --timeout 120 --parallel 4`): 973 of 973 on the RTX 4070. On the iGPU 972 of 973; the one failure, `agc_driver_f32_dot2_rounding`, fails the same way on `main` (no `shaderFloat64`, #4528). With the one-lane path forced: to run it on real hardware, I set `target.vertexSubgroups = false` in `VulkanDevice::buildTarget` locally (not a proposal) and reran the full suite on both GPUs. - Every test passes except `agc_driver_ngg_vertex_wave_reduction` (and, on the iGPU, the dot2 test above). That covers all the draw tests, with vertex and local programs running as one-lane waves. - `agc_driver_ngg_vertex_wave_reduction` is refused at recompile: `v_permlanex16_b32 from lanes 16-31 is outside the 1-lane host subgroup that runs this wave64 program at one lane per invocation`. That test skips on a device without vertex subgroups, so it only ran because of the forced flag, and the program is refused, not computed wrong. Written with AI assistance.
Dextroid17 commented 2026-10-12 18:24:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T18:24:08Z.


Two details in your run worth pinning to the head you built.

1. The one-lane lowering is exercised without your local flag. The tests added here take vertexSubgroups as an argument instead of reading it from the device (core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp:1480 on 0bcff53b2), and verifySingleLaneVertexWave() is called unconditionally from the test's mode list (ShaderMemory.cpp:3198), so the recompiler builds the one-lane form wherever that test binary runs, whatever the host device is. What your local buildTarget change was needed for is the driver route, where the value comes from the device — and that route is the case my earlier run covers: Selected GPU name=llvmpipe (LLVM 23.1.1, 256 bits) … subgroup=8 has no subgroup arithmetic in the vertex stage, so the flag is computed false by itself and PPSA28997 gets past the presentation abort. Your two GPUs and that title run bracket the same path from both ends: with vertex subgroups nothing moves (your 973/973), without them the one-lane form is what carries a title.

2. The refusal you forced is not reachable from a device. The flag is computed as target.vertexSubgroups = (state->subgroup.supportedStages & VK_SHADER_STAGE_VERTEX_BIT) != 0 (core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:2968 on this head), and NggVertexWaveReduction.cpp:135-137 skips on exactly that predicate — skipped, the device has no subgroup arithmetic in vertex shaders. A device can only produce the false flag where that test does not run, so the refusal you saw under the forced flag guards a configuration no device reaches, and it is still a refusal rather than a wrong result. Reporting it as a guard rather than as a wall is the accurate reading, and holding the hack back from the PR is the right call: the driver-level behaviour of a subgroup-less device is what the title run stands on, and it is not reproducible on either of your GPUs.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6130126058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4470#issuecomment-6130126058). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-12T18:24:08Z. --- **Two details in your run worth pinning to the head you built.** **1. The one-lane lowering is exercised without your local flag.** The tests added here take `vertexSubgroups` as an argument instead of reading it from the device (`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp:1480` on `0bcff53b2`), and `verifySingleLaneVertexWave()` is called unconditionally from the test's mode list (`ShaderMemory.cpp:3198`), so the recompiler builds the one-lane form wherever that test binary runs, whatever the host device is. What your local `buildTarget` change was needed for is the *driver* route, where the value comes from the device — and that route is the case my earlier run covers: `Selected GPU name=llvmpipe (LLVM 23.1.1, 256 bits) … subgroup=8` has no subgroup arithmetic in the vertex stage, so the flag is computed false by itself and PPSA28997 gets past the presentation abort. Your two GPUs and that title run bracket the same path from both ends: with vertex subgroups nothing moves (your 973/973), without them the one-lane form is what carries a title. **2. The refusal you forced is not reachable from a device.** The flag is computed as `target.vertexSubgroups = (state->subgroup.supportedStages & VK_SHADER_STAGE_VERTEX_BIT) != 0` (`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:2968` on this head), and `NggVertexWaveReduction.cpp:135-137` skips on exactly that predicate — `skipped, the device has no subgroup arithmetic in vertex shaders`. A device can only produce the false flag where that test does not run, so the refusal you saw under the forced flag guards a configuration no device reaches, and it is still a refusal rather than a wrong result. Reporting it as a guard rather than as a wall is the accurate reading, and holding the hack back from the PR is the right call: the driver-level behaviour of a subgroup-less device is what the title run stands on, and it is not reproducible on either of your GPUs. Written with AI assistance.
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!4470
No description provided.