startup: typed buffer load of BUF_FMT_16_16_16_16_FLOAT is refused (5 of 29 loading-screen shader refusals) #1695
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#1695
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?
@triggered02 on GitHub · 2026-11-24 17:18 UTC · original
Found while triaging the refusals in the first main-game loading-screen shader cache (#870). 5 of 29 refused shaders.
Problem
gfx2hlsl's typed-buffer-load format table has the two-channel half-float form (BUF_FMT_16_16_FLOAT) but not the four-channel one, so a typed load ofBUF_FMT_16_16_16_16_FLOATis refused:BUF_FMT_16_16_16_16_FLOATstores four binary16 channels in one 8-byte element: x and y in the first dword, z and w in the second. The two-channel entry already shows the intended conversion (U(f16tof32(w))), so the four-channel case is the same rule applied to both dwords.Measured
Decoded from real bytes in the cache (
00203aea00000580),mainatbc65bb1b:tbuffer_load_format_xyz ... BUF_FMT_16_16_16_16_FLOATtbuffer_load_format_xyzw ... same formattbuffer_load_format_x ... same formattbuffer_load_format_d16_xyz ... same formatDone when
decode(), then the translator.docs/experiments.mdrecords the added format.Not in this slice: other unnamed formats, the
d16forms, and proving the loading screen gets further (that needs a run that visibly reaches it; census counts are aggregates only).AI-assisted (Claude Code).