Files
AnyPS5/docs/dev/debt/changes/fix-shader-invalid-buffer-data-format.md
B-HowellandClaude Opus 5.5 d5cbab44b1 fix(shader): read zeros through a V# with DATA_FORMAT INVALID
A formatted buffer access whose V# data format is 0 made the binding
builder throw "buffer specialization has an unsupported format" when the
descriptor was known. GCN gives that format the meaning of an unbound
resource, which returns zeros and writes nothing; the emitted format
switch already does that for format 0, so the builder now lets it through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:04:00 -05:00

986 B

shader

add Unknown function info

  • GCN V# with DATA_FORMAT INVALID (shader, PS4) - buffer_load_format_* through a V# whose DATA_FORMAT is 0 returns zeros and buffer_store_format_* writes nothing when the V# comes from user data or another snapshot source (DescriptorBindingBuilder, pinned in GcnInvalidBufferFormat.cpp). The GCN3 ISA guide (rev 1.1, section 8.1.4) gives that format the meaning "unbound resource", and its table 8.9 note says an unbound buffer returns 0,0,0,0. A V# the shader loads from memory at run time still records an InvalidDescriptor fault and stops the invocation, and a formatted access whose V# word 3 is a constant with that format still throws. Not measured on a PS4; the PS5's gfx1013 is not checked.