3D image access bound to a 2D T#: image descriptor is incompatible with the static runtime image interface #2023
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?
Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-09T05:14:44Z.
Sonic Origins (PPSA05324 v02.002.000) stops on
mainf1451396+ #2004 (with local workarounds for the earlier stops, see the bring-up thread) at:The throw is the last line of
ResourceMaterializer::RuntimeImageMode. With a local print of the decoded descriptor and of each prepared mode:dimension = Dim3D, class Sampled, numeric Float, plus Uint, Sint, an 11_11_10 UINT conversion and two depth variants.Dim2Dwith no conversion, packing, cube, depth or sRGB.279e2a60 03800070 00000000 90500fac 00000000 00700000 00000000 00000000. Across runs only the base address (word 0 and the low bits of word 1) changes.RuntimeImageModesalready adds a 3D mode for a 2D access (volume), so a 3D T# bound to a 2D access works. The reverse, a 2D T# bound to a 3D access, has no mode. This looks like a placeholder texture bound to an unused volume slot.What RDNA2 returns when a 3D-dimension MIMG access reads a 2D resource is not established here: the test card is GCN (R9 380), so it cannot be measured on this host. It probably needs a check with the hardware oracle before a mode is added.
Bring-up thread: #2021
Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-09T07:12:32Z.
Measured on RDNA2 (Radeon 610M, gfx1036, not the PS5's gfx1013) with
tools/hw-oracle, mainf1451396: a 4x4 R8G8B8A8_UNORM texture, each texel holding its own x/y/z, point sampling.image_sample_lzdim 3D, r = 0, 0.5, 1, 1.5, -0.25, 3 (wrap, clamp, border)image_sample_lzdim 3D, same rimage_loaddim 3D, z = 0 / z = 1..4, -1The sampler follows the T# type and DIM only sets the address VGPR count, so for a sampled 3D access a Dim2D mode in
RuntimeImageModesthat drops r would match hardware here. Loads would also need z != 0 to return zero.