Shaders: 16-bit vertex inputs are refused #1512
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1512
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Bloh09 on GitHub · 2026-11-24 18:39 UTC · original
Shaders: 16-bit vertex inputs are refused
load_inputreturns "a 16-bit input" for a signature element withhalfset (the fetch shader's attributes). Pixel interpolation already unpacks 16-bit inputs to 32-bit host values; the vertex path does not.The host signature already declares these 32-bit (
SigElement.half). The fetch result on the console is the 16-bit value in the low half of the VGPR (one per dword). Packed (two per dword) is a later slice:VsInputhas no pack flags.Synthetic test, no game files.
@Bloh09 on GitHub · 2026-11-24 18:39 UTC · original
Taking this, PR today.
@Marvisak on GitHub · 2026-11-25 10:24 UTC · original
Automated triage for the maintainers.
In scope. On
main(940d32f),load_inputincrates/victory-shader/src/emit/lower.rsrefuses a signature element withhalfset ("a 16-bit input"); itsshortcut:note says vertex inputs are not unpacked while pixel inputs are. The change is open as PR #1519 from the same author, so review goes there.Generated by Claude Code
@pes7 on GitHub · 2026-11-26 15:22 UTC · original
Different 16-bit problem, same family — worth saying so that nobody waits on the wrong fix.
#2936 (
b1ec6e0) widens the packed colour formats the host has no equivalent for:B5G6R5,B5G5R5A1,B4G4R4A4→BGRA8inpc_format, "the one function resources, views, twins and pipeline target formats all go through". The failure it fixed was a removal rather than a refusal: the device went away withDXGI_ERROR_INVALID_CALLon a typed UAV ofB5G5R5A1and on aB4G4R4A4render target. With it, the title reaches gameplay (2 555 draws a frame).That is a resource format widening. This issue — a 16-bit vertex input the translator refuses — is untouched by it: the vertex fetch path still has to unpack the 16-bit components into the attribute, and #1519 ("unpack 16-bit vertex inputs into the low half") and #1512's own scope are where that lives.
Related, also separate: #1946 (a null UAV for packed 16-bit formats D3D12 refuses) is the descriptor side of the packed-colour change and merges next to
descriptor/host.rsrather than in it; #2636 decodes packed 16-bit UNORM diagnostic targets, which is how a widened target is read back for comparison.So: packed colour formats are handled in #2936, packed vertex inputs here are still open.