feat(shader): support 24-bit high products and fix image sample variants #148
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/148"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-29T12:37:25Z.
Adds signed and unsigned 24-bit high-multiply instructions and fixes image sampling offsets and comparison-texture bindings.
Rebased directly onto upstream
c7fb2575in five focused commits. No unmerged dependency stack or separate patched test relinker is required.Current validation
Windows / RTX 5080:
dfdbeae9.dfdbeae9after building PS5 ELF executables and converting them with the freshly built relinker.The first rebased Linux CI run caught the expanded descriptor's stale size guard. Investigation also found that the disk-cache encoder omitted the new comparison-image flags. The existing round-trip test was extended and failed before the fix, then passed after adding encoding/decoding and advancing the cache format to version 3. Old entries are rejected and rebuilt.
Limits and previous failure
On the previous upstream base
a67b644f, the initial suite passed 22/23 and the S_CMPK_LE_U32 demo produced blank foreground captures. Three isolated reruns then passed. That failure is retained here: it was not reproduced in the current full suite or ten additional runs, but its root cause has not been established. The current evidence supports review; it does not prove the intermittent failure can never recur.Offsets require constants. Snapshot comparison bindings support R32 float and R16 unorm, excluding 3D depth textures. Combined offset/LOD-clamp behavior was reconciled in code but has not received a dedicated GPU regression case. S_CODE_END is tested only as trailing padding. Demos are stopped after capture; no clean-exit, performance, physical-console, or complete-application compatibility claim is made.
The earlier local instruction audit covered 2,331 representative streams. The two newly implemented multiply instructions were not found in their reached instruction streams; synthetic success is not proof of original-program rendering. That audit was not repeated for this rebase.
Demos, captures and detailed reports remain outside Git. No original application shader bytes or assets are included.
References: AMD RDNA ISA, SPIR-V specification.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-09-29T12:37:51Z.
Progress report (
c7fb257→dfdbeae)📈 GPU shader instructions: 52.23% (+0.17%, +2 implemented instructions)
✅ 2 implemented
V_MUL_HI_I32_I24V_MUL_HI_U32_U24