xshader: permit proven bounded pixel code-table offsets #256

Merged
Valdi320 merged 1 commit from upstream-pr/256 into main 2026-11-26 21:27:17 +00:00
Valdi320 commented 2026-11-26 17:33:43 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T17:33:43Z.


Candidate for a subset of the dynamic SOFFSET refusals in #227. The existing bounded GETPC-relative embedded-code-table offset proof was gated to compute even though pixel programs use the same scalar byte addressing and immutable embedded table. Permit the existing proof for pixel programs; leave packed and mesh paths excluded, and leave ordinary dynamic descriptor loads unchanged. The proof still rejects unaligned offsets, clobbered pointers, unsupported control flow and any possible address outside embedded data.

A synthetic pixel ISA fixture failed on main with 'code-table read with dynamic soffset unsupported', now emits a bounded table lookup. Truncated and unaligned cases still refuse. The new GPU control supplies a varying entry-live scalar from SV_Position (only input instrumentation); it keeps the actual translated address, load and export. DXC/DXV validation and four draws on RTX 4080 / GE-Proton11-14 passed: 1024 pixels, 4096 uint components, full and clipped scissor, zero differences. Previously built provider used for isolated translated pixel HLSL check. All six no-GPU groups passed on base 5c5677b.

The actual 19 dynamic SOFFSET failures reported in #227 are not available locally. This is a demonstrated narrower refusal, not evidence all 19 are fixed. Full Lanes/GPU suite and AMD validation outstanding. Draft for review.

<!-- greyfinch-sync:brcly/TuxBox:issue:5514598551 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/256). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T17:33:43Z. --- Candidate for a subset of the dynamic SOFFSET refusals in #227. The existing bounded GETPC-relative embedded-code-table offset proof was gated to compute even though pixel programs use the same scalar byte addressing and immutable embedded table. Permit the existing proof for pixel programs; leave packed and mesh paths excluded, and leave ordinary dynamic descriptor loads unchanged. The proof still rejects unaligned offsets, clobbered pointers, unsupported control flow and any possible address outside embedded data. A synthetic pixel ISA fixture failed on main with 'code-table read with dynamic soffset unsupported', now emits a bounded table lookup. Truncated and unaligned cases still refuse. The new GPU control supplies a varying entry-live scalar from SV_Position (only input instrumentation); it keeps the actual translated address, load and export. DXC/DXV validation and four draws on RTX 4080 / GE-Proton11-14 passed: 1024 pixels, 4096 uint components, full and clipped scissor, zero differences. Previously built provider used for isolated translated pixel HLSL check. All six no-GPU groups passed on base 5c5677b. The actual 19 dynamic SOFFSET failures reported in #227 are not available locally. This is a demonstrated narrower refusal, not evidence all 19 are fixed. Full Lanes/GPU suite and AMD validation outstanding. Draft for review.
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!256
No description provided.