perf(shader): run packed 16-bit integer ALU as 16-bit vectors with shaderInt16 #16887

Merged
Ducengarth merged 2 commits from upstream-pr/16887 into main 2026-11-12 13:38:55 +00:00
Ducengarth commented 2026-11-07 20:31:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ducengarth on 2026-11-07T20:31:43Z.


What

On a device with shaderInt16, the VOP3P packed 16-bit integer instructions become one two-component 16-bit vector operation instead of being split into lanes:

  • v_pk_mul_lo_u16
  • v_pk_lshlrev_b16, v_pk_lshrrev_b16, v_pk_ashrrev_i16
  • v_pk_min_i16, v_pk_max_i16, v_pk_min_u16, v_pk_max_u16
  • the unclamped v_pk_add_i16/u16, v_pk_sub_i16/u16 and v_pk_mad_i16/u16

Today each of them extracts both 16-bit lanes of every source, computes each lane in 32-bit arithmetic and repacks the result. #6118 measured the FSR4 Showcase program 0x275580000 at 550,218 SPIR-V words, 52 % of it integer ALU from its 2,872 v_pk_mad_u16. Its pipeline build (10 s on an RTX 5060 Ti) is about twice the title's wait.

How:

  • Ten new IR opcodes (IAdd16x2, ISub16x2, IMul16x2, ShiftLeftLogical16x2, ShiftRightLogical16x2, ShiftRightArithmetic16x2, SMin16x2, SMax16x2, UMin16x2, UMax16x2) take and return the U32 word that holds both lanes, like the existing FPAdd16x2 family.
  • The emitter bitcasts the words to a vector of two 16-bit integers and emits one OpIAdd, OpISub, OpIMul, shift (count masked to 4 bits per lane) or GLSL.std.450 min/max. SpirvSpecialization already removes the bitcast pairs between chained operations.
  • readPackedU16Source applies op_sel, op_sel_hi and neg_lo/neg_hi to the 32-bit source word, with the same source read and modifiers as the lane path.
  • ConstantFolder folds the new opcodes, and they are value-numbered by RedundantValueEliminator.
  • The device enables shaderInt16 when available and advertises CapabilityInt16; ShaderDeviceProfile checks it against the enabled features.
  • agc_shader_replay --shader-int16 replays a saved request with the capability, so requests dumped before this change can be measured.

The lane path stays, unchanged, for the clamped add, sub and mad forms (core SPIR-V has no saturating integer add) and for devices without shaderInt16; recorded in docs/dev/debt/shader.md. The lane code's results are the reference: mul_lo, shifts and min/max keep ignoring clamp, as the lane code does.

Not touched: the f16 packed path, BDA, image mode switches and the f32 NaN rules, which other open work covers (#13538, #11183, #14260).

Tested

Windows 11 Pro N (10.0.26300), NVIDIA GeForce RTX 3090 Ti, driver 621.14, WinLibs GCC 15.2.0, Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF (the release configuration). No title or homebrew; no PS5.

  • agc_driver_packed_integer_native (new): 64 cases cover all 14 instructions, the four op_sel/op_sel_hi selections, neg_lo/neg_hi, inline integer constants, literals and fully constant (folded) sources. They run over 64 lanes of edge and random inputs. The program is recompiled with and without CapabilityInt16, and both outputs must match a CPU reference bit for bit. The test also checks that only the Int16 module declares 16-bit integers.
    • Mutations caught: writing neg_hi as 0x8000 makes it fail (332 mismatches), and so does making the arithmetic-shift and signed-max folds unsigned.
  • agc_driver_packed_alu, agc_driver_packed_integer_negate and agc_driver_packed_integer_clamp pass on the native path.
  • Focused suite, ctest -R "^agc_driver_|^agc_|^shader_|^vector_" with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 --parallel 5, same machine:
    • main dd00a9c54e: 1442/1442 pass.
    • This branch: 1443/1443 (the extra one is the new test). 25 tests first timed out at their 30 s limit while another build ran on the machine; all 25 pass when rerun on an idle machine.
  • After rebasing onto main 8f7c957ed0, the validation-layer set below passes again: 120/120 tests, layer inserted, no VUID-, the same 20 warnings. The full focused suite and the benchmark ran on the previous base, dd00a9c54e. The rebase changed only one file of this PR, SpirvAluEmitterMath.cpp, where main edited code away from the new functions.
  • After merging main e67e806b1f into this branch (the only conflict was the neighbouring new entry in docs/dev/debt/shader.md), agc_driver_packed_alu, agc_driver_packed_integer_clamp, agc_driver_packed_integer_native and agc_driver_packed_integer_negate pass on the RTX 3090 Ti under the validation layer: layer inserted 4 times, no was not found message, no VUID-. agc_driver_packed_integer_native reports 11,767 SPIR-V words with Int16 against 11,905 lane by lane. The full focused suite, the rest of the validation set and the benchmark were not rerun on this base.
  • Validation layer, same machine, main dd00a9c54e and this branch: ctest -R "^agc_driver_.*(packed|integer|16|_alu|vop3|mul_lo|sdwa)" -V with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation.
    • Layer: Khronos validation 1.4.363 from MSYS2's ucrt64 package, run with its own GCC runtime.
    • main 119/119 and this branch 120/120 pass.
    • The loader logs Insert instance layer "VK_LAYER_KHRONOS_validation" in every test that opens a device. The two that do not insert it are the CPU-only *_spirv tests, the same two on both sides.
    • Neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS.
    • Neither log contains a VUID-. Both have the same 20 Undefined-Value-ShaderOutputNotConsumed-DynamicRendering warnings.

Synthetic benchmark, not in the repository: a compute program of K packed integer instructions (mad_u16, mad_i16 with op_sel, ashrrev by 8, add, max with 0, mul_lo, sub, lshlrev, min_u16 with neg), checked against a CPU reference on every run. Each module is salted with a new literal so the driver cache cannot serve it. Pipeline creation is the median over 3 rounds × 4 modules, run in turn on main, this branch with Int16, and this branch without it.

K SPIR-V words main → this branch pipeline creation main this branch this branch, Int16 removed
250 10,843 → 4,283 ~125 ms ~119 ms ~131 ms
1000 37,738 → 11,759 ~614 ms ~395 ms ~722 ms
3000 109,468 → 31,713 ~2,650 ms ~2,100 ms ~2,550 ms
  • GPU time for K = 3000 over 65,536 workgroups of 32 lanes, fastest of 7 dispatches: main 18.0–19.4 ms, this branch 15.9–17.5 ms, Int16 removed 17.9–18.8 ms.
  • Pipeline times vary by up to ±30 % between runs on this desktop GPU. The K = 250 difference is within that noise.
  • Not measured: AMD, Intel and Mesa drivers, where u16vec2 maps to native v_pk_* instructions on RDNA. The FSR4 programs from #6118 need a dumped request; agc_shader_replay --shader-int16 measures them.

Historical title trace comparison

Dark Alliance (PPSA02681 01.009.000), boot sequence, presents 300 through 899 at 3840x2160. These are existing captures from 2026-11-09, recovered from the local capture artifacts on 2026-11-11. They compare this PR's base, main e67e806b1f, with the current PR head, 37f2db1670, on the same recorded i9-9900K / RTX 3090 Ti / NVIDIA 621.14 / Windows 10.0.26300 configuration. The capture series followed separate warm-up runs of both staged copies. The recorded switches are APS5_PLAYGO_UNLISTED_CHUNKS=0,1 and APS5_TRACE_FRAMES=300:600; the trace output directory is normalized to <path> in the summaries. Neither capture reports dropped events or a dirty source tree.

This window shows no demonstrated frame-rate improvement: p50 is 16.893 ms on main and 16.884 ms on the PR, while p99 is 19.961 ms and 22.331 ms. It is not a measurement of FSR4 Showcase or of the cold pipeline builds in the synthetic benchmark above. These historical captures are not a rerun against today's main.

The two event traces, summary files, digests and original gzip SHA-256 hashes are available together. The uploaded event traces are losslessly decompressed JSON and can be loaded in Perfetto. The summaries retain their original .json.gz trace names; trace_digest.py also matches the corresponding plain .json files.

python3 tools/performance_compare.py main-3-summary.jsonl pk16-3-summary.jsonl --require-matching-context passes with no recorded configuration differences. Digests below were regenerated with tools/trace_digest.py <trace> --frames 2 --top 5 from main 2ecc68bda2 on 2026-11-11.

Summary lines, main then PR:

{"commit":"e67e806b1f97","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10336.244},"presents":600,"frame_ms":{"p50":16.893,"p90":17.915,"p99":19.961,"max":78.494},"gpu_busy_ms_per_present":0.733,"worker_busy_pct":{"queue worker 0x0":6.656,"queue worker 0x20":0.419},"top_phases_ms_per_frame":{"VideoOut.Flip":2.662,"Driver.Present":1.464,"VideoOut.Flip.present":1.464,"Driver.Packet":1.148,"VideoOut.Flip.vblank_wait":1.074,"Driver.Present.render_fence_wait":0.924,"Vulkan.Retire":0.924,"Vulkan.Retire.wait":0.91},"trace_dropped":false,"trace":"aps5-trace-e67e806b1f97-23852.json.gz"}
{"commit":"37f2db16701e","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10296.446},"presents":600,"frame_ms":{"p50":16.884,"p90":17.91,"p99":22.331,"max":59.4},"gpu_busy_ms_per_present":0.737,"worker_busy_pct":{"queue worker 0x0":6.268,"queue worker 0x20":0.418},"top_phases_ms_per_frame":{"VideoOut.Flip":2.531,"VideoOut.Flip.present":1.308,"Driver.Present":1.306,"VideoOut.Flip.vblank_wait":1.087,"Driver.Packet":1.077,"Driver.Present.render_fence_wait":0.762,"Vulkan.Retire":0.761,"Vulkan.Retire.wait":0.746},"trace_dropped":false,"trace":"aps5-trace-37f2db16701e-23064.json.gz"}
main-3 trace digest

frames 300:600 from present 300: 600 presents, frame p50 16.9 / p90 17.9 / p99 20.0 / max 78.5 ms, GPU busy 0.7 ms per present
NVIDIA GeForce RTX 3090 Ti, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit e67e806b1f, dropped: no

{"commit":"e67e806b1f97","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10336.244},"presents":600,"frame_ms":{"p50":16.893,"p90":17.915,"p99":19.961,"max":78.494},"gpu_busy_ms_per_present":0.733,"worker_busy_pct":{"queue worker 0x0":6.656,"queue worker 0x20":0.419},"top_phases_ms_per_frame":{"VideoOut.Flip":2.662,"Driver.Present":1.464,"VideoOut.Flip.present":1.464,"Driver.Packet":1.148,"VideoOut.Flip.vblank_wait":1.074,"Driver.Present.render_fence_wait":0.924,"Vulkan.Retire":0.924,"Vulkan.Retire.wait":0.91},"trace_dropped":false,"trace":"aps5-trace-e67e806b1f97-23852.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 387: 78.5 ms at 1514 ms: Driver.WorkerWait (queue worker 0x20) 78.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 75.0, Driver.WorkerWait (queue worker 0x0) 74.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 74.4
  • present 720: 66.8 ms at 7200 ms: Driver.WorkerWait (queue worker 0x20) 66.6, Driver.WorkerWait (queue worker 0x0) 65.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 62.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 61.8

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 387: 78.5 ms at 1514 ms, persistence 72.7 ms
  • present 720: 66.8 ms at 7200 ms, persistence 61.0 ms
  • present 722: 50.6 ms at 7284 ms, persistence 33.1 ms
  • present 400: 23.6 ms at 1782 ms, persistence 13.6 ms
  • present 896: 19.1 ms at 10268 ms, persistence 5.5 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.0 (0 %) 0.0 (0 %) 17.2 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 1.0 (6 %) 15.9 (92 %) 0.4 0.3 Driver.Packet 1.0, Driver.Completion 0.0
queue worker 0x20 0.1 (0 %) 17.1 (99 %) 0.0 0.0 Driver.EndSubmission 0.1
draw committer 0.7 (4 %) 0.1 (0 %) 16.4 0.1 Graphics.Draw 0.7, Recorder.Submit 0.1
presenter 0.6 (4 %) 2.0 (12 %) 14.6 0.1 VideoOut.Flip 2.7, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 17.2 0.0 Shader.ResolveAbi 0.0
gpu 0.7 (4 %) 0.0 (0 %) 16.5 0.0 batch 0.7

Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 32.9, Driver.WorkerWait.idle_and_completion_poll 32.1, VideoOut.Flip 2.7, Driver.Present 1.5, VideoOut.Flip.present 1.5

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 63.1 ms at 7201 ms, present 720
  • Driver.WorkerWait (queue worker 0x0) 61.8 ms at 7202 ms, present 720
  • Driver.WorkerWait (queue worker 0x20) 58.3 ms at 1511 ms, present 386
  • Driver.WorkerWait (queue worker 0x20) 56.5 ms at 7300 ms, present 722
  • Driver.WorkerWait (queue worker 0x20) 54.4 ms at 1751 ms, present 398

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 1463: 1.4 ms at 9338 ms, present 840: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 923.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 922.4, Driver.Packet (queue worker 0x0) 55.9, Driver.Packet.pipeline_drain (queue worker 0x0) 37.6
  • batch 1147: 1.2 ms at 7335 ms, present 723: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 1841.3, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 1838.4, Driver.Packet (queue worker 0x0) 111.7, Driver.Packet.pipeline_drain (queue worker 0x0) 81.0
pk16-3 trace digest

frames 300:600 from present 300: 600 presents, frame p50 16.9 / p90 17.9 / p99 22.3 / max 59.4 ms, GPU busy 0.7 ms per present
NVIDIA GeForce RTX 3090 Ti, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit 37f2db1670, dropped: no

{"commit":"37f2db16701e","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10296.446},"presents":600,"frame_ms":{"p50":16.884,"p90":17.91,"p99":22.331,"max":59.4},"gpu_busy_ms_per_present":0.737,"worker_busy_pct":{"queue worker 0x0":6.268,"queue worker 0x20":0.418},"top_phases_ms_per_frame":{"VideoOut.Flip":2.531,"VideoOut.Flip.present":1.308,"Driver.Present":1.306,"VideoOut.Flip.vblank_wait":1.087,"Driver.Packet":1.077,"Driver.Present.render_fence_wait":0.762,"Vulkan.Retire":0.761,"Vulkan.Retire.wait":0.746},"trace_dropped":false,"trace":"aps5-trace-37f2db16701e-23064.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 388: 59.4 ms at 1492 ms: Driver.WorkerWait (queue worker 0x20) 59.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 52.2, Driver.WorkerWait (queue worker 0x0) 50.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 50.0
  • present 389: 56.8 ms at 1551 ms: Driver.WorkerWait (queue worker 0x20) 56.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 56.8, Driver.WorkerWait (queue worker 0x0) 52.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 52.4

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 388: 59.4 ms at 1492 ms, persistence 50.4 ms
  • present 721: 53.6 ms at 7224 ms, persistence 44.7 ms
  • present 402: 41.2 ms at 1812 ms, persistence 29.7 ms
  • present 716: 21.9 ms at 7138 ms, persistence 7.8 ms
  • present 842: 22.3 ms at 9317 ms, persistence 7.6 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.0 (0 %) 0.0 (0 %) 17.2 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 1.0 (6 %) 15.8 (92 %) 0.4 0.4 Driver.Packet 1.0, Driver.Completion 0.0
queue worker 0x20 0.1 (0 %) 17.1 (99 %) 0.0 0.0 Driver.EndSubmission 0.1, Driver.Packet 0.0
draw committer 0.8 (4 %) 0.1 (0 %) 16.3 0.1 Graphics.Draw 0.7, Recorder.Submit 0.1
presenter 0.7 (4 %) 1.9 (11 %) 14.6 0.1 VideoOut.Flip 2.5, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 17.1 0.0 Shader.ResolveAbi 0.0
gpu 0.7 (4 %) 0.0 (0 %) 16.4 0.0 batch 0.7

Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 32.9, Driver.WorkerWait.idle_and_completion_poll 32.1, VideoOut.Flip 2.5, VideoOut.Flip.present 1.3, Driver.Present 1.3

Longest waits

  • Driver.WorkerWait (queue worker 0x20) 72.9 ms at 1548 ms, present 388
  • Driver.WorkerWait (queue worker 0x20) 56.8 ms at 1797 ms, present 401
  • Driver.WorkerWait (queue worker 0x20) 55.9 ms at 7242 ms, present 721
  • Driver.WorkerWait (queue worker 0x0) 52.4 ms at 1552 ms, present 389
  • Driver.WorkerWait (queue worker 0x0) 46.0 ms at 1797 ms, present 401

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 1126: 1.2 ms at 7278 ms, present 722: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 1891.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 1888.3, Driver.Packet (queue worker 0x0) 119.9, Driver.Packet.pipeline_drain (queue worker 0x0) 83.5
  • batch 1123: 0.8 ms at 7225 ms, present 721: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 45.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 45.1, Driver.Packet (queue worker 0x0) 2.5, Driver.Packet.dispatch (queue worker 0x0) 2.0

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3090 Ti, driver 621.14, Windows 11 Pro N 10.0.26300
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5205573147 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16887). Originally posted by [Ducengarth](https://github.com/Ducengarth) on 2026-11-07T20:31:43Z. --- ### What On a device with `shaderInt16`, the VOP3P packed 16-bit integer instructions become one two-component 16-bit vector operation instead of being split into lanes: - `v_pk_mul_lo_u16` - `v_pk_lshlrev_b16`, `v_pk_lshrrev_b16`, `v_pk_ashrrev_i16` - `v_pk_min_i16`, `v_pk_max_i16`, `v_pk_min_u16`, `v_pk_max_u16` - the unclamped `v_pk_add_i16/u16`, `v_pk_sub_i16/u16` and `v_pk_mad_i16/u16` Today each of them extracts both 16-bit lanes of every source, computes each lane in 32-bit arithmetic and repacks the result. #6118 measured the FSR4 Showcase program `0x275580000` at 550,218 SPIR-V words, 52 % of it integer ALU from its 2,872 `v_pk_mad_u16`. Its pipeline build (10 s on an RTX 5060 Ti) is about twice the title's wait. How: - Ten new IR opcodes (`IAdd16x2`, `ISub16x2`, `IMul16x2`, `ShiftLeftLogical16x2`, `ShiftRightLogical16x2`, `ShiftRightArithmetic16x2`, `SMin16x2`, `SMax16x2`, `UMin16x2`, `UMax16x2`) take and return the U32 word that holds both lanes, like the existing `FPAdd16x2` family. - The emitter bitcasts the words to a vector of two 16-bit integers and emits one `OpIAdd`, `OpISub`, `OpIMul`, shift (count masked to 4 bits per lane) or GLSL.std.450 min/max. `SpirvSpecialization` already removes the bitcast pairs between chained operations. - `readPackedU16Source` applies `op_sel`, `op_sel_hi` and `neg_lo`/`neg_hi` to the 32-bit source word, with the same source read and modifiers as the lane path. - `ConstantFolder` folds the new opcodes, and they are value-numbered by `RedundantValueEliminator`. - The device enables `shaderInt16` when available and advertises `CapabilityInt16`; `ShaderDeviceProfile` checks it against the enabled features. - `agc_shader_replay --shader-int16` replays a saved request with the capability, so requests dumped before this change can be measured. The lane path stays, unchanged, for the clamped add, sub and mad forms (core SPIR-V has no saturating integer add) and for devices without `shaderInt16`; recorded in `docs/dev/debt/shader.md`. The lane code's results are the reference: mul_lo, shifts and min/max keep ignoring `clamp`, as the lane code does. Not touched: the f16 packed path, BDA, image mode switches and the f32 NaN rules, which other open work covers (#13538, #11183, #14260). ### Tested Windows 11 Pro N (10.0.26300), NVIDIA GeForce RTX 3090 Ti, driver 621.14, WinLibs GCC 15.2.0, Release, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF` (the release configuration). No title or homebrew; no PS5. - `agc_driver_packed_integer_native` (new): 64 cases cover all 14 instructions, the four `op_sel`/`op_sel_hi` selections, `neg_lo`/`neg_hi`, inline integer constants, literals and fully constant (folded) sources. They run over 64 lanes of edge and random inputs. The program is recompiled with and without `CapabilityInt16`, and both outputs must match a CPU reference bit for bit. The test also checks that only the Int16 module declares 16-bit integers. - Mutations caught: writing `neg_hi` as 0x8000 makes it fail (332 mismatches), and so does making the arithmetic-shift and signed-max folds unsigned. - `agc_driver_packed_alu`, `agc_driver_packed_integer_negate` and `agc_driver_packed_integer_clamp` pass on the native path. - Focused suite, `ctest -R "^agc_driver_|^agc_|^shader_|^vector_"` with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 --parallel 5`, same machine: - `main` dd00a9c54e: 1442/1442 pass. - This branch: 1443/1443 (the extra one is the new test). 25 tests first timed out at their 30 s limit while another build ran on the machine; all 25 pass when rerun on an idle machine. - After rebasing onto `main` 8f7c957ed0, the validation-layer set below passes again: 120/120 tests, layer inserted, no `VUID-`, the same 20 warnings. The full focused suite and the benchmark ran on the previous base, dd00a9c54e. The rebase changed only one file of this PR, `SpirvAluEmitterMath.cpp`, where `main` edited code away from the new functions. - After merging `main` e67e806b1f into this branch (the only conflict was the neighbouring new entry in `docs/dev/debt/shader.md`), `agc_driver_packed_alu`, `agc_driver_packed_integer_clamp`, `agc_driver_packed_integer_native` and `agc_driver_packed_integer_negate` pass on the RTX 3090 Ti under the validation layer: layer inserted 4 times, no `was not found` message, no `VUID-`. `agc_driver_packed_integer_native` reports 11,767 SPIR-V words with Int16 against 11,905 lane by lane. The full focused suite, the rest of the validation set and the benchmark were not rerun on this base. - Validation layer, same machine, `main` dd00a9c54e and this branch: `ctest -R "^agc_driver_.*(packed|integer|16|_alu|vop3|mul_lo|sdwa)" -V` with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. - Layer: Khronos validation 1.4.363 from MSYS2's ucrt64 package, run with its own GCC runtime. - `main` 119/119 and this branch 120/120 pass. - The loader logs `Insert instance layer "VK_LAYER_KHRONOS_validation"` in every test that opens a device. The two that do not insert it are the CPU-only `*_spirv` tests, the same two on both sides. - Neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`. - Neither log contains a `VUID-`. Both have the same 20 `Undefined-Value-ShaderOutputNotConsumed-DynamicRendering` warnings. Synthetic benchmark, not in the repository: a compute program of K packed integer instructions (mad_u16, mad_i16 with op_sel, ashrrev by 8, add, max with 0, mul_lo, sub, lshlrev, min_u16 with neg), checked against a CPU reference on every run. Each module is salted with a new literal so the driver cache cannot serve it. Pipeline creation is the median over 3 rounds × 4 modules, run in turn on `main`, this branch with `Int16`, and this branch without it. | K | SPIR-V words main → this branch | pipeline creation main | this branch | this branch, Int16 removed | |---:|---|---:|---:|---:| | 250 | 10,843 → 4,283 | ~125 ms | ~119 ms | ~131 ms | | 1000 | 37,738 → 11,759 | ~614 ms | ~395 ms | ~722 ms | | 3000 | 109,468 → 31,713 | ~2,650 ms | ~2,100 ms | ~2,550 ms | - GPU time for K = 3000 over 65,536 workgroups of 32 lanes, fastest of 7 dispatches: `main` 18.0–19.4 ms, this branch 15.9–17.5 ms, Int16 removed 17.9–18.8 ms. - Pipeline times vary by up to ±30 % between runs on this desktop GPU. The K = 250 difference is within that noise. - Not measured: AMD, Intel and Mesa drivers, where `u16vec2` maps to native `v_pk_*` instructions on RDNA. The FSR4 programs from #6118 need a dumped request; `agc_shader_replay --shader-int16` measures them. ### Historical title trace comparison Dark Alliance (PPSA02681 01.009.000), boot sequence, presents 300 through 899 at 3840x2160. These are existing captures from 2026-11-09, recovered from the local capture artifacts on 2026-11-11. They compare this PR's base, `main` e67e806b1f97, with the current PR head, 37f2db16701e, on the same recorded i9-9900K / RTX 3090 Ti / NVIDIA 621.14 / Windows 10.0.26300 configuration. The capture series followed separate warm-up runs of both staged copies. The recorded switches are `APS5_PLAYGO_UNLISTED_CHUNKS=0,1` and `APS5_TRACE_FRAMES=300:600`; the trace output directory is normalized to `<path>` in the summaries. Neither capture reports dropped events or a dirty source tree. This window shows no demonstrated frame-rate improvement: p50 is 16.893 ms on main and 16.884 ms on the PR, while p99 is 19.961 ms and 22.331 ms. It is not a measurement of FSR4 Showcase or of the cold pipeline builds in the synthetic benchmark above. These historical captures are not a rerun against today's main. The [two event traces, summary files, digests and original gzip SHA-256 hashes](https://gist.github.com/Ducengarth/73583991e87bb5087d0d7db698316fae) are available together. The uploaded event traces are losslessly decompressed JSON and can be loaded in Perfetto. The summaries retain their original `.json.gz` trace names; `trace_digest.py` also matches the corresponding plain `.json` files. `python3 tools/performance_compare.py main-3-summary.jsonl pk16-3-summary.jsonl --require-matching-context` passes with no recorded configuration differences. Digests below were regenerated with `tools/trace_digest.py <trace> --frames 2 --top 5` from main 2ecc68bda2 on 2026-11-11. Summary lines, main then PR: ```json {"commit":"e67e806b1f97","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10336.244},"presents":600,"frame_ms":{"p50":16.893,"p90":17.915,"p99":19.961,"max":78.494},"gpu_busy_ms_per_present":0.733,"worker_busy_pct":{"queue worker 0x0":6.656,"queue worker 0x20":0.419},"top_phases_ms_per_frame":{"VideoOut.Flip":2.662,"Driver.Present":1.464,"VideoOut.Flip.present":1.464,"Driver.Packet":1.148,"VideoOut.Flip.vblank_wait":1.074,"Driver.Present.render_fence_wait":0.924,"Vulkan.Retire":0.924,"Vulkan.Retire.wait":0.91},"trace_dropped":false,"trace":"aps5-trace-e67e806b1f97-23852.json.gz"} {"commit":"37f2db16701e","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10296.446},"presents":600,"frame_ms":{"p50":16.884,"p90":17.91,"p99":22.331,"max":59.4},"gpu_busy_ms_per_present":0.737,"worker_busy_pct":{"queue worker 0x0":6.268,"queue worker 0x20":0.418},"top_phases_ms_per_frame":{"VideoOut.Flip":2.531,"VideoOut.Flip.present":1.308,"Driver.Present":1.306,"VideoOut.Flip.vblank_wait":1.087,"Driver.Packet":1.077,"Driver.Present.render_fence_wait":0.762,"Vulkan.Retire":0.761,"Vulkan.Retire.wait":0.746},"trace_dropped":false,"trace":"aps5-trace-37f2db16701e-23064.json.gz"} ``` <details> <summary>main-3 trace digest</summary> **frames 300:600** from present 300: 600 presents, frame p50 16.9 / p90 17.9 / p99 20.0 / max 78.5 ms, GPU busy 0.7 ms per present NVIDIA GeForce RTX 3090 Ti, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit e67e806b1f97, dropped: no ```json {"commit":"e67e806b1f97","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10336.244},"presents":600,"frame_ms":{"p50":16.893,"p90":17.915,"p99":19.961,"max":78.494},"gpu_busy_ms_per_present":0.733,"worker_busy_pct":{"queue worker 0x0":6.656,"queue worker 0x20":0.419},"top_phases_ms_per_frame":{"VideoOut.Flip":2.662,"Driver.Present":1.464,"VideoOut.Flip.present":1.464,"Driver.Packet":1.148,"VideoOut.Flip.vblank_wait":1.074,"Driver.Present.render_fence_wait":0.924,"Vulkan.Retire":0.924,"Vulkan.Retire.wait":0.91},"trace_dropped":false,"trace":"aps5-trace-e67e806b1f97-23852.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 387: 78.5 ms at 1514 ms: Driver.WorkerWait (queue worker 0x20) 78.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 75.0, Driver.WorkerWait (queue worker 0x0) 74.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 74.4 - present 720: 66.8 ms at 7200 ms: Driver.WorkerWait (queue worker 0x20) 66.6, Driver.WorkerWait (queue worker 0x0) 65.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 62.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 61.8 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 387: 78.5 ms at 1514 ms, persistence 72.7 ms - present 720: 66.8 ms at 7200 ms, persistence 61.0 ms - present 722: 50.6 ms at 7284 ms, persistence 33.1 ms - present 400: 23.6 ms at 1782 ms, persistence 13.6 ms - present 896: 19.1 ms at 10268 ms, persistence 5.5 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 17.2 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 1.0 (6 %) | 15.9 (92 %) | 0.4 | 0.3 | Driver.Packet 1.0, Driver.Completion 0.0 | | queue worker 0x20 | 0.1 (0 %) | 17.1 (99 %) | 0.0 | 0.0 | Driver.EndSubmission 0.1 | | draw committer | 0.7 (4 %) | 0.1 (0 %) | 16.4 | 0.1 | Graphics.Draw 0.7, Recorder.Submit 0.1 | | presenter | 0.6 (4 %) | 2.0 (12 %) | 14.6 | 0.1 | VideoOut.Flip 2.7, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 17.2 | 0.0 | Shader.ResolveAbi 0.0 | | gpu | 0.7 (4 %) | 0.0 (0 %) | 16.5 | 0.0 | batch 0.7 | **Largest slices** (ms per frame, inclusive, all threads): Driver.WorkerWait 32.9, Driver.WorkerWait.idle_and_completion_poll 32.1, VideoOut.Flip 2.7, Driver.Present 1.5, VideoOut.Flip.present 1.5 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 63.1 ms at 7201 ms, present 720 - Driver.WorkerWait (queue worker 0x0) 61.8 ms at 7202 ms, present 720 - Driver.WorkerWait (queue worker 0x20) 58.3 ms at 1511 ms, present 386 - Driver.WorkerWait (queue worker 0x20) 56.5 ms at 7300 ms, present 722 - Driver.WorkerWait (queue worker 0x20) 54.4 ms at 1751 ms, present 398 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 1463: 1.4 ms at 9338 ms, present 840: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 923.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 922.4, Driver.Packet (queue worker 0x0) 55.9, Driver.Packet.pipeline_drain (queue worker 0x0) 37.6 - batch 1147: 1.2 ms at 7335 ms, present 723: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 1841.3, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 1838.4, Driver.Packet (queue worker 0x0) 111.7, Driver.Packet.pipeline_drain (queue worker 0x0) 81.0 </details> <details> <summary>pk16-3 trace digest</summary> **frames 300:600** from present 300: 600 presents, frame p50 16.9 / p90 17.9 / p99 22.3 / max 59.4 ms, GPU busy 0.7 ms per present NVIDIA GeForce RTX 3090 Ti, NVIDIA 621.14, Windows 10.0.26300, 3840x2160, commit 37f2db16701e, dropped: no ```json {"commit":"37f2db16701e","dirty":false,"env":{"APS5_PLAYGO_UNLISTED_CHUNKS":"0,1","APS5_TRACE_DIR":"<path>","APS5_TRACE_FRAMES":"300:600"},"gpu":"NVIDIA GeForce RTX 3090 Ti","driver":"NVIDIA 621.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65450,"title_id":"PPSA02681","title":"Dark Alliance","content_version":"01.009.000","resolution":"3840x2160","window":{"spec":"frames 300:600","first_present":300,"ms":10296.446},"presents":600,"frame_ms":{"p50":16.884,"p90":17.91,"p99":22.331,"max":59.4},"gpu_busy_ms_per_present":0.737,"worker_busy_pct":{"queue worker 0x0":6.268,"queue worker 0x20":0.418},"top_phases_ms_per_frame":{"VideoOut.Flip":2.531,"VideoOut.Flip.present":1.308,"Driver.Present":1.306,"VideoOut.Flip.vblank_wait":1.087,"Driver.Packet":1.077,"Driver.Present.render_fence_wait":0.762,"Vulkan.Retire":0.761,"Vulkan.Retire.wait":0.746},"trace_dropped":false,"trace":"aps5-trace-37f2db16701e-23064.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 388: 59.4 ms at 1492 ms: Driver.WorkerWait (queue worker 0x20) 59.2, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 52.2, Driver.WorkerWait (queue worker 0x0) 50.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 50.0 - present 389: 56.8 ms at 1551 ms: Driver.WorkerWait (queue worker 0x20) 56.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x20) 56.8, Driver.WorkerWait (queue worker 0x0) 52.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 52.4 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 388: 59.4 ms at 1492 ms, persistence 50.4 ms - present 721: 53.6 ms at 7224 ms, persistence 44.7 ms - present 402: 41.2 ms at 1812 ms, persistence 29.7 ms - present 716: 21.9 ms at 7138 ms, persistence 7.8 ms - present 842: 22.3 ms at 9317 ms, persistence 7.6 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 17.2 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 1.0 (6 %) | 15.8 (92 %) | 0.4 | 0.4 | Driver.Packet 1.0, Driver.Completion 0.0 | | queue worker 0x20 | 0.1 (0 %) | 17.1 (99 %) | 0.0 | 0.0 | Driver.EndSubmission 0.1, Driver.Packet 0.0 | | draw committer | 0.8 (4 %) | 0.1 (0 %) | 16.3 | 0.1 | Graphics.Draw 0.7, Recorder.Submit 0.1 | | presenter | 0.7 (4 %) | 1.9 (11 %) | 14.6 | 0.1 | VideoOut.Flip 2.5, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 17.1 | 0.0 | Shader.ResolveAbi 0.0 | | gpu | 0.7 (4 %) | 0.0 (0 %) | 16.4 | 0.0 | batch 0.7 | **Largest slices** (ms per frame, inclusive, all threads): Driver.WorkerWait 32.9, Driver.WorkerWait.idle_and_completion_poll 32.1, VideoOut.Flip 2.5, VideoOut.Flip.present 1.3, Driver.Present 1.3 **Longest waits** - Driver.WorkerWait (queue worker 0x20) 72.9 ms at 1548 ms, present 388 - Driver.WorkerWait (queue worker 0x20) 56.8 ms at 1797 ms, present 401 - Driver.WorkerWait (queue worker 0x20) 55.9 ms at 7242 ms, present 721 - Driver.WorkerWait (queue worker 0x0) 52.4 ms at 1552 ms, present 389 - Driver.WorkerWait (queue worker 0x0) 46.0 ms at 1797 ms, present 401 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 1126: 1.2 ms at 7278 ms, present 722: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 1891.4, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 1888.3, Driver.Packet (queue worker 0x0) 119.9, Driver.Packet.pipeline_drain (queue worker 0x0) 83.5 - batch 1123: 0.8 ms at 7225 ms, present 721: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x0) 45.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 45.1, Driver.Packet (queue worker 0x0) 2.5, Driver.Packet.dispatch (queue worker 0x0) 2.0 </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3090 Ti, driver 621.14, Windows 11 Pro N 10.0.26300 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-07 22:27:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T22:27:00Z.

Review: COMMENTED


The Intel and Turing cells you list as not measured, for correctness. Head 420fe45e18 merged onto main 302864d48c (clean). Windows 11 x64, WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

GPU main (clamp, negate) this PR (clamp, native, negate)
NVIDIA laptop GPU (Turing), driver 610 2 of 2 pass 3 of 3 pass, 3 of 3 runs
Intel iGPU, same machine 2 of 2 pass 3 of 3 pass, 3 of 3 runs

So the 64 agc_driver_packed_integer_native cases match the CPU reference bit for bit with and without CapabilityInt16 on both drivers, and the lane path's clamp and negate tests are unchanged. On Intel the test reports 11,767 SPIR-V words with Int16 against 11,901 lane by lane. No validation layer on this machine, and no pipeline timings taken.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5815322298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16887#pullrequestreview-5815322298). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-07T22:27:00Z. **Review:** COMMENTED --- The Intel and Turing cells you list as not measured, for correctness. Head `420fe45e18` merged onto `main` `302864d48c` (clean). Windows 11 x64, WinLibs GCC 15.2.0 r7, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. | GPU | `main` (clamp, negate) | this PR (clamp, native, negate) | |---|---|---| | NVIDIA laptop GPU (Turing), driver 610 | 2 of 2 pass | 3 of 3 pass, 3 of 3 runs | | Intel iGPU, same machine | 2 of 2 pass | 3 of 3 pass, 3 of 3 runs | So the 64 `agc_driver_packed_integer_native` cases match the CPU reference bit for bit with and without `CapabilityInt16` on both drivers, and the lane path's clamp and negate tests are unchanged. On Intel the test reports 11,767 SPIR-V words with Int16 against 11,901 lane by lane. No validation layer on this machine, and no pipeline timings taken. AI-assisted: yes.
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!16887
No description provided.