perf(shader): choose the wave64 compute layout per program #4339

Closed
karanvora2599 wants to merge 1 commit from upstream-pr/4339 into main
karanvora2599 commented 2026-10-12 07:01:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-12T07:01:23Z.


What

On a host with 32-wide subgroups (NVIDIA, and Intel with a required subgroup size of 32), a wave64 compute program now runs one guest lane per invocation when an analysis of its IR shows that no result depends on the other half of the wave. Every other wave64 program keeps two lanes per invocation, as before. Results are unchanged. This is the per-program layout proposed in #2013.

Background. On such a host, every wave64 compute program ran two guest lanes per invocation (laneCount == 2).

  • Every lane-varying instruction was emitted twice.
  • Each invocation held both lanes' registers, up to NVIDIA's limit of 255 per thread.

Title data says this is most of the shader work:

  • In fma-rc's census of eleven titles (linked in #4061), 84% of instructions are in wave64 programs.
  • In Raghav314's Demon's Souls dump (#2013), every one of the 2,388 shaders the title registers in its first two minutes is wave64, 2,106 of them compute. The cold-start black screen on NVIDIA is the queue waiting on compute pipeline creation: 7.2 s and 16.8 s for single shaders.
  • With APS5_SINGLE_LANE=all, which ignores the rules below, the title's 58 largest compute shaders go from 36.4M to 17.1M SPIR-V words.

How. The analysis (Wave64OneLaneRejection, SpirvAnalysis.cpp) runs in compileVariant after the front-end passes. A program keeps two lanes if any of these holds:

  1. It reads other lanes or the wave mask:

    • DPP, v_permlane*, ds_swizzle, ds_[b]permute, ds_append/ds_consume, or v_readlane;
    • v_readfirstlane of a lane-varying value;
    • a Ballot whose result is used for more than each lane's own bit.

    A ballot is allowed when each lane reads its words only through a select on its own half (LaneId < 32 picks word 0, otherwise word 1), passing through AND/OR/XOR/NOT and phis on the way, and ends in (word >> (LaneId & 31)) & 1. That's how exec masks saved in SGPRs are read back, so ordinary s_and_saveexec / s_or_b64 exec control flow stays allowed. These keep two lanes:

    • popcounts, compares and SCC from a mask;
    • combining word 0 with word 1;
    • every lane reading the same fixed word.
  2. A wave-mask branch guards something wave-wide. The branch is execz, execnz, vccz or vccnz, which the host evaluates per subgroup. Its region is the selection up to its merge, or the loop body. The region must not:

    • define a wave-uniform value that is used after it;
    • contain a barrier;
    • contain an LDS access, in a program that writes LDS.
  3. It writes LDS in a workgroup of more than one wave. WaveLdsScope can only order a wave's own LDS accesses with a workgroup barrier when the workgroup is one wave.

  4. It indexes a bindless table and the device lacks non-uniform indexing. The table slot is no longer uniform over the workgroup once a wave spans two subgroups.

Mesh programs stay at two lanes for now.

For a program that qualifies, the module is emitted with the one-lane input info (hostSubgroupSize 64), so its LocalSize is the full workgroup. result.hostSubgroupSize keeps the target's 32, the value main reports. So the driver requires 32-wide subgroups for it on every device, including ones whose subgroups can be 64 wide. Translation needs no second pass: the only layout-dependent IR is the partial-wave exec mask LocalInvocationIndex < threads, which is always true at one lane.

The choice depends only on the program and the target, so the cache keys are unchanged. At one lane per invocation:

  • the guest lane id is LocalInvocationIndex & 63;
  • a host ballot's 32 bits are placed in the word of the wave half they belong to;
  • v_readfirstlane takes its source lane within the host subgroup.

Debug aids: APS5_WAVE64_LAYOUT_LOG=1 prints one line per program with the decision and, for a rejection, the opcode that caused it. APS5_TWO_LANE=1 keeps every program at two lanes. APS5_SINGLE_LANE still forces one lane.

Before / after on an RTX 4060 Laptop (Ada, driver 591.86), measured on the same synthetic wave64 program compiled both ways in one process. Each lane keeps N values live through a chain of multiply-adds (v_mac_f32).

Registers and code, with 8,192 multiply-adds per lane:

live values per lane registers, two lanes → one SASS binary, two lanes → one two-lane spills
16 72 → 38 546 K → 273 K 0
32 136 → 70 567 K → 284 K 0
64 255 → 128 609 K → 305 K 0
96 255 → 168 653 K → 326 K 160 B
128 255 → 255 723 K → 347 K 1,952 B
160 255 → 255 930 K → 369 K 7,440 B

The one-lane layout didn't spill at any size.

Compile time, with 65,536 multiply-adds per lane, which is close to the size of the shaders in Raghav's data:

live values per lane SPIR-V words AnyPS5 recompile NVIDIA pipeline creation and first dispatch
16 2,106,114 → 1,053,393 28 s → 11 s 12.5 s → 6.1 s
32 2,114,302 → 1,057,517 84 s → 22 s 14.6 s → 6.5 s
64 2,130,690 → 1,065,773 99 s → 19 s 283 s → 10 s
96 2,145,026 → 1,073,009 232 s → 25 s 236 s → 12 s
128 2,163,458 → 1,082,289 455 s → 31 s 173 s → 48 s

Run time was within noise in this test, which is limited by memory traffic. One lane was 5% faster at 160 live values, where the two-lane version spills. The two-lane recompile of the 160-value program used 24 GB of RAM before I stopped it.

Tested

Windows 11, MinGW-w64 GCC 15.2.0, Release, main at d592d54e. RTX 4060 Laptop (driver 591.86), Intel UHD Graphics (Raptor Lake, driver 101.6790), lavapipe from Mesa 25.2.8 (the version CI installs; Windows build, GALLIUM_OVERRIDE_CPU_CAPS=avx).

  • New agc_shader_wave64_layout (CPU) checks the decision for seven programs:
    • per-lane arithmetic → one lane;
    • VCC read as a scalar → two lanes;
    • v_readfirstlane of a lane value → two lanes;
    • an execz region whose scalar result is used after it → two lanes;
    • the same region with vector work only → one lane;
    • LDS in a one-wave workgroup → one lane;
    • LDS writes in a two-wave workgroup → two lanes.
  • agc_shader_wave64_layout also builds three IR programs directly. A ballot word read through the lane's half select qualifies for one lane. The low or the high word read by every lane keeps two lanes; those two are the cases @Scramblrrrr reported.
  • agc_shader_wave64_layout also checks that every artifact asks for the target's subgroup size. A one-lane artifact that reported 64 is what failed on RADV, which @blawesom found.
  • agc_shader_memory's descriptor-Phi check now reads how many lanes an invocation holds from the module's LocalSize, and expects one sample per edge and per lane, instead of assuming two lanes. Its wave64 program qualifies for one lane.
  • Shader tests (agc_driver_*, agc_shader_*, agc_spirv_*, vector_*, agc_masked_select, agc_validate_program, agc_denormal*, agc_float16_*; 350 tests), with APS5_WAVE64_LAYOUT_LOG on. The BDA tests that hang on driver 591.86 until #3291 lands are left out.
    • RTX 4060: all pass. Of the wave64 compute compiles in the suite:

      • 178 run one lane per invocation;
      • 81 keep two lanes at v_readfirstlane of a lane-varying value;
      • 27 at a ballot not read through the lane's own half;
      • 23 at a wave-mask region with a scalar result;
      • 17 at DPP, v_readlane, ds_swizzle or v_permlane16;
      • 1 at LDS writes in a two-wave workgroup.

      Many of the rejections are tests that exercise those operations on purpose.

    • Intel UHD: all pass or skip for missing features except agc_driver_ds_swizzle and agc_driver_f32_dot2_rounding (no Float64), which fail the same way without this change.

    • lavapipe 25.2.8: all pass or skip for missing features except two intermittent segfaults: agc_driver_depth_fast_clear_submit, which also happens on main, and agc_driver_stencil_ref_export, a graphics test that passed 4 of 5 runs on its own. Its subgroups are 8 wide, so the choice doesn't apply, and the one-lane emission changes are limited to 32-wide hosts.

  • Rebased onto main 760ffa683. The test list in core/libs/prx/libSceAgcDriver/CMakeLists.txt and the includes of SpirvAnalysis.cpp conflicted. Since d9e47d1e9, main marks table-indexed images with ImageResource::table (NoTable otherwise) instead of indirectRoot, and samplers can come from tables too, so rule 4 now checks image and sampler tables. On this head:
    • RTX 4060: all 443 shader tests pass, including agc_shader_wave64_layout and agc_shader_memory.
    • Intel UHD: all pass or are skipped, except agc_driver_ds_swizzle and five image-table tests (agc_driver_bindless_images, agc_driver_image_sint8, agc_driver_image_table, agc_driver_image_table_cache_bounds, agc_driver_image_table_reuse), which fail the same way on main e858dbd78. agc_driver_preparation_scope_settle failed once under the suite's load and passes 3 of 3 on its own.
    • lavapipe 25.2.8: all pass or are skipped, except three intermittent segfaults that also happen with APS5_TWO_LANE=1 (main's layout): agc_driver_depth_fast_clear_submit, agc_driver_depth_storage_dispatch and agc_driver_sample_mask_depth_stencil.
  • Negative check: leaving a one-lane ballot's bits in the low word, instead of the word of the wave half they belong to, makes 11 tests fail on the RTX 4060, all at lanes 32 and up. For example: buffer load store wave64: lane 32 load_ubyte is 0x0f7b8468, expected 0x00000099, and buffer integer atomics wave64: lane 32 buffer_atomic_swap returned is 0x00007fff, expected 0xd14e11a6.

Why results don't change. At one lane per invocation, a guest wave spans two host subgroups. Each subgroup computes scalar values and wave-mask branch decisions from its own 32 lanes. The rules exclude exactly the ways a result could depend on the other half:

  • Rule 1 removes every value computed across lanes, except own-bit mask round trips. Once the ballot word is placed by wave half, a lane's own-half word holds the same bits in both layouts, and the rule only lets a lane read its own half.
  • Rule 2 handles regions one subgroup may skip while the other runs. Lane-varying values are exec-masked inside the region, so a skipped lane keeps its old value either way. A scalar defined there and used later would differ between the halves, so that case keeps two lanes. So do barriers and LDS accesses there, which the skipping subgroup would never reach.
  • Rules 3 and 4 cover LDS ordering and bindless slot uniformity, which need the wave inside one subgroup.

Limits.

  • AMD: @blawesom ran the suite on an RX 9070 XT (RADV, Linux) on the previous rebase: 1013 of 1014 pass, including the six wave64 split tests that failed before 475fca615. The one failure, agc_driver_tessellation, also segfaults on main. With RADV's default 64-wide target nothing changes. A 32-wide target there, as in the tests' wave64 split runs, now gets a required subgroup size of 32.
  • The one-lane layout assumes the host packs 32 consecutive LocalInvocationIndex values into each subgroup. APS5_SINGLE_LANE and the lane-id code already assume this; NVIDIA and Intel do it with the required subgroup size of 32, which the driver now also requests where subgroups can be 64 wide.
  • Mesh programs and programs that write LDS in multi-wave workgroups keep two lanes. Rule 3 could be relaxed with workgroup barriers where control flow is workgroup-uniform. I'd rather see title data first; Raghav offered to rerun the Demon's Souls requests with the decision log.
  • Run time is measured only on the synthetic program above.
  • Title data from @Celegans12 (Ghost of Yōtei, RTX 3080 Laptop): on a broad set of its compute requests, 156 of 362 programs take one lane, mostly the small and mid-size ones (SPIR-V −3.4% for the set). Where a program switches, a cold pipeline create is 2.5 to 3 times faster (12.3 s → 4.6 s for one 1M-word module). The giants that dominate its compile time keep two lanes because they work across the wave, so the 500K+ word set shrinks by only 0.6%.

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
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4060 Laptop GPU (Ada), driver 591.86, Windows 11; Intel UHD Graphics (Raptor Lake), driver 101.6790, Windows 11; lavapipe (Mesa 25.2.8), Windows 11
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4826014172 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-12T07:01:23Z. --- ### What On a host with 32-wide subgroups (NVIDIA, and Intel with a required subgroup size of 32), a wave64 compute program now runs one guest lane per invocation when an analysis of its IR shows that no result depends on the other half of the wave. Every other wave64 program keeps two lanes per invocation, as before. Results are unchanged. This is the per-program layout proposed in #2013. **Background.** On such a host, every wave64 compute program ran two guest lanes per invocation (`laneCount == 2`). - Every lane-varying instruction was emitted twice. - Each invocation held both lanes' registers, up to NVIDIA's limit of 255 per thread. Title data says this is most of the shader work: - In fma-rc's census of eleven titles (linked in #4061), 84% of instructions are in wave64 programs. - In Raghav314's Demon's Souls dump (#2013), every one of the 2,388 shaders the title registers in its first two minutes is wave64, 2,106 of them compute. The cold-start black screen on NVIDIA is the queue waiting on compute pipeline creation: 7.2 s and 16.8 s for single shaders. - With `APS5_SINGLE_LANE=all`, which ignores the rules below, the title's 58 largest compute shaders go from 36.4M to 17.1M SPIR-V words. **How.** The analysis (`Wave64OneLaneRejection`, `SpirvAnalysis.cpp`) runs in `compileVariant` after the front-end passes. A program keeps two lanes if any of these holds: 1. **It reads other lanes or the wave mask:** - DPP, `v_permlane*`, `ds_swizzle`, `ds_[b]permute`, `ds_append`/`ds_consume`, or `v_readlane`; - `v_readfirstlane` of a lane-varying value; - a `Ballot` whose result is used for more than each lane's own bit. A ballot is allowed when each lane reads its words only through a select on its own half (`LaneId < 32` picks word 0, otherwise word 1), passing through AND/OR/XOR/NOT and phis on the way, and ends in `(word >> (LaneId & 31)) & 1`. That's how exec masks saved in SGPRs are read back, so ordinary `s_and_saveexec` / `s_or_b64 exec` control flow stays allowed. These keep two lanes: - popcounts, compares and SCC from a mask; - combining word 0 with word 1; - every lane reading the same fixed word. 2. **A wave-mask branch guards something wave-wide.** The branch is `execz`, `execnz`, `vccz` or `vccnz`, which the host evaluates per subgroup. Its region is the selection up to its merge, or the loop body. The region must not: - define a wave-uniform value that is used after it; - contain a barrier; - contain an LDS access, in a program that writes LDS. 3. **It writes LDS in a workgroup of more than one wave.** `WaveLdsScope` can only order a wave's own LDS accesses with a workgroup barrier when the workgroup is one wave. 4. **It indexes a bindless table and the device lacks non-uniform indexing.** The table slot is no longer uniform over the workgroup once a wave spans two subgroups. Mesh programs stay at two lanes for now. For a program that qualifies, the module is emitted with the one-lane input info (`hostSubgroupSize` 64), so its `LocalSize` is the full workgroup. `result.hostSubgroupSize` keeps the target's 32, the value `main` reports. So the driver requires 32-wide subgroups for it on every device, including ones whose subgroups can be 64 wide. Translation needs no second pass: the only layout-dependent IR is the partial-wave exec mask `LocalInvocationIndex < threads`, which is always true at one lane. The choice depends only on the program and the target, so the cache keys are unchanged. At one lane per invocation: - the guest lane id is `LocalInvocationIndex & 63`; - a host ballot's 32 bits are placed in the word of the wave half they belong to; - `v_readfirstlane` takes its source lane within the host subgroup. Debug aids: `APS5_WAVE64_LAYOUT_LOG=1` prints one line per program with the decision and, for a rejection, the opcode that caused it. `APS5_TWO_LANE=1` keeps every program at two lanes. `APS5_SINGLE_LANE` still forces one lane. **Before / after** on an RTX 4060 Laptop (Ada, driver 591.86), measured on the same synthetic wave64 program compiled both ways in one process. Each lane keeps N values live through a chain of multiply-adds (`v_mac_f32`). Registers and code, with 8,192 multiply-adds per lane: | live values per lane | registers, two lanes → one | SASS binary, two lanes → one | two-lane spills | |---|---|---|---| | 16 | 72 → 38 | 546 K → 273 K | 0 | | 32 | 136 → 70 | 567 K → 284 K | 0 | | 64 | 255 → 128 | 609 K → 305 K | 0 | | 96 | 255 → 168 | 653 K → 326 K | 160 B | | 128 | 255 → 255 | 723 K → 347 K | 1,952 B | | 160 | 255 → 255 | 930 K → 369 K | 7,440 B | The one-lane layout didn't spill at any size. Compile time, with 65,536 multiply-adds per lane, which is close to the size of the shaders in Raghav's data: | live values per lane | SPIR-V words | AnyPS5 recompile | NVIDIA pipeline creation and first dispatch | |---|---|---|---| | 16 | 2,106,114 → 1,053,393 | 28 s → 11 s | 12.5 s → 6.1 s | | 32 | 2,114,302 → 1,057,517 | 84 s → 22 s | 14.6 s → 6.5 s | | 64 | 2,130,690 → 1,065,773 | 99 s → 19 s | 283 s → 10 s | | 96 | 2,145,026 → 1,073,009 | 232 s → 25 s | 236 s → 12 s | | 128 | 2,163,458 → 1,082,289 | 455 s → 31 s | 173 s → 48 s | Run time was within noise in this test, which is limited by memory traffic. One lane was 5% faster at 160 live values, where the two-lane version spills. The two-lane recompile of the 160-value program used 24 GB of RAM before I stopped it. ### Tested Windows 11, MinGW-w64 GCC 15.2.0, Release, `main` at d592d54e. RTX 4060 Laptop (driver 591.86), Intel UHD Graphics (Raptor Lake, driver 101.6790), lavapipe from Mesa 25.2.8 (the version CI installs; Windows build, `GALLIUM_OVERRIDE_CPU_CAPS=avx`). - New `agc_shader_wave64_layout` (CPU) checks the decision for seven programs: - per-lane arithmetic → one lane; - VCC read as a scalar → two lanes; - `v_readfirstlane` of a lane value → two lanes; - an `execz` region whose scalar result is used after it → two lanes; - the same region with vector work only → one lane; - LDS in a one-wave workgroup → one lane; - LDS writes in a two-wave workgroup → two lanes. - `agc_shader_wave64_layout` also builds three IR programs directly. A ballot word read through the lane's half select qualifies for one lane. The low or the high word read by every lane keeps two lanes; those two are the cases @Scramblrrrr reported. - `agc_shader_wave64_layout` also checks that every artifact asks for the target's subgroup size. A one-lane artifact that reported 64 is what failed on RADV, which @blawesom found. - `agc_shader_memory`'s descriptor-Phi check now reads how many lanes an invocation holds from the module's `LocalSize`, and expects one sample per edge and per lane, instead of assuming two lanes. Its wave64 program qualifies for one lane. - Shader tests (`agc_driver_*`, `agc_shader_*`, `agc_spirv_*`, `vector_*`, `agc_masked_select`, `agc_validate_program`, `agc_denormal*`, `agc_float16_*`; 350 tests), with `APS5_WAVE64_LAYOUT_LOG` on. The BDA tests that hang on driver 591.86 until #3291 lands are left out. - RTX 4060: all pass. Of the wave64 compute compiles in the suite: - 178 run one lane per invocation; - 81 keep two lanes at `v_readfirstlane` of a lane-varying value; - 27 at a ballot not read through the lane's own half; - 23 at a wave-mask region with a scalar result; - 17 at DPP, `v_readlane`, `ds_swizzle` or `v_permlane16`; - 1 at LDS writes in a two-wave workgroup. Many of the rejections are tests that exercise those operations on purpose. - Intel UHD: all pass or skip for missing features except `agc_driver_ds_swizzle` and `agc_driver_f32_dot2_rounding` (no `Float64`), which fail the same way without this change. - lavapipe 25.2.8: all pass or skip for missing features except two intermittent segfaults: `agc_driver_depth_fast_clear_submit`, which also happens on `main`, and `agc_driver_stencil_ref_export`, a graphics test that passed 4 of 5 runs on its own. Its subgroups are 8 wide, so the choice doesn't apply, and the one-lane emission changes are limited to 32-wide hosts. - Rebased onto `main` 760ffa683. The test list in `core/libs/prx/libSceAgcDriver/CMakeLists.txt` and the includes of `SpirvAnalysis.cpp` conflicted. Since d9e47d1e9, `main` marks table-indexed images with `ImageResource::table` (`NoTable` otherwise) instead of `indirectRoot`, and samplers can come from tables too, so rule 4 now checks image and sampler tables. On this head: - RTX 4060: all 443 shader tests pass, including `agc_shader_wave64_layout` and `agc_shader_memory`. - Intel UHD: all pass or are skipped, except `agc_driver_ds_swizzle` and five image-table tests (`agc_driver_bindless_images`, `agc_driver_image_sint8`, `agc_driver_image_table`, `agc_driver_image_table_cache_bounds`, `agc_driver_image_table_reuse`), which fail the same way on `main` e858dbd78. `agc_driver_preparation_scope_settle` failed once under the suite's load and passes 3 of 3 on its own. - lavapipe 25.2.8: all pass or are skipped, except three intermittent segfaults that also happen with `APS5_TWO_LANE=1` (`main`'s layout): `agc_driver_depth_fast_clear_submit`, `agc_driver_depth_storage_dispatch` and `agc_driver_sample_mask_depth_stencil`. - Negative check: leaving a one-lane ballot's bits in the low word, instead of the word of the wave half they belong to, makes 11 tests fail on the RTX 4060, all at lanes 32 and up. For example: `buffer load store wave64: lane 32 load_ubyte is 0x0f7b8468, expected 0x00000099`, and `buffer integer atomics wave64: lane 32 buffer_atomic_swap returned is 0x00007fff, expected 0xd14e11a6`. **Why results don't change.** At one lane per invocation, a guest wave spans two host subgroups. Each subgroup computes scalar values and wave-mask branch decisions from its own 32 lanes. The rules exclude exactly the ways a result could depend on the other half: - Rule 1 removes every value computed across lanes, except own-bit mask round trips. Once the ballot word is placed by wave half, a lane's own-half word holds the same bits in both layouts, and the rule only lets a lane read its own half. - Rule 2 handles regions one subgroup may skip while the other runs. Lane-varying values are exec-masked inside the region, so a skipped lane keeps its old value either way. A scalar defined there and used later would differ between the halves, so that case keeps two lanes. So do barriers and LDS accesses there, which the skipping subgroup would never reach. - Rules 3 and 4 cover LDS ordering and bindless slot uniformity, which need the wave inside one subgroup. **Limits.** - AMD: @blawesom ran the suite on an RX 9070 XT (RADV, Linux) on the previous rebase: 1013 of 1014 pass, including the six wave64 split tests that failed before 475fca615. The one failure, `agc_driver_tessellation`, also segfaults on `main`. With RADV's default 64-wide target nothing changes. A 32-wide target there, as in the tests' wave64 split runs, now gets a required subgroup size of 32. - The one-lane layout assumes the host packs 32 consecutive `LocalInvocationIndex` values into each subgroup. `APS5_SINGLE_LANE` and the lane-id code already assume this; NVIDIA and Intel do it with the required subgroup size of 32, which the driver now also requests where subgroups can be 64 wide. - Mesh programs and programs that write LDS in multi-wave workgroups keep two lanes. Rule 3 could be relaxed with workgroup barriers where control flow is workgroup-uniform. I'd rather see title data first; Raghav offered to rerun the Demon's Souls requests with the decision log. - Run time is measured only on the synthetic program above. - Title data from @Celegans12 (Ghost of Yōtei, RTX 3080 Laptop): on a broad set of its compute requests, 156 of 362 programs take one lane, mostly the small and mid-size ones (SPIR-V −3.4% for the set). Where a program switches, a cold pipeline create is 2.5 to 3 times faster (12.3 s → 4.6 s for one 1M-word module). The giants that dominate its compile time keep two lanes because they work across the wave, so the 500K+ word set shrinks by only 0.6%. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4060 Laptop GPU (Ada), driver 591.86, Windows 11; Intel UHD Graphics (Raptor Lake), driver 101.6790, Windows 11; lavapipe (Mesa 25.2.8), Windows 11 - [x] AI-assisted: yes
Scramblrrrr commented 2026-10-12 07:35:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-12T07:35:03Z.


I found a false admission in the draft's LaneLocalBallot / OwnLaneBit check while evaluating it for 007 on Windows. Synthetic IR reproduction (no title code): github.com/Scramblrrrr/AnyPS5@8e0d9ef85a . This is an intentionally failing regression test, not a proposed production patch. It carries your 89d6bfdac with author retained, adapted to our 007 cross-test base; the image guard uses that base's image.table != NoTable. The ballot analysis itself is unchanged.

Original seven layout checks pass, then BOTH added checks fail with "cross-half ballot word 0/1 admitted: one lane per invocation" (exit 1). Each graph is Ballot(predicate) -> CompositeExtract(fixed word) -> ShiftRightLogical(mask, LaneId & 31) -> AND 1. The shift is accepted as an own-lane bit, but the fixed word can belong to the OTHER wave half:

  • word 0, predicate LaneId < 32: original full-wave low word is 0xffffffff, so all 64 lanes read 1. In the split ballot representation, upper-half invocations have low word 0 and would read 0.
  • word 1, predicate LaneId >= 32: original high word is 0xffffffff, so all lanes read 1. Lower-half invocations have high word 0 and would read 0.

The direct admission test is verified on Windows GCC 15.2. I have not yet run a GPU output counterexample; the output difference above follows from EmitWaveBallot's word placement. It looks like acceptance needs to establish that word selection corresponds to the invocation's half, not just that the shift uses LaneId & 31. I am holding off on staging this optimization for 007. Happy to cross-test a corrected head. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6119830293 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6119830293). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-12T07:35:03Z. --- I found a false admission in the draft's LaneLocalBallot / OwnLaneBit check while evaluating it for 007 on Windows. Synthetic IR reproduction (no title code): https://github.com/Scramblrrrr/AnyPS5/commit/8e0d9ef85af0ad87705767eb50b9514a29acfc40 . This is an intentionally failing regression test, not a proposed production patch. It carries your 89d6bfdac with author retained, adapted to our 007 cross-test base; the image guard uses that base's image.table != NoTable. The ballot analysis itself is unchanged. Original seven layout checks pass, then BOTH added checks fail with "cross-half ballot word 0/1 admitted: one lane per invocation" (exit 1). Each graph is Ballot(predicate) -> CompositeExtract(fixed word) -> ShiftRightLogical(mask, LaneId & 31) -> AND 1. The shift is accepted as an own-lane bit, but the fixed word can belong to the OTHER wave half: - word 0, predicate LaneId < 32: original full-wave low word is 0xffffffff, so all 64 lanes read 1. In the split ballot representation, upper-half invocations have low word 0 and would read 0. - word 1, predicate LaneId >= 32: original high word is 0xffffffff, so all lanes read 1. Lower-half invocations have high word 0 and would read 0. The direct admission test is verified on Windows GCC 15.2. I have not yet run a GPU output counterexample; the output difference above follows from EmitWaveBallot's word placement. It looks like acceptance needs to establish that word selection corresponds to the invocation's half, not just that the shift uses LaneId & 31. I am holding off on staging this optimization for 007. Happy to cross-test a corrected head. AI-assisted: Codex.
blawesom commented 2026-10-12 13:27:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T13:27:10Z.


Rebase handoff + one pre-existing finding — rebased onto current main, authorship unchanged.

One conflict in Recompiler.cpp, resolved by merging both sides: this PR's per-program wave64 layout (emitInputInfo) now also feeds main's newer registration-module fallback path (both Emit calls use emitInputInfo).

The finding — independent of the rebase: this PR fails 6 tests deterministically on Linux/RADV, and the failure exists on the original branch at its own base too, so it is not rebase-induced:

agc_driver_buffer_atomics_or_swap64, agc_driver_buffer_integer_atomics, agc_driver_buffer_load_store,
agc_driver_lds_addtid, agc_driver_lds_integer_atomics, agc_driver_lds_read_write

Negative control: all 6 pass at this branch's merge base (2ccbd376) on the same machine — the regression is introduced by the branch's changes on this setup. All six are wave64 compute tests, consistent with this PR's subject (the wave64 layout choice) — on this device (RADV, 64-lane subgroups) the one-lane compute layout appears to break buffer/LDS addressing. Everything else passes (947/953).

Verified: builds, tools/check_conventions.py passes, full suite 947/953 with only these six failing.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4339
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is e83e23ae1. If the layout choice is meant to be device-dependent, the subgroup-size condition may need a look for 64-lane devices.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6125230941 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6125230941). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-12T13:27:10Z. --- **Rebase handoff + one pre-existing finding** — rebased onto current `main`, authorship unchanged. One conflict in `Recompiler.cpp`, resolved by merging both sides: this PR's per-program wave64 layout (`emitInputInfo`) now also feeds main's newer registration-module fallback path (both `Emit` calls use `emitInputInfo`). **The finding — independent of the rebase:** this PR fails **6 tests deterministically on Linux/RADV**, and the failure exists on the original branch at its own base too, so it is not rebase-induced: ``` agc_driver_buffer_atomics_or_swap64, agc_driver_buffer_integer_atomics, agc_driver_buffer_load_store, agc_driver_lds_addtid, agc_driver_lds_integer_atomics, agc_driver_lds_read_write ``` **Negative control:** all 6 pass at this branch's merge base (`2ccbd376`) on the same machine — the regression is introduced by the branch's changes on this setup. All six are wave64 compute tests, consistent with this PR's subject (the wave64 layout choice) — on this device (RADV, 64-lane subgroups) the one-lane compute layout appears to break buffer/LDS addressing. Everything else passes (**947/953**). Verified: builds, `tools/check_conventions.py` passes, full suite **947/953** with only these six failing. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4339 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `e83e23ae1`. If the layout choice is meant to be device-dependent, the subgroup-size condition may need a look for 64-lane devices.
karanvora2599 commented 2026-10-12 13:38:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-12T13:38:16Z.


Thanks @Scramblrrrr, you're right. The check accepted the own-lane shift without checking that the word came from the lane's own half.

Fixed in 32bf1e9ee: the analysis now tracks which ballot word each value carries. A value is the low word, the high word, the lane's own half (Select(LaneId < 32, low, high)), or mixed. A bit extraction is allowed only from an own-half word, and combining the low and high words keeps two lanes.

Your two cases are now IR-level checks in agc_shader_wave64_layout: the fixed low word and the fixed high word read by every lane both keep two lanes. Next to them, the half-selected read still qualifies.

The translator itself always selects the word by half, so the shader suite still passes on the RTX 4060 (342 of 342). Three more test programs now keep two lanes, so it's 178 one-lane compiles instead of 181. A cross-test of the new head would be welcome.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6125417388 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6125417388). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-12T13:38:16Z. --- Thanks @Scramblrrrr, you're right. The check accepted the own-lane shift without checking that the word came from the lane's own half. Fixed in 32bf1e9ee: the analysis now tracks which ballot word each value carries. A value is the low word, the high word, the lane's own half (`Select(LaneId < 32, low, high)`), or mixed. A bit extraction is allowed only from an own-half word, and combining the low and high words keeps two lanes. Your two cases are now IR-level checks in `agc_shader_wave64_layout`: the fixed low word and the fixed high word read by every lane both keep two lanes. Next to them, the half-selected read still qualifies. The translator itself always selects the word by half, so the shader suite still passes on the RTX 4060 (342 of 342). Three more test programs now keep two lanes, so it's 178 one-lane compiles instead of 181. A cross-test of the new head would be welcome.
oneandonlydean commented 2026-10-13 00:19:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:19:21Z.


The numbers are still for a synthetic v_mac_f32 chain. With the decision log on a title's shaders (the Demon's Souls set from #2013 would do), how many compute programs take one lane, and what does pipeline creation take before and after (#218)?

475fca615 keeps the artifact at 32-lane subgroups, which should clear the six "wave64 split" failures blawesom saw on RADV; a re-run there would confirm it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135165710 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6135165710). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T00:19:21Z. --- The numbers are still for a synthetic `v_mac_f32` chain. With the decision log on a title's shaders (the Demon's Souls set from #2013 would do), how many compute programs take one lane, and what does pipeline creation take before and after (#218)? 475fca615 keeps the artifact at 32-lane subgroups, which should clear the six "wave64 split" failures blawesom saw on RADV; a re-run there would confirm it.
oneandonlydean commented 2026-10-13 05:21:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T05:21:15Z.


Needs a rebase: the test list in core/libs/prx/libSceAgcDriver/CMakeLists.txt conflicts with the tests merged today.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6138842330 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6138842330). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T05:21:15Z. --- Needs a rebase: the test list in `core/libs/prx/libSceAgcDriver/CMakeLists.txt` conflicts with the tests merged today.
blawesom commented 2026-10-13 06:43:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-13T06:43:20Z.


Rebase handoff (v2, for the CMake test-list rebase @oneandonlydean requested) — rebased onto current main, authorship unchanged.

The conflict was exactly the one you named: the `CMakeLists.txt` test list vs today's merges. The resolution keeps main's current list with this PR's agc_shader_wave64_layout_tests inserted. Head is fc0ab8f18, branch blawesom:rebase/4339-v2.

Also verified on this head, on Linux/RADV (CachyOS, kernel 7.2.9, GCC 16.2.1, Release, RX 9070 XT):

  • the six buffer/LDS tests that failed on the previous head now pass — 32bf1e9ee's own-lane-shift fix resolved that finding
  • the new wave64 layout test passes
  • full suite: 1013/1014 — the only failure is agc_driver_tessellation, which segfaults on current main itself (tracked to 0b7de0e73 / #4727, reported there); not caused by this PR

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4339-v2
git checkout <your branch>
git merge --ff-only FETCH_HEAD
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6139902614 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6139902614). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-13T06:43:20Z. --- **Rebase handoff (v2, for the CMake test-list rebase @oneandonlydean requested)** — rebased onto current `main`, authorship unchanged. The conflict was exactly the one you named: the \`CMakeLists.txt\` test list vs today's merges. The resolution keeps main's current list with this PR's `agc_shader_wave64_layout_tests` inserted. Head is `fc0ab8f18`, branch `blawesom:rebase/4339-v2`. Also verified on this head, on Linux/RADV (CachyOS, kernel 7.2.9, GCC 16.2.1, Release, RX 9070 XT): - **the six buffer/LDS tests that failed on the previous head now pass** — 32bf1e9ee's own-lane-shift fix resolved that finding - the new wave64 layout test passes - full suite: 1013/1014 — the only failure is `agc_driver_tessellation`, which **segfaults on current `main` itself** (tracked to 0b7de0e73 / #4727, reported there); not caused by this PR **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4339-v2 git checkout <your branch> git merge --ff-only FETCH_HEAD ```
Celegans12 commented 2026-10-13 09:56:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-13T09:56:24Z.


@oneandonlydean @karanvora2599 I ran the decision log over Ghost of Yōtei's compute shaders on an RTX 3080 Laptop (driver 610.62). Short version: on Yōtei it barely moves anything. Of the 83 programs behind the biggest pipelines we capture (every compute pipeline over 500k SPIR-V words, 461 requests), 8 take one lane, and those 8 are one 8x8 shader loaded at eight addresses, so it's really one pipeline. All the giants that cost us 80 to 470 s each in NVIDIA's compiler keep two lanes. Total SPIR-V for the set drops 0.6% (661.97M to 658.02M words). With APS5_SINGLE_LANE=all it drops 45.5%.

Where a program does flip, the result matches your synthetic numbers. That shader goes from 1,004,821 to 512,074 words, and a cold pipeline create drops from about 12.3 s to 4.6 s. Two-lane modules come out byte-identical, so their create time doesn't change: 0x8000196500 took 88.5 s before and 95.7 s after with the same SPIR-V, which is just run-to-run spread.

before after #4339
Yōtei giants (83 programs): one lane 0 8 (one shader, 8 addresses)
their SPIR-V, 461 requests 661,965,378 words 658,023,402 (−0.6%)
0x7ff60e7f5d00 cold create, peak RAM 12.3 s, 787 MiB 4.6 s, 524 MiB
0x8000196500 cold create (two lanes both) 88.5 s 95.7 s (same bytes)
main on an older 1,800-request Yōtei set: one-lane programs 0 of 362 156 of 362

The giants are rejected because they really work across the wave, so relaxing one rule wouldn't help. To see this I added a local diagnostic that lists every blocker in a program, not only the first. Most giants have all of these: ballot words used as counts (BitCount32, the v_mbcnt pattern, 64-bit masks), waterfall loops (FindILsb32 of a ballot word into ReadLane, ReadFirstLane of a phi), and DPP/v_permlane16 reductions. In 55 of the 75 rejected programs, ballot, ReadLane and non-uniform ReadFirstLane all appear. Your waterfall idea would help most if it also covered the ballot counts and the reductions per wave.

Only 8 programs are held back by rule 2 alone. Four of them could be worth a look: 0x8000261500, 0x8000289300, 0x8000284e00 and 0x800028d800, at 1.24 to 1.46M words. They run one-wave workgroups (64 threads) with no LDS, and the only reason is "a scalar Phi used after" a wave-mask region (3 to 6 regions each). Forced to one lane, they come out at 53% of the size. I haven't checked whether the two halves can actually disagree on those phis, so the rule may well be right.

Upstream main can't compile most of these requests on its own: 370 of 461 stop at a lane-selected descriptor waterfall that our game branch handles locally. So the 461 were measured with #4339 cherry-picked onto our game branch. main itself (blawesom's fc0ab8f18 against ea2bbefb) was measured on the 91 giants it does compile and on an older, broader set of Yōtei compute requests, using #3717's agc_compute_pipeline_replay for create times. The pattern matches: small programs mostly qualify and large ones mostly don't. spirv-val passes on every one-lane module. I haven't run the game with it.

Would the requests help you? I can attach the four rule-2-only programs, or the whole set (they're our request layout, plus a small converter to main's v19).

Details

Builds. PR head 475fca6157. For main numbers I used blawesom's rebase fc0ab8f184 (same patch apart from the CMake test list) against its base ea2bbefb2b. For Yōtei's giants: our game branch c7de5a63b6 against c7de5a63b6 + 475fca6157. The cherry-pick needed two adjustments: the game branch doesn't have main's registration-module fallback yet, and its bindless test is image.table != NoTable (no indirectRoot there). Windows 11, GCC 15.2.0 Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF as in the game. RTX 3080 Laptop 16 GB, driver 610.62. Recompiles use ANYPS5_NO_SHADER_CACHE=1 and APS5_WAVE64_LAYOUT_LOG=1. The game set also used the game run's switches (APS5_COLD_SPIRV=1 APS5_COLD_SPIRV_FILE=1 APS5_CACHE_SPIRV_BACKING=1 APS5_UNNORM_WRAP_GUARD=1).

Requests.

  • Set A: 461 compute requests captured during Yōtei runs on 2026-10-12/13, one per pipeline fingerprint, every one ≥500k SPIR-V words. They reduce to 144 distinct modules in 83 programs.
  • Set B: 1,800 compute requests of all sizes captured on 2026-10-09. 1,376 of them recompile on main, which gives 502 distinct modules in 362 programs.
  • Conversion to main: our layout v20/v21 → v19 (append registrationModules, registrationWordLimit, vertexSubgroups; the fields we differ in are graphics-only). Set B's v16 requests got the floatMode byte added.
  • On main (both ea2bbefb and the PR), set A gives 91 of 461 recompiles. 363 stop with GetImageResource dword 0 is not a valid runtime value at a ReadLane(FindILsb32(Ballot)) descriptor index, and 7 (five 0x800014e300, two 0x8000173b00) crash the replay.

Decisions, set A on the game branch (program counts; requests and modules in brackets):

decision programs requests modules
one lane 8 8 8
two lanes: reads other lanes, at Ballot 58 422 105
two lanes: reads other lanes, at ReadFirstLane 7 9 9
two lanes: reads other lanes, at DppMoveU32 2 5 5
two lanes: wave-mask region, at Phi 4 11 11
two lanes: wave-mask region, at LDS access 4 6 6

Words over distinct modules: 175,703,817 → 171,761,841 (−2.2%); the 8 one-lane modules go 8,038,568 → 4,096,592 (−49%). No program hits rule 3 first or rule 4. Workgroups of 512/1024 threads with LDS writes exist in 5 programs, but other rules catch them first.

Every blocker per program (local diagnostic APS5_WAVE64_CENSUS, decision unchanged), number of the 83 programs containing it:

  • ReadFirstLane of a select 61, of a phi 56; ReadLane 58;
  • DppMoveU32/DppUpdateU32 52, Permlane16U32 49;
  • ballot word into ISub32 48 and ULessThan32 48 (mbcnt), CompositeConstructU64 46, BitCount32 41, FindILsb32 39;
  • wave-mask region with a scalar Phi used after 38, scalar BitwiseAnd32 used after 35, LDS inside 29;
  • DataAppend 9.

Combinations: 55 programs have ballot + ReadLane + ReadFirstLane (most of them also DPP and a mask region), 8 have only mask-region blockers, 1 only DPP (0x8000253100), and 8 are clean. One more thing I noticed but didn't chase: in the giants, the ballot-word tracking marks tens of thousands of values as derived from a ballot. In 0x8000196500, 32,709 values count as "low and high words combined" and about 8,800 feed BitCastF32U32. It doesn't change any decision here.

Rule-2-only programs (largest variant; single lane = APS5_SINGLE_LANE=all, measurement only):

program two lanes single lane blocker
0x8000261500 1,464,233 779,688 scalar Phi used after, 6 regions
0x8000289300 1,326,639 700,660 same, 6
0x8000284e00 1,253,772 663,449 same, 6
0x800028d800 1,244,746 659,370 same, 3
0x80002a1f00 / 0x80002a9600 / 0x8000243500 / 0x8000265d00 0.68–1.10M 52–55% LDS access inside a region (three also have a scalar result used after)

Set B on main (programs, largest variant): 156 one lane, 131 at Ballot, 31 at ReadFirstLane, 17 at DPP, 8 at Permlane16U32, 2 at ReadLane, 12 wave-mask region, 5 wave32. By size: under 100k words 132 of 196 qualify, 100k–500k 21 of 142, over 500k 3 of 24. Words over distinct modules 135,037,944 → 130,453,566 (−3.4%), one-lane subset −43%. Set A's 91 recompiles on main: 8 one lane (the same 5d00 shader), 39 programs two lanes.

Pipeline creation. Every run was cold, one at a time, with nothing else heavy on the machine: a fresh empty VkPipelineCache and an empty NVIDIA store (__GL_SHADER_DISK_CACHE_PATH pointing to a new directory). Peak RAM is the process's peak private bytes.

  • Game branch: agc_shader_replay --pipeline-only, our local tool, which recompiles the request and creates the pipeline through the dispatch path's createComputePipeline. 0x7ff60e7f5d00 (8x8, 1,796 code words): before 13.5 / 12.3 s; PR with APS5_TWO_LANE=1 12.3 / 12.1 s; PR 4.6 / 4.6 s. Peak 787 → 524 MiB, NVIDIA store 1.02 → 0.55 MB. 0x8000196500 (1,833,316 words, two lanes in both): 88.5 s before, 95.7 s after, about 3.06 GB peak.
  • main: #3717's agc_compute_pipeline_replay on a capture built from the replayed module. The layout was reflected from the module, since dispatch builds it from guest memory; flags DISPATCH_BASE, required subgroup size 32, 128-byte push range. One run each:
program (set) words before → after create before → after peak RAM
0x7ff7ed425d00 (B) 1,077,020 → 543,416 14.9 s → 5.8 s 661 → 351 MiB
0x7ff7ebff5d00 (A) 759,527 → 384,564 9.0 s → 3.3 s 462 → 265 MiB
0x8000390600 (B) 310,285 → 158,664 4.4 s → 1.5 s 305 → 180 MiB
0x80002fec00 (B) 302,547 → 152,047 2.6 s → 0.95 s 274 → 160 MiB

Correctness. spirv-val --target-env vulkan1.3 --scalar-block-layout (SPIRV-Tools v2025.1) passes on every one-lane module: 8 from set A on the game branch, 8 from set A on main and 421 from set B. Every two-lane module is byte-identical before and after (453 in set A, 955 in set B). Nothing ran on the GPU beyond pipeline creation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143001324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6143001324). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-13T09:56:24Z. --- @oneandonlydean @karanvora2599 I ran the decision log over Ghost of Yōtei's compute shaders on an RTX 3080 Laptop (driver 610.62). Short version: on Yōtei it barely moves anything. Of the 83 programs behind the biggest pipelines we capture (every compute pipeline over 500k SPIR-V words, 461 requests), 8 take one lane, and those 8 are one 8x8 shader loaded at eight addresses, so it's really one pipeline. All the giants that cost us 80 to 470 s each in NVIDIA's compiler keep two lanes. Total SPIR-V for the set drops 0.6% (661.97M to 658.02M words). With `APS5_SINGLE_LANE=all` it drops 45.5%. Where a program does flip, the result matches your synthetic numbers. That shader goes from 1,004,821 to 512,074 words, and a cold pipeline create drops from about 12.3 s to 4.6 s. Two-lane modules come out byte-identical, so their create time doesn't change: 0x8000196500 took 88.5 s before and 95.7 s after with the same SPIR-V, which is just run-to-run spread. | | before | after #4339 | |---|---|---| | Yōtei giants (83 programs): one lane | 0 | 8 (one shader, 8 addresses) | | their SPIR-V, 461 requests | 661,965,378 words | 658,023,402 (−0.6%) | | 0x7ff60e7f5d00 cold create, peak RAM | 12.3 s, 787 MiB | 4.6 s, 524 MiB | | 0x8000196500 cold create (two lanes both) | 88.5 s | 95.7 s (same bytes) | | `main` on an older 1,800-request Yōtei set: one-lane programs | 0 of 362 | 156 of 362 | The giants are rejected because they really work across the wave, so relaxing one rule wouldn't help. To see this I added a local diagnostic that lists every blocker in a program, not only the first. Most giants have all of these: ballot words used as counts (`BitCount32`, the `v_mbcnt` pattern, 64-bit masks), waterfall loops (`FindILsb32` of a ballot word into `ReadLane`, `ReadFirstLane` of a phi), and DPP/`v_permlane16` reductions. In 55 of the 75 rejected programs, ballot, `ReadLane` and non-uniform `ReadFirstLane` all appear. Your waterfall idea would help most if it also covered the ballot counts and the reductions per wave. Only 8 programs are held back by rule 2 alone. Four of them could be worth a look: 0x8000261500, 0x8000289300, 0x8000284e00 and 0x800028d800, at 1.24 to 1.46M words. They run one-wave workgroups (64 threads) with no LDS, and the only reason is "a scalar `Phi` used after" a wave-mask region (3 to 6 regions each). Forced to one lane, they come out at 53% of the size. I haven't checked whether the two halves can actually disagree on those phis, so the rule may well be right. Upstream `main` can't compile most of these requests on its own: 370 of 461 stop at a lane-selected descriptor waterfall that our game branch handles locally. So the 461 were measured with #4339 cherry-picked onto our game branch. `main` itself (blawesom's fc0ab8f18 against ea2bbefb) was measured on the 91 giants it does compile and on an older, broader set of Yōtei compute requests, using #3717's `agc_compute_pipeline_replay` for create times. The pattern matches: small programs mostly qualify and large ones mostly don't. spirv-val passes on every one-lane module. I haven't run the game with it. Would the requests help you? I can attach the four rule-2-only programs, or the whole set (they're our request layout, plus a small converter to `main`'s v19). <details><summary>Details</summary> **Builds.** PR head 475fca6157. For `main` numbers I used blawesom's rebase fc0ab8f184 (same patch apart from the CMake test list) against its base ea2bbefb2b. For Yōtei's giants: our game branch c7de5a63b6 against c7de5a63b6 + 475fca6157. The cherry-pick needed two adjustments: the game branch doesn't have `main`'s registration-module fallback yet, and its bindless test is `image.table != NoTable` (no `indirectRoot` there). Windows 11, GCC 15.2.0 Release, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF` as in the game. RTX 3080 Laptop 16 GB, driver 610.62. Recompiles use `ANYPS5_NO_SHADER_CACHE=1` and `APS5_WAVE64_LAYOUT_LOG=1`. The game set also used the game run's switches (`APS5_COLD_SPIRV=1 APS5_COLD_SPIRV_FILE=1 APS5_CACHE_SPIRV_BACKING=1 APS5_UNNORM_WRAP_GUARD=1`). **Requests.** - Set A: 461 compute requests captured during Yōtei runs on 2026-10-12/13, one per pipeline fingerprint, every one ≥500k SPIR-V words. They reduce to 144 distinct modules in 83 programs. - Set B: 1,800 compute requests of all sizes captured on 2026-10-09. 1,376 of them recompile on `main`, which gives 502 distinct modules in 362 programs. - Conversion to `main`: our layout v20/v21 → v19 (append `registrationModules`, `registrationWordLimit`, `vertexSubgroups`; the fields we differ in are graphics-only). Set B's v16 requests got the `floatMode` byte added. - On `main` (both ea2bbefb and the PR), set A gives 91 of 461 recompiles. 363 stop with `GetImageResource dword 0 is not a valid runtime value` at a `ReadLane(FindILsb32(Ballot))` descriptor index, and 7 (five 0x800014e300, two 0x8000173b00) crash the replay. **Decisions, set A on the game branch** (program counts; requests and modules in brackets): | decision | programs | requests | modules | |---|---|---|---| | one lane | 8 | 8 | 8 | | two lanes: reads other lanes, at `Ballot` | 58 | 422 | 105 | | two lanes: reads other lanes, at `ReadFirstLane` | 7 | 9 | 9 | | two lanes: reads other lanes, at `DppMoveU32` | 2 | 5 | 5 | | two lanes: wave-mask region, at `Phi` | 4 | 11 | 11 | | two lanes: wave-mask region, at LDS access | 4 | 6 | 6 | Words over distinct modules: 175,703,817 → 171,761,841 (−2.2%); the 8 one-lane modules go 8,038,568 → 4,096,592 (−49%). No program hits rule 3 first or rule 4. Workgroups of 512/1024 threads with LDS writes exist in 5 programs, but other rules catch them first. **Every blocker per program** (local diagnostic `APS5_WAVE64_CENSUS`, decision unchanged), number of the 83 programs containing it: - `ReadFirstLane` of a select 61, of a phi 56; `ReadLane` 58; - `DppMoveU32`/`DppUpdateU32` 52, `Permlane16U32` 49; - ballot word into `ISub32` 48 and `ULessThan32` 48 (mbcnt), `CompositeConstructU64` 46, `BitCount32` 41, `FindILsb32` 39; - wave-mask region with a scalar `Phi` used after 38, scalar `BitwiseAnd32` used after 35, LDS inside 29; - `DataAppend` 9. Combinations: 55 programs have ballot + `ReadLane` + `ReadFirstLane` (most of them also DPP and a mask region), 8 have only mask-region blockers, 1 only DPP (0x8000253100), and 8 are clean. One more thing I noticed but didn't chase: in the giants, the ballot-word tracking marks tens of thousands of values as derived from a ballot. In 0x8000196500, 32,709 values count as "low and high words combined" and about 8,800 feed `BitCastF32U32`. It doesn't change any decision here. **Rule-2-only programs** (largest variant; single lane = `APS5_SINGLE_LANE=all`, measurement only): | program | two lanes | single lane | blocker | |---|---|---|---| | 0x8000261500 | 1,464,233 | 779,688 | scalar `Phi` used after, 6 regions | | 0x8000289300 | 1,326,639 | 700,660 | same, 6 | | 0x8000284e00 | 1,253,772 | 663,449 | same, 6 | | 0x800028d800 | 1,244,746 | 659,370 | same, 3 | | 0x80002a1f00 / 0x80002a9600 / 0x8000243500 / 0x8000265d00 | 0.68–1.10M | 52–55% | LDS access inside a region (three also have a scalar result used after) | **Set B on `main`** (programs, largest variant): 156 one lane, 131 at `Ballot`, 31 at `ReadFirstLane`, 17 at DPP, 8 at `Permlane16U32`, 2 at `ReadLane`, 12 wave-mask region, 5 wave32. By size: under 100k words 132 of 196 qualify, 100k–500k 21 of 142, over 500k 3 of 24. Words over distinct modules 135,037,944 → 130,453,566 (−3.4%), one-lane subset −43%. Set A's 91 recompiles on `main`: 8 one lane (the same 5d00 shader), 39 programs two lanes. **Pipeline creation.** Every run was cold, one at a time, with nothing else heavy on the machine: a fresh empty `VkPipelineCache` and an empty NVIDIA store (`__GL_SHADER_DISK_CACHE_PATH` pointing to a new directory). Peak RAM is the process's peak private bytes. - Game branch: `agc_shader_replay --pipeline-only`, our local tool, which recompiles the request and creates the pipeline through the dispatch path's `createComputePipeline`. 0x7ff60e7f5d00 (8x8, 1,796 code words): before 13.5 / 12.3 s; PR with `APS5_TWO_LANE=1` 12.3 / 12.1 s; PR 4.6 / 4.6 s. Peak 787 → 524 MiB, NVIDIA store 1.02 → 0.55 MB. 0x8000196500 (1,833,316 words, two lanes in both): 88.5 s before, 95.7 s after, about 3.06 GB peak. - `main`: #3717's `agc_compute_pipeline_replay` on a capture built from the replayed module. The layout was reflected from the module, since dispatch builds it from guest memory; flags `DISPATCH_BASE`, required subgroup size 32, 128-byte push range. One run each: | program (set) | words before → after | create before → after | peak RAM | |---|---|---|---| | 0x7ff7ed425d00 (B) | 1,077,020 → 543,416 | 14.9 s → 5.8 s | 661 → 351 MiB | | 0x7ff7ebff5d00 (A) | 759,527 → 384,564 | 9.0 s → 3.3 s | 462 → 265 MiB | | 0x8000390600 (B) | 310,285 → 158,664 | 4.4 s → 1.5 s | 305 → 180 MiB | | 0x80002fec00 (B) | 302,547 → 152,047 | 2.6 s → 0.95 s | 274 → 160 MiB | **Correctness.** `spirv-val --target-env vulkan1.3 --scalar-block-layout` (SPIRV-Tools v2025.1) passes on every one-lane module: 8 from set A on the game branch, 8 from set A on `main` and 421 from set B. Every two-lane module is byte-identical before and after (453 in set A, 955 in set B). Nothing ran on the GPU beyond pipeline creation. </details>
karanvora2599 commented 2026-10-13 21:55:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-13T21:55:09Z.


@Celegans12, thank you. That answers @oneandonlydean's question better than a synthetic chain could. What it shows about this PR:

  • Small and mid-size compute programs: it helps. On main, 156 of 362 Yōtei programs take one lane, most of them under 100k words, and SPIR-V for the set drops 3.4%. Where a program switches, a cold pipeline create is 2.5 to 3 times faster.
  • The giants: it doesn't help the ones that dominate Yōtei's compile time, because they really do work across the wave. That's why the 500k+ set only drops 0.6%.

Yes, please attach the four rule-2-only programs (0x8000261500, 0x8000289300, 0x8000284e00, 0x800028d800).

  • Why rule 2 holds them back: a scalar value computed inside a wave-mask region and used after it. With one lane per invocation, each 32-lane half computes that value from its own half of the mask.
  • What I'll check: whether those phis depend on the mask at all. If one doesn't (a loop counter, say), both halves agree and the rule is stricter than it needs to be there. I'll narrow it in a follow-up, not in this PR.

For the giants, the ballot counts, cross-half ReadLane/ReadFirstLane and DPP reductions would have to go between the two halves through shared memory with a barrier. A barrier needs uniform control flow, and waterfall loops don't have it, so I don't see a cheap way to move them to one lane. For those, compiling outside the GPU lock (#4897) matters more than the layout.

@blawesom, thanks for the rebase and for rerunning the six split tests on RADV. That confirms 475fca615: one-lane artifacts now keep the target's 32-lane subgroup size, so the driver asks for 32-wide subgroups on every device. main has moved since fc0ab8f18 and the test list conflicts again (agc_formatted_buffer_byte_stores_tests and agc_ir_reclaim_tests were added), so I'll rebase onto current main and rerun the suite before pushing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6156018527 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6156018527). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-13T21:55:09Z. --- @Celegans12, thank you. That answers @oneandonlydean's question better than a synthetic chain could. What it shows about this PR: - **Small and mid-size compute programs:** it helps. On `main`, 156 of 362 Yōtei programs take one lane, most of them under 100k words, and SPIR-V for the set drops 3.4%. Where a program switches, a cold pipeline create is 2.5 to 3 times faster. - **The giants:** it doesn't help the ones that dominate Yōtei's compile time, because they really do work across the wave. That's why the 500k+ set only drops 0.6%. Yes, please attach the four rule-2-only programs (0x8000261500, 0x8000289300, 0x8000284e00, 0x800028d800). - **Why rule 2 holds them back:** a scalar value computed inside a wave-mask region and used after it. With one lane per invocation, each 32-lane half computes that value from its own half of the mask. - **What I'll check:** whether those phis depend on the mask at all. If one doesn't (a loop counter, say), both halves agree and the rule is stricter than it needs to be there. I'll narrow it in a follow-up, not in this PR. For the giants, the ballot counts, cross-half `ReadLane`/`ReadFirstLane` and DPP reductions would have to go between the two halves through shared memory with a barrier. A barrier needs uniform control flow, and waterfall loops don't have it, so I don't see a cheap way to move them to one lane. For those, compiling outside the GPU lock (#4897) matters more than the layout. @blawesom, thanks for the rebase and for rerunning the six split tests on RADV. That confirms 475fca615: one-lane artifacts now keep the target's 32-lane subgroup size, so the driver asks for 32-wide subgroups on every device. `main` has moved since `fc0ab8f18` and the test list conflicts again (`agc_formatted_buffer_byte_stores_tests` and `agc_ir_reclaim_tests` were added), so I'll rebase onto current `main` and rerun the suite before pushing.
karanvora2599 commented 2026-10-15 02:08:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-15T02:08:13Z.


Rebased onto main 760ffa683 (e6515bc8c). The test list in CMakeLists.txt conflicted again, this time with agc_vertex_input_tests, and so did the includes at the top of SpirvAnalysis.cpp after #6015; nothing else changed. The description now has the suite run on the previous rebase, @blawesom's RADV run and @Celegans12's Yōtei numbers. I'll rerun the wave64 tests on this head and post the result here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6182772586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6182772586). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-15T02:08:13Z. --- Rebased onto `main` 760ffa683 (e6515bc8c). The test list in `CMakeLists.txt` conflicted again, this time with `agc_vertex_input_tests`, and so did the includes at the top of `SpirvAnalysis.cpp` after #6015; nothing else changed. The description now has the suite run on the previous rebase, @blawesom's RADV run and @Celegans12's Yōtei numbers. I'll rerun the wave64 tests on this head and post the result here.
github-actions[bot] commented 2026-10-15 02:35:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T02:35:16Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 3186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 3247 core/shader/recompiler/Recompiler.cpp
PR 4072 core/shader/recompiler/Recompiler.cpp
PR 4650 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 4891 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5480 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5500 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 5609 core/shader/recompiler/Recompiler.cpp
PR 5656 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 5859 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 5917 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5958 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 5998 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6012 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6032 core/shader/recompiler/Recompiler.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6054 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6094 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6095 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6109 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6130 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6164 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6169 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6176 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6177 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6178 core/shader/recompiler/Recompiler.cpp
PR 6179 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6182 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6218 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6222 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6232 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6234 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6243 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6249 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6259 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6290 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp
PR 6291 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6296 core/shader/recompiler/Recompiler.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6317 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6320 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6326 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6332 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6360 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6366 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6373 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6416 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6417 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6440 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6451 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6454 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6470 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6471 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6479 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6490 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6495 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6503 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6530 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6535 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6539 core/shader/recompiler/Recompiler.cpp
PR 6551 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6588 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6601 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6606 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6611 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 6612 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6635 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6639 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6644 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6646 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6650 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6670 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6674 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6678 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6679 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6701 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6730 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6733 core/shader/recompiler/Recompiler.cpp
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6748 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6751 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6759 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6762 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6763 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6767 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvAnalysis.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp
PR 6785 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6856 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6858 core/shader/recompiler/Recompiler.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6879 core/shader/recompiler/Recompiler.cpp
PR 6881 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6887 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6905 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6914 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6924 core/shader/recompiler/Recompiler.cpp
PR 6937 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6941 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6948 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6959 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 6963 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6965 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6973 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6976 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6977 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6982 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6987 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6989 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6995 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7002 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7006 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7082 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7137 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7169 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7193 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 7238 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7240 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7271 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7296 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7307 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7310 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvAnalysis.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp
PR 7336 core/libs/prx/libSceAgcDriver/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6183101798 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6183101798). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T02:35:16Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 3186](https://www.github.com/boykopovar/AnyPS5/pull/3186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 3247](https://www.github.com/boykopovar/AnyPS5/pull/3247) | `core/shader/recompiler/Recompiler.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/shader/recompiler/Recompiler.cpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5480](https://www.github.com/boykopovar/AnyPS5/pull/5480) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/shader/recompiler/Recompiler.cpp` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 5859](https://www.github.com/boykopovar/AnyPS5/pull/5859) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 5917](https://www.github.com/boykopovar/AnyPS5/pull/5917) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5958](https://www.github.com/boykopovar/AnyPS5/pull/5958) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 5998](https://www.github.com/boykopovar/AnyPS5/pull/5998) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6012](https://www.github.com/boykopovar/AnyPS5/pull/6012) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6032](https://www.github.com/boykopovar/AnyPS5/pull/6032) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6054](https://www.github.com/boykopovar/AnyPS5/pull/6054) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6094](https://www.github.com/boykopovar/AnyPS5/pull/6094) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6095](https://www.github.com/boykopovar/AnyPS5/pull/6095) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6109](https://www.github.com/boykopovar/AnyPS5/pull/6109) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6130](https://www.github.com/boykopovar/AnyPS5/pull/6130) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6164](https://www.github.com/boykopovar/AnyPS5/pull/6164) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6169](https://www.github.com/boykopovar/AnyPS5/pull/6169) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6176](https://www.github.com/boykopovar/AnyPS5/pull/6176) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6178](https://www.github.com/boykopovar/AnyPS5/pull/6178) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6179](https://www.github.com/boykopovar/AnyPS5/pull/6179) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6182](https://www.github.com/boykopovar/AnyPS5/pull/6182) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6218](https://www.github.com/boykopovar/AnyPS5/pull/6218) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6232](https://www.github.com/boykopovar/AnyPS5/pull/6232) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6234](https://www.github.com/boykopovar/AnyPS5/pull/6234) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6243](https://www.github.com/boykopovar/AnyPS5/pull/6243) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6249](https://www.github.com/boykopovar/AnyPS5/pull/6249) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6259](https://www.github.com/boykopovar/AnyPS5/pull/6259) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` | | [PR 6291](https://www.github.com/boykopovar/AnyPS5/pull/6291) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6296](https://www.github.com/boykopovar/AnyPS5/pull/6296) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6317](https://www.github.com/boykopovar/AnyPS5/pull/6317) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6320](https://www.github.com/boykopovar/AnyPS5/pull/6320) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6326](https://www.github.com/boykopovar/AnyPS5/pull/6326) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6332](https://www.github.com/boykopovar/AnyPS5/pull/6332) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6341](https://www.github.com/boykopovar/AnyPS5/pull/6341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6360](https://www.github.com/boykopovar/AnyPS5/pull/6360) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6366](https://www.github.com/boykopovar/AnyPS5/pull/6366) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6373](https://www.github.com/boykopovar/AnyPS5/pull/6373) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6416](https://www.github.com/boykopovar/AnyPS5/pull/6416) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6417](https://www.github.com/boykopovar/AnyPS5/pull/6417) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6440](https://www.github.com/boykopovar/AnyPS5/pull/6440) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6451](https://www.github.com/boykopovar/AnyPS5/pull/6451) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6454](https://www.github.com/boykopovar/AnyPS5/pull/6454) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6457](https://www.github.com/boykopovar/AnyPS5/pull/6457) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6470](https://www.github.com/boykopovar/AnyPS5/pull/6470) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6471](https://www.github.com/boykopovar/AnyPS5/pull/6471) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6479](https://www.github.com/boykopovar/AnyPS5/pull/6479) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6490](https://www.github.com/boykopovar/AnyPS5/pull/6490) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6495](https://www.github.com/boykopovar/AnyPS5/pull/6495) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6499](https://www.github.com/boykopovar/AnyPS5/pull/6499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6530](https://www.github.com/boykopovar/AnyPS5/pull/6530) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6551](https://www.github.com/boykopovar/AnyPS5/pull/6551) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6588](https://www.github.com/boykopovar/AnyPS5/pull/6588) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6601](https://www.github.com/boykopovar/AnyPS5/pull/6601) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6606](https://www.github.com/boykopovar/AnyPS5/pull/6606) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6635](https://www.github.com/boykopovar/AnyPS5/pull/6635) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6642](https://www.github.com/boykopovar/AnyPS5/pull/6642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6644](https://www.github.com/boykopovar/AnyPS5/pull/6644) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6646](https://www.github.com/boykopovar/AnyPS5/pull/6646) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6650](https://www.github.com/boykopovar/AnyPS5/pull/6650) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6670](https://www.github.com/boykopovar/AnyPS5/pull/6670) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6674](https://www.github.com/boykopovar/AnyPS5/pull/6674) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6678](https://www.github.com/boykopovar/AnyPS5/pull/6678) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6679](https://www.github.com/boykopovar/AnyPS5/pull/6679) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6701](https://www.github.com/boykopovar/AnyPS5/pull/6701) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6730](https://www.github.com/boykopovar/AnyPS5/pull/6730) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6733](https://www.github.com/boykopovar/AnyPS5/pull/6733) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6748](https://www.github.com/boykopovar/AnyPS5/pull/6748) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6751](https://www.github.com/boykopovar/AnyPS5/pull/6751) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6767](https://www.github.com/boykopovar/AnyPS5/pull/6767) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvAnalysis.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp` | | [PR 6785](https://www.github.com/boykopovar/AnyPS5/pull/6785) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6856](https://www.github.com/boykopovar/AnyPS5/pull/6856) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6858](https://www.github.com/boykopovar/AnyPS5/pull/6858) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6881](https://www.github.com/boykopovar/AnyPS5/pull/6881) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6887](https://www.github.com/boykopovar/AnyPS5/pull/6887) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6905](https://www.github.com/boykopovar/AnyPS5/pull/6905) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6914](https://www.github.com/boykopovar/AnyPS5/pull/6914) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6948](https://www.github.com/boykopovar/AnyPS5/pull/6948) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6963](https://www.github.com/boykopovar/AnyPS5/pull/6963) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6965](https://www.github.com/boykopovar/AnyPS5/pull/6965) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6976](https://www.github.com/boykopovar/AnyPS5/pull/6976) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6982](https://www.github.com/boykopovar/AnyPS5/pull/6982) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7006](https://www.github.com/boykopovar/AnyPS5/pull/7006) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7082](https://www.github.com/boykopovar/AnyPS5/pull/7082) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7137](https://www.github.com/boykopovar/AnyPS5/pull/7137) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7169](https://www.github.com/boykopovar/AnyPS5/pull/7169) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7193](https://www.github.com/boykopovar/AnyPS5/pull/7193) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 7238](https://www.github.com/boykopovar/AnyPS5/pull/7238) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7240](https://www.github.com/boykopovar/AnyPS5/pull/7240) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7271](https://www.github.com/boykopovar/AnyPS5/pull/7271) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7275](https://www.github.com/boykopovar/AnyPS5/pull/7275) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7296](https://www.github.com/boykopovar/AnyPS5/pull/7296) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7307](https://www.github.com/boykopovar/AnyPS5/pull/7307) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7310](https://www.github.com/boykopovar/AnyPS5/pull/7310) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvAnalysis.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvSubgroup.cpp` | | [PR 7336](https://www.github.com/boykopovar/AnyPS5/pull/7336) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` |
karanvora2599 commented 2026-10-15 04:28:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-15T04:28:45Z.


Correction to my rebase note above: e6515bc8c didn't build. Since d9e47d1e9, main marks table-indexed images with ImageResource::table instead of indirectRoot, and the merge was textually clean, so I missed it. Fixed in ad94d980e: rule 4 now checks table != NoTable for images and also for samplers, which can come from tables since that change. On this head, the suite passes on the RTX 4060 (443 of 443); the Intel UHD and lavapipe results are in the description, and their failures also happen on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6184424323 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6184424323). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-15T04:28:45Z. --- Correction to my rebase note above: e6515bc8c didn't build. Since d9e47d1e9, `main` marks table-indexed images with `ImageResource::table` instead of `indirectRoot`, and the merge was textually clean, so I missed it. Fixed in ad94d980e: rule 4 now checks `table != NoTable` for images and also for samplers, which can come from tables since that change. On this head, the suite passes on the RTX 4060 (443 of 443); the Intel UHD and lavapipe results are in the description, and their failures also happen on `main`.
blawesom commented 2026-10-16 16:42:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-16T16:42:25Z.


Rebase handoff + the build break resolved — I rebased the current head onto main 143f13055 and it now applies and builds clean, so the e6515bc8c breakage you hit was against the older target: with d9e47d1e9's ImageResource::table marking now in main alongside your head ad94d980e, the table-indexed image paths line up again.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1287/1288 — the only failure is the known main regression (agc_driver_tessellation segfault, #4727), not this PR

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4339
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is f29c521a9 (your commit, authorship unchanged).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220240268 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6220240268). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-16T16:42:25Z. --- **Rebase handoff + the build break resolved** — I rebased the current head onto `main` `143f13055` and it now applies and **builds clean**, so the `e6515bc8c` breakage you hit was against the older target: with `d9e47d1e9`'s `ImageResource::table` marking now in `main` alongside your head `ad94d980e`, the table-indexed image paths line up again. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1287/1288** — the only failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727), not this PR **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4339 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `f29c521a9` (your commit, authorship unchanged).
Scramblrrrr commented 2026-10-16 17:02:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T17:02:46Z.


Preparing a current-main Windows/RTX5070Ti cross-test for 007 (PPSA11386, discussion#5714). Your current ad94d980e applies cleanly to our shared-table integration at local98e8a22e0: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-wave64-current . Source/conventions checked; explicitly not built/native-tested/title-tested yet because a separate shared-table title measurement is running. I will retain the analysis decision, use APS5_TWO_LANE for a control, and report aggregate accepted/rejected counts and exact heads rather than force APS5_SINGLE_LANE.

Why this is relevant: our previous title run's two largest compute modules are about3.95–3.97M SPIR-V words with only2functions; a bounded queue0 sample during a stall was150/150 PCs in NVIDIA's compiler. Current menu baseline is0.63056FPS and roughly108ms GPU work per present, so both compile cost and eventual GPU cost matter. We do not know whether those two programs qualify for one lane; the large-program rejections reported for Yotei are noted. RTX5070Ti reports no f32 flush-to-zero support, so #6503 is not a shortcut here. No performance claim or duplicate implementation. Title code and raw captures stay local. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220594963 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6220594963). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T17:02:46Z. --- Preparing a current-main Windows/RTX5070Ti cross-test for 007 (PPSA11386, discussion#5714). Your current ad94d980e applies cleanly to our shared-table integration at local98e8a22e0: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-wave64-current . Source/conventions checked; explicitly not built/native-tested/title-tested yet because a separate shared-table title measurement is running. I will retain the analysis decision, use APS5_TWO_LANE for a control, and report aggregate accepted/rejected counts and exact heads rather than force APS5_SINGLE_LANE. Why this is relevant: our previous title run's two largest compute modules are about3.95–3.97M SPIR-V words with only2functions; a bounded queue0 sample during a stall was150/150 PCs in NVIDIA's compiler. Current menu baseline is0.63056FPS and roughly108ms GPU work per present, so both compile cost and eventual GPU cost matter. We do not know whether those two programs qualify for one lane; the large-program rejections reported for Yotei are noted. RTX5070Ti reports no f32 flush-to-zero support, so #6503 is not a shortcut here. No performance claim or duplicate implementation. Title code and raw captures stay local. AI-assisted: Codex.
Scramblrrrr commented 2026-10-16 17:20:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T17:20:47Z.


Windows/RTX5070Ti617.42 native gate is green on integrationd8547a54e06e7d7fafecb7f3223f01cd09896277:22/22 selected CPU/native Vulkan controls PASS11.65s, no skips, including your wave64 layout fixture, shader memory/disk cache, buffer load/store and integer atomics, readlane/readfirstlane, ds_swizzle/ds_permute/permlane16, LDS read/write+integer atomics, wave uniform/wave32, masked select, and shared image-table checks. The16 relevant controls also PASS5.74s with APS5_TWO_LANE=1 (decision fixture excluded from that control because it asserts automatic choices). Conventions clean; matched patched driver/Agc/VideoOut built and staged.

007 is now booting that exact integration with APS5_WAVE64_LAYOUT_LOG=1, all other budgets/guards unchanged from the preceding1.10491FPS menu result at517d. Early logs do show programs admitted and refused for the expected cross-lane/LDS reasons. Counts and title outcome still pending; this is not yet a title speedup claim. AI-assisted: Codex; private title data not attached.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220906215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6220906215). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T17:20:47Z. --- Windows/RTX5070Ti617.42 native gate is green on integrationd8547a54e06e7d7fafecb7f3223f01cd09896277:22/22 selected CPU/native Vulkan controls PASS11.65s, no skips, including your wave64 layout fixture, shader memory/disk cache, buffer load/store and integer atomics, readlane/readfirstlane, ds_swizzle/ds_permute/permlane16, LDS read/write+integer atomics, wave uniform/wave32, masked select, and shared image-table checks. The16 relevant controls also PASS5.74s with APS5_TWO_LANE=1 (decision fixture excluded from that control because it asserts automatic choices). Conventions clean; matched patched driver/Agc/VideoOut built and staged. 007 is now booting that exact integration with APS5_WAVE64_LAYOUT_LOG=1, all other budgets/guards unchanged from the preceding1.10491FPS menu result at517d. Early logs do show programs admitted and refused for the expected cross-lane/LDS reasons. Counts and title outcome still pending; this is not yet a title speedup claim. AI-assisted: Codex; private title data not attached.
Scramblrrrr commented 2026-10-16 17:34:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T17:34:44Z.


007 outcome for d8547a54e (your ad94d980e on the shared-table integration): correctly rendered title and offline menu, no terminal error observed. No-input menu85presents/79.706s =1.06642FPS, frames963–1048,17:31:22.768–17:32:42.474UTC. Preceding517d without #4339 measured1.10491FPS in76.929s, same budgets/guards/drawcache1024 and menu. These short samples of an animated background establish no clear improvement or regression; no FPS win claimed, and this was not a repeated alternating A/B experiment. Native22/22 plus16/16 two-lane controls remain green.

The two largest modules remain3,973,914 and3,945,865words, both explicitly refused by the analysis at ReadFirstLane. The retained private captures have LocalSize32x1x1 and2functions each, no f64-typed results. Pipeline creation in this run hit existing driver-cache entries (33/38ms for those two), so their fast creation is NOT attributed to #4339. Many smaller programs qualify: one intermediate parse had at least428 distinct address/decision pairs admitted and336 refused, but the census is incomplete and concurrent stderr can split lines. No title code or raw requests attached.

Owned stop after the sample, peak sampled private27.02GiB/minfree3.93GiB, same2GiBfree/28GiBprivate guards, no guard termination. Branch preserved for cross-tests. I am leaving #4339 out of the next 007 level-loading stack since it adds no demonstrated benefit for this menu and the largest programs stay two-lane. This is not a recommendation against it for other titles. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221144679 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6221144679). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T17:34:44Z. --- 007 outcome for d8547a54e (your ad94d980e on the shared-table integration): correctly rendered title and offline menu, no terminal error observed. No-input menu85presents/79.706s =1.06642FPS, frames963–1048,17:31:22.768–17:32:42.474UTC. Preceding517d without #4339 measured1.10491FPS in76.929s, same budgets/guards/drawcache1024 and menu. These short samples of an animated background establish no clear improvement or regression; no FPS win claimed, and this was not a repeated alternating A/B experiment. Native22/22 plus16/16 two-lane controls remain green. The two largest modules remain3,973,914 and3,945,865words, both explicitly refused by the analysis at ReadFirstLane. The retained private captures have LocalSize32x1x1 and2functions each, no f64-typed results. Pipeline creation in this run hit existing driver-cache entries (33/38ms for those two), so their fast creation is NOT attributed to #4339. Many smaller programs qualify: one intermediate parse had at least428 distinct address/decision pairs admitted and336 refused, but the census is incomplete and concurrent stderr can split lines. No title code or raw requests attached. Owned stop after the sample, peak sampled private27.02GiB/minfree3.93GiB, same2GiBfree/28GiBprivate guards, no guard termination. Branch preserved for cross-tests. I am leaving #4339 out of the next 007 level-loading stack since it adds no demonstrated benefit for this menu and the largest programs stay two-lane. This is not a recommendation against it for other titles. AI-assisted: Codex.
oneandonlydean commented 2026-10-16 23:29:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-16T23:29:32Z.


#5405 is merged now, and main runs single-wave wave64 compute programs at one lane per invocation on 32-lane hosts (spannedWaves, SpannedLane(), with SpannedWaveUnsupported as the fallback). This PR solves the same layout problem differently, choosing per program from the IR analysis in SpirvAnalysis.cpp, so the rebase isn't mechanical: it conflicts in Recompiler.cpp, the emitter state and helpers, and the subgroup lane id, and the two mechanisms would have to become one. Does the per-program choice still add something on top of #5405, for example programs #5405 sends to the fallback? If it does, could you rebase it onto spannedWaves as that analysis deciding which programs may span? If not, I'd close this in favour of #5405.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226615135 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6226615135). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-16T23:29:32Z. --- #5405 is merged now, and main runs single-wave wave64 compute programs at one lane per invocation on 32-lane hosts (`spannedWaves`, `SpannedLane()`, with `SpannedWaveUnsupported` as the fallback). This PR solves the same layout problem differently, choosing per program from the IR analysis in `SpirvAnalysis.cpp`, so the rebase isn't mechanical: it conflicts in `Recompiler.cpp`, the emitter state and helpers, and the subgroup lane id, and the two mechanisms would have to become one. Does the per-program choice still add something on top of #5405, for example programs #5405 sends to the fallback? If it does, could you rebase it onto `spannedWaves` as that analysis deciding which programs may span? If not, I'd close this in favour of #5405.
karanvora2599 commented 2026-10-18 00:58:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-18T00:58:04Z.


Thanks @oneandonlydean. With #5405 merged, main already runs single-wave wave64 programs at one lane per invocation, and that was the layout problem this PR was for.

What this PR would add on top is choosing per program from the IR analysis, for programs #5405 sends to SpannedWaveUnsupported. I don't have a title showing such programs matter. @Celegans12's Yōtei run found 8 one-lane programs among the 83 behind the biggest pipelines, all the same shader. I'll close this in favour of #5405 and reopen it as a rebase onto spannedWaves if a title shows programs left on the fallback that the analysis could span.

Thanks @Scramblrrrr, @blawesom and @Celegans12 for the testing, the rebase handoffs and the Yōtei decision log.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243972613 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4339#issuecomment-6243972613). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-18T00:58:04Z. --- Thanks @oneandonlydean. With #5405 merged, `main` already runs single-wave wave64 programs at one lane per invocation, and that was the layout problem this PR was for. What this PR would add on top is choosing per program from the IR analysis, for programs #5405 sends to `SpannedWaveUnsupported`. I don't have a title showing such programs matter. @Celegans12's Yōtei run found 8 one-lane programs among the 83 behind the biggest pipelines, all the same shader. I'll close this in favour of #5405 and reopen it as a rebase onto `spannedWaves` if a title shows programs left on the fallback that the analysis could span. Thanks @Scramblrrrr, @blawesom and @Celegans12 for the testing, the rebase handoffs and the Yōtei decision log.

Pull request closed

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!4339
No description provided.