xshader: count the registers a packed 16-bit image result writes #607
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/607"
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 brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T00:55:33Z.
The pass that follows heap offsets through vector registers forgets one when an instruction writes its register. For an image result it counted one register per enabled component, as an upper bound. A result returned as 16-bit halves packs two components into each register, so a four-component sample writes two registers, and a heap offset held in the next one was forgotten. The descriptor fetch through it was then refused as "dynamic soffset unsupported". The count is now the registers the emitter writes for such a result. Gathers and atomics keep their bound.
Refs #533.
Measured
34be158b, both hosts, links, stride retries): 4 pixel requests newly accepted (two material families); 0 changed, 0 newly refused, no refusal text changed. All 4 compile with DXC 1.9.2609 and pass dxv.pixel-heap-offsetsgains a program that keeps a heap offset in the register after a packed sample's two. It is refused without the change. 24 cases on each card, 0 failures.python tuxbox.py checkoff868ffc4(GE-Proton11-15): RTX 5090 (10de:2b85, 620.70.10) 205 pass, 0 fail; AMD iGPU (1002:13c0, RADV) 204 pass, 0 fail.Evidence: TuxBox check of
f868ffc4a3, no uncommitted changes, GPU 10de:2b85: 17 passed, 0 failed, 0 not runEvidence: TuxBox check of
f868ffc4a3, no uncommitted changes, GPU 1002:13c0: 17 passed, 0 failed, 0 not runNot covered
🤖 Generated with Claude Code