perf(shader): compute v_dot4 with packed integer dot products #4061

Closed
karanvora2599 wants to merge 1 commit from upstream-pr/4061 into main
karanvora2599 commented 2026-10-11 22:26:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-11T22:26:52Z.


What

v_dot4_i32_i8, v_dot4c_i32_i8 and v_dot4_u32_u8 use OpSDot/OpUDot on packed 4×8-bit operands where the device has accelerated integer dot products. Results are unchanged.

Background. integerDot extracts the four bytes of each source, multiplies them pairwise and adds the products to the accumulator. On NVIDIA that is 12.5 SASS per v_dot4_i32_i8, while every NVIDIA GPU since Pascal has a single instruction for it, IDP.4A (dp4a). ptxas emits one instruction for it on sm_61, sm_75, sm_86, sm_89 and sm_120. The compiler doesn't recognise the extract/multiply/add sequence, but OpSDot/OpUDot from VK_KHR_shader_integer_dot_product (core in Vulkan 1.3) map to it directly.

How.

  • Device. When it reports shaderIntegerDotProduct and both integerDotProduct4x8BitPackedSignedAccelerated and integerDotProduct4x8BitPackedUnsignedAccelerated, VulkanDevice enables VK_KHR_shader_integer_dot_product. The target then gets the DotProduct and DotProductInput4x8BitPacked capabilities and SPV_KHR_integer_dot_product. The capabilities are also added to the graphics shader validation list.
  • Translation. With those capabilities, integerDot emits new IR ops SDot4x8/UDot4x8 for the 8-bit forms and adds the accumulator with IAdd as before. The backend lowers them to OpSDot (signed i32 result, bitcast) and OpUDot with PackedVectorFormat4x8Bit.
  • Unchanged forms. The 16-bit v_dot2_* and the 4-bit v_dot8_* keep their current lowering; SPIR-V has no packed 2×16 or 8×4 format. Devices without the feature also keep the byte extracts.

Before / after on an RTX 4060 Laptop (Ada, driver 591.86):

Instruction SASS before SASS after
v_dot4_i32_i8 12.5 2.0
v_dot4c_i32_i8 12.5 1.5
v_dot4_u32_u8 9.0 2.0

SASS per instruction is the APS5_PIPELINE_STATS binary size over a chain of 16. No other opcode in the sweep changes size.

Run time: 2,048 dependent dot products, each feeding the next one's first source, over 16,384 groups of 32 lanes. Median of 15 interleaved dispatches in one process, with and without the capabilities:

Chain before after
v_dot4_i32_i8 4.52 ms 0.71 ms
v_dot4_u32_u8 3.11 ms 0.69 ms
v_dot2_i32_i16 (unchanged, control) 1.87 ms 1.88 ms

Why results don't change. OpSDot/OpUDot return the sum of the four products of the sign- or zero-extended bytes. Its magnitude is at most 4 × 128 × 128, so it is exact in 32 bits. The accumulator is then added with the same wrapping IAdd as before.

Tested

Windows 11, MinGW-w64 GCC 15.2.0, Release, main at 7c8df1f0. 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).

  • agc_driver_integer_dot:
    • It now runs 16 batches of 64 inputs (the edge rows in the first) through all of its dot instructions. On devices with the capabilities it runs once with them and once without, comparing every lane with its CPU model.
    • It requires OpSDot/OpUDot in the SPIR-V exactly when the capabilities are present.
    • The RTX 4060 and the Intel UHD run both lowerings; lavapipe, which doesn't report accelerated packed dot products, runs the generic one.
  • Negative check: lowering v_dot4_i32_i8 with OpUDot instead makes it fail (v_dot4_i32_i8 (packed dot product): thread 2 (0xffffffff, 0xffffffff, 0x00000001) is 0x0003f805, expected 0x00000005).
  • Shader tests (agc_driver_*, agc_shader_*, agc_spirv_*, vector_*, agc_masked_select, agc_validate_program, agc_denormal*, agc_float16_*; 319 tests). I left out the BDA tests that hang on driver 591.86 until #3291 lands. I also built with #4021 applied locally, because main at 7c8df1f0 doesn't compile libkernel on Windows.
    • RTX 4060 and lavapipe 25.2.8: everything passes or is skipped, except agc_driver_prepared_shaders_registered_workgroup_sync. That test (added by #2261) fails the same way, expected preparation failure, on a build without this change.
    • Intel UHD: the same, plus agc_driver_ds_swizzle and agc_driver_f32_dot2_rounding (no Float64; it throws instead of skipping), which fail the same way with main's recompiler. agc_driver_gated_dispatch_capture failed once and passed on rerun.

Limits.

  • I haven't run it on AMD hardware, or on NVIDIA generations other than Ada. On those, the path is only taken when the driver reports the accelerated flags.
  • v_dot8_i32_i4/v_dot8_u32_u4 (26 SASS) are unchanged; a packed 4-bit form would need unpacking to bytes first, which I left out.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822859491 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-11T22:26:52Z. --- ### What `v_dot4_i32_i8`, `v_dot4c_i32_i8` and `v_dot4_u32_u8` use `OpSDot`/`OpUDot` on packed 4×8-bit operands where the device has accelerated integer dot products. Results are unchanged. **Background.** `integerDot` extracts the four bytes of each source, multiplies them pairwise and adds the products to the accumulator. On NVIDIA that is 12.5 SASS per `v_dot4_i32_i8`, while every NVIDIA GPU since Pascal has a single instruction for it, IDP.4A (`dp4a`). `ptxas` emits one instruction for it on sm_61, sm_75, sm_86, sm_89 and sm_120. The compiler doesn't recognise the extract/multiply/add sequence, but `OpSDot`/`OpUDot` from `VK_KHR_shader_integer_dot_product` (core in Vulkan 1.3) map to it directly. **How.** - **Device.** When it reports `shaderIntegerDotProduct` and both `integerDotProduct4x8BitPackedSignedAccelerated` and `integerDotProduct4x8BitPackedUnsignedAccelerated`, `VulkanDevice` enables `VK_KHR_shader_integer_dot_product`. The target then gets the `DotProduct` and `DotProductInput4x8BitPacked` capabilities and `SPV_KHR_integer_dot_product`. The capabilities are also added to the graphics shader validation list. - **Translation.** With those capabilities, `integerDot` emits new IR ops `SDot4x8`/`UDot4x8` for the 8-bit forms and adds the accumulator with `IAdd` as before. The backend lowers them to `OpSDot` (signed `i32` result, bitcast) and `OpUDot` with `PackedVectorFormat4x8Bit`. - **Unchanged forms.** The 16-bit `v_dot2_*` and the 4-bit `v_dot8_*` keep their current lowering; SPIR-V has no packed 2×16 or 8×4 format. Devices without the feature also keep the byte extracts. **Before / after** on an RTX 4060 Laptop (Ada, driver 591.86): | Instruction | SASS before | SASS after | |---|---|---| | `v_dot4_i32_i8` | 12.5 | 2.0 | | `v_dot4c_i32_i8` | 12.5 | 1.5 | | `v_dot4_u32_u8` | 9.0 | 2.0 | SASS per instruction is the `APS5_PIPELINE_STATS` binary size over a chain of 16. No other opcode in the sweep changes size. Run time: 2,048 dependent dot products, each feeding the next one's first source, over 16,384 groups of 32 lanes. Median of 15 interleaved dispatches in one process, with and without the capabilities: | Chain | before | after | |---|---|---| | `v_dot4_i32_i8` | 4.52 ms | 0.71 ms | | `v_dot4_u32_u8` | 3.11 ms | 0.69 ms | | `v_dot2_i32_i16` (unchanged, control) | 1.87 ms | 1.88 ms | **Why results don't change.** `OpSDot`/`OpUDot` return the sum of the four products of the sign- or zero-extended bytes. Its magnitude is at most 4 × 128 × 128, so it is exact in 32 bits. The accumulator is then added with the same wrapping `IAdd` as before. ### Tested Windows 11, MinGW-w64 GCC 15.2.0, Release, `main` at 7c8df1f0. 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`). - `agc_driver_integer_dot`: - It now runs 16 batches of 64 inputs (the edge rows in the first) through all of its dot instructions. On devices with the capabilities it runs once with them and once without, comparing every lane with its CPU model. - It requires `OpSDot`/`OpUDot` in the SPIR-V exactly when the capabilities are present. - The RTX 4060 and the Intel UHD run both lowerings; lavapipe, which doesn't report accelerated packed dot products, runs the generic one. - Negative check: lowering `v_dot4_i32_i8` with `OpUDot` instead makes it fail (`v_dot4_i32_i8 (packed dot product): thread 2 (0xffffffff, 0xffffffff, 0x00000001) is 0x0003f805, expected 0x00000005`). - Shader tests (`agc_driver_*`, `agc_shader_*`, `agc_spirv_*`, `vector_*`, `agc_masked_select`, `agc_validate_program`, `agc_denormal*`, `agc_float16_*`; 319 tests). I left out the BDA tests that hang on driver 591.86 until #3291 lands. I also built with #4021 applied locally, because `main` at 7c8df1f0 doesn't compile `libkernel` on Windows. - RTX 4060 and lavapipe 25.2.8: everything passes or is skipped, except `agc_driver_prepared_shaders_registered_workgroup_sync`. That test (added by #2261) fails the same way, `expected preparation failure`, on a build without this change. - Intel UHD: the same, plus `agc_driver_ds_swizzle` and `agc_driver_f32_dot2_rounding` (no `Float64`; it throws instead of skipping), which fail the same way with `main`'s recompiler. `agc_driver_gated_dispatch_capture` failed once and passed on rerun. **Limits.** - I haven't run it on AMD hardware, or on NVIDIA generations other than Ada. On those, the path is only taken when the driver reports the accelerated flags. - `v_dot8_i32_i4`/`v_dot8_u32_u4` (26 SASS) are unchanged; a packed 4-bit form would need unpacking to bytes first, which I left out. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
oneandonlydean commented 2026-10-11 23:21:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:21:02Z.


Which title's shaders use v_dot4_*? The 4.52 → 0.71 ms figure is for a synthetic chain of 2,048 dot products; a frame time before and after on a title that runs them is what's needed for this to go in.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115043851 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6115043851). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:21:02Z. --- Which title's shaders use `v_dot4_*`? The 4.52 → 0.71 ms figure is for a synthetic chain of 2,048 dot products; a frame time before and after on a title that runs them is what's needed for this to go in.
karanvora2599 commented 2026-10-11 23:25:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-11T23:25:35Z.


None that I know of. I picked v_dot4_* from an instruction-level comparison: the byte extract/multiply/add lowering against NVIDIA's single IDP.4A. It didn't come from a capture, so the synthetic chain is the only evidence I have.

I'll leave this open. If someone finds v_dot4_* in a title's shaders (through APS5_DUMP_SHADERS and agc_shader_replay --asm, for example), a frame time before and after can go here. Until then I agree it shouldn't go in on synthetic numbers alone.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115085503 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6115085503). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-11T23:25:35Z. --- None that I know of. I picked `v_dot4_*` from an instruction-level comparison: the byte extract/multiply/add lowering against NVIDIA's single IDP.4A. It didn't come from a capture, so the synthetic chain is the only evidence I have. I'll leave this open. If someone finds `v_dot4_*` in a title's shaders (through `APS5_DUMP_SHADERS` and `agc_shader_replay --asm`, for example), a frame time before and after can go here. Until then I agree it shouldn't go in on synthetic numbers alone.
fma-rc commented 2026-10-12 00:35:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-12T00:35:10Z.


I looked for v_dot4_* in what titles here actually submit. I dumped every shader request (compute and all draw stages) from eleven titles on Linux and counted opcodes from agc_shader_replay --asm: 837 shaders, 316,352 instructions, and no v_dot4_i32_i8 or v_dot4_u32_u8 (VOP3P 0x16, 0x17), no v_dot4c_i32_i8 (VOP2 0x0d) and no v_dot2_*. The only VOP3P opcodes in the whole set are 0x11, 0x12 and 0x20 to 0x22, 97 instructions.

Title Shaders Instructions
Astro's Playroom PPSA01325 175 105,532
Astro Bot PPSA21564 111 71,546
Taxi Chaos 2 PPSA30279 226 69,097
LEGO Horizon Adventures PPSA14632 147 43,270
Ratchet & Clank: Rift Apart PPSA01474 52 11,040
Animal Well PPSA22520 29 6,388
Kena: Bridge of Spirits PPSA01746 36 3,416
Balatro PPSA21402 17 2,269
Hades PPSA03355 16 1,730
Stray PPSA02100 22 1,529
Hades II PPSA36082 6 535

These are the shaders each title submitted in a run of one to three minutes: Playroom into gameplay in its first level, Astro Bot for 150 s (1,028 frames, I did not look at which screen it reached), the others to a menu or first scene, and Stray, LEGO Horizon, Hades II, Kena (62 s) and Ratchet & Clank (117 s) stop early on other errors. Later levels are not covered. Draw-stage shaders needed a local one-line change that dumps every draw request, because APS5_DUMP_SHADERS alone only writes compute requests.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115664774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6115664774). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-12T00:35:10Z. --- I looked for `v_dot4_*` in what titles here actually submit. I dumped every shader request (compute and all draw stages) from eleven titles on Linux and counted opcodes from `agc_shader_replay --asm`: 837 shaders, 316,352 instructions, and no `v_dot4_i32_i8` or `v_dot4_u32_u8` (VOP3P 0x16, 0x17), no `v_dot4c_i32_i8` (VOP2 0x0d) and no `v_dot2_*`. The only VOP3P opcodes in the whole set are 0x11, 0x12 and 0x20 to 0x22, 97 instructions. | Title | Shaders | Instructions | |---|---|---| | Astro's Playroom PPSA01325 | 175 | 105,532 | | Astro Bot PPSA21564 | 111 | 71,546 | | Taxi Chaos 2 PPSA30279 | 226 | 69,097 | | LEGO Horizon Adventures PPSA14632 | 147 | 43,270 | | Ratchet & Clank: Rift Apart PPSA01474 | 52 | 11,040 | | Animal Well PPSA22520 | 29 | 6,388 | | Kena: Bridge of Spirits PPSA01746 | 36 | 3,416 | | Balatro PPSA21402 | 17 | 2,269 | | Hades PPSA03355 | 16 | 1,730 | | Stray PPSA02100 | 22 | 1,529 | | Hades II PPSA36082 | 6 | 535 | These are the shaders each title submitted in a run of one to three minutes: Playroom into gameplay in its first level, Astro Bot for 150 s (1,028 frames, I did not look at which screen it reached), the others to a menu or first scene, and Stray, LEGO Horizon, Hades II, Kena (62 s) and Ratchet & Clank (117 s) stop early on other errors. Later levels are not covered. Draw-stage shaders needed a local one-line change that dumps every draw request, because `APS5_DUMP_SHADERS` alone only writes compute requests.
karanvora2599 commented 2026-10-12 02:31:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-12T02:31:59Z.


Thanks @fma-rc, this corpus is exactly what's been missing. With no v_dot4_* or v_dot2_* in 301,896 instructions from nine titles, this PR doesn't speed up any of them; it would only help a title that does use them. Whether it's still worth merging is the maintainers' call.

Could you post an opcode histogram (counts per opcode, wave32 and wave64 separately), or say where the .req dumps could be shared? I've been ranking NVIDIA work by SASS cost per instruction without knowing how often each instruction appears, and counts would show which instructions are worth optimising. The ones I'm weighing next:

  • ds_permute_b32 (#4181);
  • v_cmp_class_f32 / v_cmp_class_f16, and whether the mask operand is a constant;
  • s_buffer_load_dword*;
  • buffer_store_byte / buffer_store_short;
  • v_interp_p2_f16, v_interp_p1ll_f16 / v_interp_p1lv_f16 (#4171 covers them along with the 33 v_fma_mix*);
  • the 64-bit LDS atomics (ds_*_u64).
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6116697237 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6116697237). Originally posted by [karanvora2599](https://github.com/karanvora2599) on 2026-10-12T02:31:59Z. --- Thanks @fma-rc, this corpus is exactly what's been missing. With no `v_dot4_*` or `v_dot2_*` in 301,896 instructions from nine titles, this PR doesn't speed up any of them; it would only help a title that does use them. Whether it's still worth merging is the maintainers' call. Could you post an opcode histogram (counts per opcode, wave32 and wave64 separately), or say where the `.req` dumps could be shared? I've been ranking NVIDIA work by SASS cost per instruction without knowing how often each instruction appears, and counts would show which instructions are worth optimising. The ones I'm weighing next: - `ds_permute_b32` (#4181); - `v_cmp_class_f32` / `v_cmp_class_f16`, and whether the mask operand is a constant; - `s_buffer_load_dword*`; - `buffer_store_byte` / `buffer_store_short`; - `v_interp_p2_f16`, `v_interp_p1ll_f16` / `v_interp_p1lv_f16` (#4171 covers them along with the 33 `v_fma_mix*`); - the 64-bit LDS atomics (`ds_*_u64`).
fma-rc commented 2026-10-12 03:07:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-12T03:07:01Z.


@karanvora2599 the histogram is here, counts per opcode with wave32 and wave64 in separate columns, plus a per-title file and the script: https://github.com/fma-rc/AnyPS5/tree/evidence/shader-census

Same 837 shaders as above (45 wave32, 792 wave64), 316,352 instructions, 395 distinct family/opcode pairs. Names are the decoder's own table names; scalar, VINTRP and export instructions have no flat table there, so those 133 rows carry only family and hardware opcode. I can't share the .req files, they are the titles' own shader code.

For the ones you listed:

Instruction wave32 wave64 Shaders
s_buffer_load_dword and x2 to x16 1,319 6,675 most of them
v_cmp_class_f32 4 6 6
v_mad_mixlo_f16 / v_mad_mixhi_f16 0 16 1
ds_permute_b32, v_cmp_class_f16, buffer_store_byte / _short, v_interp_*_f16, any ds_*_u64 0 0 0

I did not decode whether the v_cmp_class_f32 mask operand is a constant. The top of the list is v_mul_f32 (42,491), v_mac_f32 (25,318) and v_mad_f32 (22,914).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117018087 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6117018087). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-12T03:07:01Z. --- @karanvora2599 the histogram is here, counts per opcode with wave32 and wave64 in separate columns, plus a per-title file and the script: https://github.com/fma-rc/AnyPS5/tree/evidence/shader-census Same 837 shaders as above (45 wave32, 792 wave64), 316,352 instructions, 395 distinct family/opcode pairs. Names are the decoder's own table names; scalar, `VINTRP` and export instructions have no flat table there, so those 133 rows carry only family and hardware opcode. I can't share the `.req` files, they are the titles' own shader code. For the ones you listed: | Instruction | wave32 | wave64 | Shaders | |---|---|---|---| | `s_buffer_load_dword` and x2 to x16 | 1,319 | 6,675 | most of them | | `v_cmp_class_f32` | 4 | 6 | 6 | | `v_mad_mixlo_f16` / `v_mad_mixhi_f16` | 0 | 16 | 1 | | `ds_permute_b32`, `v_cmp_class_f16`, `buffer_store_byte` / `_short`, `v_interp_*_f16`, any `ds_*_u64` | 0 | 0 | 0 | I did not decode whether the `v_cmp_class_f32` mask operand is a constant. The top of the list is `v_mul_f32` (42,491), `v_mac_f32` (25,318) and `v_mad_f32` (22,914).
fma-rc commented 2026-10-12 04:13:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-12T04:13:07Z.


I ran the census on a few more games and updated the two comments above and the branch. Ratchet & Clank: Rift Apart (52 shaders, stops at 117 s) and Kena (36 shaders, stops at 62 s) are in now; GTA V and Cult of the Lamb crash here before they submit a shader. The set is 837 shaders (45 wave32, 792 wave64) and 316,352 instructions.

What Ratchet adds that the first nine titles did not have:

Instruction Count Shaders
ds_min_f32 / ds_max_f32 3 / 3 1
v_min3_f16 / v_max3_f16 12 / 12 2
v_pk_min_f16 / v_pk_max_f16 1 / 1 1

So your note on PR 4212 that no CAS-loop LDS atomic appears no longer holds: Ratchet uses the float min and max. It also has 7 more v_cmp_class_f32 in 5 shaders. Still no v_dot4_*, ds_permute_b32, buffer_store_byte / _short, image_sample_d / _cd or v_interp_*_f16 anywhere.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117615215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6117615215). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-12T04:13:07Z. --- I ran the census on a few more games and updated the two comments above and the branch. Ratchet & Clank: Rift Apart (52 shaders, stops at 117 s) and Kena (36 shaders, stops at 62 s) are in now; GTA V and Cult of the Lamb crash here before they submit a shader. The set is 837 shaders (45 wave32, 792 wave64) and 316,352 instructions. What Ratchet adds that the first nine titles did not have: | Instruction | Count | Shaders | |---|---|---| | `ds_min_f32` / `ds_max_f32` | 3 / 3 | 1 | | `v_min3_f16` / `v_max3_f16` | 12 / 12 | 2 | | `v_pk_min_f16` / `v_pk_max_f16` | 1 / 1 | 1 | So your note on PR 4212 that no CAS-loop LDS atomic appears no longer holds: Ratchet uses the float min and max. It also has 7 more `v_cmp_class_f32` in 5 shaders. Still no `v_dot4_*`, `ds_permute_b32`, `buffer_store_byte` / `_short`, `image_sample_d` / `_cd` or `v_interp_*_f16` anywhere.
oneandonlydean commented 2026-10-12 07:37:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T07:37:07Z.


Closing: no title's shaders run v_dot4_* (none in fma-rc's 837 shaders from 11 titles), so there is no frame to measure it on. Please reopen when a title uses it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6119857818 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4061#issuecomment-6119857818). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T07:37:07Z. --- Closing: no title's shaders run `v_dot4_*` (none in fma-rc's 837 shaders from 11 titles), so there is no frame to measure it on. Please reopen when a title uses it.

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