shader: generalize verified non-returning wide image maxima #49

Merged
Valdi320 merged 1 commit from upstream-pr/49 into main 2026-11-24 13:45:39 +00:00
Valdi320 commented 2026-11-24 11:50:07 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-24T11:50:07Z.


The public ProjectScarlett log in #39 contains four two-word IMAGE_ATOMIC_UMAX refusals. The current generic pixel path admits the exact non-returning 2D DMASK=3 encoding only for an entry named HWRasterizePS. Apply the existing width proof to other pixel entry names, require a unique reflected typed UAV at the resolved binding and reject mixed widths or buffer accesses (including selected descriptors). Guard against VGPR pair overflow. Unsupported encodings and returned-value variants remain unsupported.

Validation on Bazzite:

  • 66 compiler unit tests passed, including synthetic native UMAX binding and emission independent of entry name and mixed/unverified access rejection.
  • Actual emitted atomic instruction embedded in a synthetic pixel test. DXC ps_6_6 / DXV validation passed. RTX 4080 and stock Proton report typed 64-bit atomic support. Three competing-fragment render controls using a real R32G32_UINT UAV: 741 texels matched CPU unsigned-max oracle, zero mismatches, including masked fragments and untouched texels.
  • Reproduction tool and JSON receipt included.

The PSV typed binding does not independently identify the runtime format; the test specifically binds R32G32_UINT. No retail requests recompiled; no claim that all four refusals are fixed. AI-assisted contribution.

<!-- greyfinch-sync:brcly/TuxBox:issue:6581100510 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/49). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-24T11:50:07Z. --- The public ProjectScarlett log in #39 contains four two-word IMAGE_ATOMIC_UMAX refusals. The current generic pixel path admits the exact non-returning 2D DMASK=3 encoding only for an entry named HWRasterizePS. Apply the existing width proof to other pixel entry names, require a unique reflected typed UAV at the resolved binding and reject mixed widths or buffer accesses (including selected descriptors). Guard against VGPR pair overflow. Unsupported encodings and returned-value variants remain unsupported. Validation on Bazzite: - 66 compiler unit tests passed, including synthetic native UMAX binding and emission independent of entry name and mixed/unverified access rejection. - Actual emitted atomic instruction embedded in a synthetic pixel test. DXC ps_6_6 / DXV validation passed. RTX 4080 and stock Proton report typed 64-bit atomic support. Three competing-fragment render controls using a real R32G32_UINT UAV: 741 texels matched CPU unsigned-max oracle, zero mismatches, including masked fragments and untouched texels. - Reproduction tool and JSON receipt included. The PSV typed binding does not independently identify the runtime format; the test specifically binds R32G32_UINT. No retail requests recompiled; no claim that all four refusals are fixed. AI-assisted contribution.
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
brcly/TuxBox!49
No description provided.