3D image access bound to a 2D T#: image descriptor is incompatible with the static runtime image interface #2023

Closed
opened 2026-10-09 05:14:44 +00:00 by NahuelGenchi · 1 comment
NahuelGenchi commented 2026-10-09 05:14:44 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-09T05:14:44Z.


Sonic Origins (PPSA05324 v02.002.000) stops on main f1451396 + #2004 (with local workarounds for the earlier stops, see the bring-up thread) at:

image descriptor is incompatible with the static runtime image interface

The throw is the last line of ResourceMaterializer::RuntimeImageMode. With a local print of the decoded descriptor and of each prepared mode:

  • The draw's shader samples a float image as 3D: every prepared mode has dimension = Dim3D, class Sampled, numeric Float, plus Uint, Sint, an 11_11_10 UINT conversion and two depth variants.
  • The bound T# is 2D: type 9 in dword 3, format 56 (R8G8B8A8_UNORM), identity swizzle. It decodes to Dim2D with no conversion, packing, cube, depth or sRGB.
  • One run's T#: 279e2a60 03800070 00000000 90500fac 00000000 00700000 00000000 00000000. Across runs only the base address (word 0 and the low bits of word 1) changes.

RuntimeImageModes already 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

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5773161387 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2023). Originally posted by [NahuelGenchi](https://github.com/NahuelGenchi) on 2026-10-09T05:14:44Z. --- Sonic Origins (PPSA05324 v02.002.000) stops on `main` f1451396 + #2004 (with local workarounds for the earlier stops, see the bring-up thread) at: ```text image descriptor is incompatible with the static runtime image interface ``` The throw is the last line of `ResourceMaterializer::RuntimeImageMode`. With a local print of the decoded descriptor and of each prepared mode: - The draw's shader samples a float image as 3D: every prepared mode has `dimension = Dim3D`, class Sampled, numeric Float, plus Uint, Sint, an 11_11_10 UINT conversion and two depth variants. - The bound T# is 2D: type 9 in dword 3, format 56 (R8G8B8A8_UNORM), identity swizzle. It decodes to `Dim2D` with no conversion, packing, cube, depth or sRGB. - One run's T#: `279e2a60 03800070 00000000 90500fac 00000000 00700000 00000000 00000000`. Across runs only the base address (word 0 and the low bits of word 1) changes. `RuntimeImageModes` already 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/HW_ORACLE.md) before a mode is added. Bring-up thread: #2021
CouchRiv commented 2026-10-09 07:12:32 +00:00 (Migrated from github.com)
Author
Contributor

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, main f1451396: a 4x4 R8G8B8A8_UNORM texture, each texel holding its own x/y/z, point sampling.

T# access result
2D image_sample_lz dim 3D, r = 0, 0.5, 1, 1.5, -0.25, 3 (wrap, clamp, border) the (u,v) texel for every r, never the border: same as dim 2D
2D 1x1, the T# from this issue (own base address) image_sample_lz dim 3D, same r the single texel for every r
2D image_load dim 3D, z = 0 / z = 1..4, -1 the (x,y) texel / 0,0,0,0
3D dim 2D sample and load slice 0
2D-array dim 3D sample and load r is the layer index, same as dim 2D-array

The sampler follows the T# type and DIM only sets the address VGPR count, so for a sampled 3D access a Dim2D mode in RuntimeImageModes that drops r would match hardware here. Loads would also need z != 0 to return zero.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6076256002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2023#issuecomment-6076256002). Originally posted by [CouchRiv](https://github.com/CouchRiv) on 2026-10-09T07:12:32Z. --- Measured on RDNA2 (Radeon 610M, gfx1036, not the PS5's gfx1013) with `tools/hw-oracle`, main f1451396: a 4x4 R8G8B8A8_UNORM texture, each texel holding its own x/y/z, point sampling. | T# | access | result | |---|---|---| | 2D | `image_sample_lz` dim 3D, r = 0, 0.5, 1, 1.5, -0.25, 3 (wrap, clamp, border) | the (u,v) texel for every r, never the border: same as dim 2D | | 2D 1x1, the T# from this issue (own base address) | `image_sample_lz` dim 3D, same r | the single texel for every r | | 2D | `image_load` dim 3D, z = 0 / z = 1..4, -1 | the (x,y) texel / 0,0,0,0 | | 3D | dim 2D sample and load | slice 0 | | 2D-array | dim 3D sample and load | r is the layer index, same as dim 2D-array | The sampler follows the T# type and DIM only sets the address VGPR count, so for a sampled 3D access a Dim2D mode in `RuntimeImageModes` that drops r would match hardware here. Loads would also need z != 0 to return zero.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#2023
No description provided.