fix(shader): read 2D-array T#s through 3D image accesses #2140

Merged
overlordxrz-source merged 1 commit from upstream-pr/2140 into main 2026-10-11 07:12:23 +00:00
overlordxrz-source commented 2026-10-09 09:53:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-09T09:53:44Z.


What

Depends on: #2133 (merged 2026-10-10). This PR is rebased onto main with #2133 in. It now carries only what #2133 doesn't cover.

Since #2133, a 3D access bound to a 2D-array T# no longer throws, and it reads the wrong data. descriptorDimension decodes a 2D-array T# as 2D when the access isn't an array access. So a dim 3D image_sample_lz or image_load on a 2D-array T# matches #2133's new 2D mode:

  • the sample reads layer 0 for any r;
  • the load returns zero for any z != 0.

@adriadam10 measured on RDNA2 (gfx1035) with tools/hw-oracle (https://github.com/boykopovar/AnyPS5/pull/2140#pullrequestreview-5477882896). On a 2D-array T#, dim 3D behaves exactly like dim 2D-array: the layer is r rounded to nearest even and clamped, or z. His rows also cover image_load_mip on both T# types and image_get_resinfo:

T# access, dim 3D hardware main this PR
2D-array image_sample_lz, image_load, image_load_mip layer r / z, as dim 2D-array layer 0, or zero for z != 0 as hardware
2D-array image_get_resinfo 16 16 2 1 16 16 0 1 through the 2D mode as hardware
2D image_load_mip (x,y) texel at z = 0, zero otherwise throws as hardware
2D image_get_resinfo 16 16 1 1 throws as hardware
2D / 2D-array image_get_lod not measured throws throws

The change:

  • descriptorDimension: a 2D-array T# bound to a 3D access decodes as 2D-array.
  • RuntimeImageModes: a 3D access that is flatVolumeCompatible gets a 2D-array mode next to #2133's 2D mode.
  • ResourceTracker: flatVolumeCompatible now also accepts image_load_mip and image_get_resinfo. image_get_lod stays outside the set, so an image that uses it gets neither mode and fails to bind with the usual "incompatible with the static runtime image interface" error.
  • QueryDimensions: through the 2D mode, a 3D resinfo returns 1 as its third component, not 0.
  • docs/dev/TechnicalDebt.md: #2133's line now covers the 2D-array T#, image_load_mip, resinfo and image_get_lod.

Cube, 1D, MSAA and storage T#s bound to a 3D access are still refused. So are samples with an LOD, bias, derivatives, offset or comparison, and gathers.

Tested

  • agc_driver_image_volume_address_planar_texture (tests/execution/ImageVolumeAddressPlanarTexture.cpp) runs one compute shader against a 16x16 2D T# and then a 2-layer 2D-array T#. The shader does image_sample_lz, image_load, image_load_mip and image_get_resinfo, all with dim 3D.
    • It uses r = 0, 0.5, 1, 1.5, -0.25, 3 on the 2D T# and z = 0, 1, 2, 4, 0xffffffff.
    • Array r values avoid .5, so layer rounding doesn't matter.
    • Resinfo rows expect 16 16 1 1 and 16 16 2 1.
    • A second shader, image_sample_lz plus image_get_lod dim 3D, must be refused on both T# types.
  • Host: aarch64 Debian 13, GCC 14, Mesa 25.0.7 lavapipe. On this host, every execution test, including #2133's unmodified one, dies with SIGILL inside lavapipe's JIT at dispatch. The test was run with dispatch replaced by an inspection of the recompiled SPIR-V:
    • both T#s recompile;
    • the 2D resinfo's third component is the constant 1, and the 2D-array one comes from the arrayed view's size;
    • image_get_lod is refused on both T# types.
    • #2133's image_volume_address_on_plane recompiles the same way and still refuses image_sample_l.
    • The texel values themselves were not checked on this host. CI on x86_64 lavapipe is the authoritative run.
  • Mutation checks, each with this harness, and each fails:
    • without the QueryDimensions change: third component is not the constant 1, got 0 (adriadam10's 16 16 0 1);
    • without the descriptorDimension change: the 2D-array T# takes the 2D mode (got 1). This is the behaviour on main;
    • without the 2D-array mode: incompatible with the static runtime image interface ... decodes to {... dim 5 ...};
    • without resinfo in flatVolumeCompatible: the 2D T# is refused, as on main;
    • with image_get_lod in flatVolumeCompatible: image_get_lod 3d on a 2D texture was not refused.
  • The harness and mutants ran on main 38385164. The rebase onto 942a174e had no conflicts and changed none of the touched hunks. The compile check below was repeated on the rebased tree.
  • Compile check of the three changed files and the test with zig 0.17 for x86_64-linux-gnu and x86_64-windows-gnu: no errors, and no warnings in the changed lines.
  • Not tested on a title. #2133 already fixes the Sonic Origins stop from #2023.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #2133 (merged)
  • AI-assisted: yes. Claude-based agent; I reviewed the change and the test results.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4798842842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-09T09:53:44Z. --- ### What Depends on: #2133 (merged 2026-10-10). This PR is rebased onto `main` with #2133 in. It now carries only what #2133 doesn't cover. Since #2133, a 3D access bound to a 2D-array T# no longer throws, and it reads the wrong data. `descriptorDimension` decodes a 2D-array T# as 2D when the access isn't an array access. So a dim 3D `image_sample_lz` or `image_load` on a 2D-array T# matches #2133's new 2D mode: - the sample reads layer 0 for any r; - the load returns zero for any z != 0. @adriadam10 measured on RDNA2 (gfx1035) with `tools/hw-oracle` (https://github.com/boykopovar/AnyPS5/pull/2140#pullrequestreview-5477882896). On a 2D-array T#, dim 3D behaves exactly like dim 2D-array: the layer is r rounded to nearest even and clamped, or z. His rows also cover `image_load_mip` on both T# types and `image_get_resinfo`: | T# | access, dim 3D | hardware | `main` | this PR | |---|---|---|---|---| | 2D-array | `image_sample_lz`, `image_load`, `image_load_mip` | layer r / z, as dim 2D-array | layer 0, or zero for z != 0 | as hardware | | 2D-array | `image_get_resinfo` | `16 16 2 1` | `16 16 0 1` through the 2D mode | as hardware | | 2D | `image_load_mip` | (x,y) texel at z = 0, zero otherwise | throws | as hardware | | 2D | `image_get_resinfo` | `16 16 1 1` | throws | as hardware | | 2D / 2D-array | `image_get_lod` | not measured | throws | throws | The change: - `descriptorDimension`: a 2D-array T# bound to a 3D access decodes as 2D-array. - `RuntimeImageModes`: a 3D access that is `flatVolumeCompatible` gets a 2D-array mode next to #2133's 2D mode. - `ResourceTracker`: `flatVolumeCompatible` now also accepts `image_load_mip` and `image_get_resinfo`. `image_get_lod` stays outside the set, so an image that uses it gets neither mode and fails to bind with the usual "incompatible with the static runtime image interface" error. - `QueryDimensions`: through the 2D mode, a 3D resinfo returns 1 as its third component, not 0. - `docs/dev/TechnicalDebt.md`: #2133's line now covers the 2D-array T#, `image_load_mip`, resinfo and `image_get_lod`. Cube, 1D, MSAA and storage T#s bound to a 3D access are still refused. So are samples with an LOD, bias, derivatives, offset or comparison, and gathers. ### Tested - `agc_driver_image_volume_address_planar_texture` (`tests/execution/ImageVolumeAddressPlanarTexture.cpp`) runs one compute shader against a 16x16 2D T# and then a 2-layer 2D-array T#. The shader does `image_sample_lz`, `image_load`, `image_load_mip` and `image_get_resinfo`, all with dim 3D. - It uses r = 0, 0.5, 1, 1.5, -0.25, 3 on the 2D T# and z = 0, 1, 2, 4, 0xffffffff. - Array r values avoid .5, so layer rounding doesn't matter. - Resinfo rows expect `16 16 1 1` and `16 16 2 1`. - A second shader, `image_sample_lz` plus `image_get_lod` dim 3D, must be refused on both T# types. - Host: aarch64 Debian 13, GCC 14, Mesa 25.0.7 lavapipe. On this host, every execution test, including #2133's unmodified one, dies with SIGILL inside lavapipe's JIT at dispatch. The test was run with dispatch replaced by an inspection of the recompiled SPIR-V: - both T#s recompile; - the 2D resinfo's third component is the constant 1, and the 2D-array one comes from the arrayed view's size; - `image_get_lod` is refused on both T# types. - #2133's `image_volume_address_on_plane` recompiles the same way and still refuses `image_sample_l`. - The texel values themselves were not checked on this host. CI on x86_64 lavapipe is the authoritative run. - Mutation checks, each with this harness, and each fails: - without the `QueryDimensions` change: `third component is not the constant 1, got 0` (adriadam10's `16 16 0 1`); - without the `descriptorDimension` change: the 2D-array T# takes the 2D mode (`got 1`). This is the behaviour on `main`; - without the 2D-array mode: `incompatible with the static runtime image interface ... decodes to {... dim 5 ...}`; - without resinfo in `flatVolumeCompatible`: the 2D T# is refused, as on `main`; - with `image_get_lod` in `flatVolumeCompatible`: `image_get_lod 3d on a 2D texture was not refused`. - The harness and mutants ran on `main` 38385164. The rebase onto 942a174e had no conflicts and changed none of the touched hunks. The compile check below was repeated on the rebased tree. - Compile check of the three changed files and the test with zig 0.17 for x86_64-linux-gnu and x86_64-windows-gnu: no errors, and no warnings in the changed lines. - Not tested on a title. #2133 already fixes the Sonic Origins stop from #2023. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #2133 (merged) - [x] AI-assisted: yes. Claude-based agent; I reviewed the change and the test results.
rmz-24 commented 2026-10-09 13:07:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:07:40Z.


Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build plus libs. 04f61f76 cherry-picked onto current main d70b8998 (applies cleanly).

  • agc_driver_image_volume_address_planar_texture passes on NVIDIA.
  • Full ctest: 511/511.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6081506122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6081506122). Originally posted by [rmz-24](https://github.com/rmz-24) on 2026-10-09T13:07:40Z. --- Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`, full build plus `libs`. 04f61f76 cherry-picked onto current `main` d70b8998 (applies cleanly). - `agc_driver_image_volume_address_planar_texture` passes on NVIDIA. - Full ctest: 511/511. AI-assisted: yes
NahuelGenchi commented 2026-10-09 15:50:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-09T15:50:04Z.


Tested with Sonic Origins (PPSA05324) on Linux, R9 380 (RADV, Mesa 26.0.8, GFX8): it gets past the stop.

  • On my testing branch (main d70b8998 + the PRs listed in #2021), I replaced my local workaround for #2023 with this PR (04f61f76 cherry-picked). The shader cache started empty for the new source version, so every shader was recompiled with it.
  • No draw or dispatch was rejected, and the title presents its boot frames up to the SEGA logo as before.
  • agc_driver_image_volume_address_planar_texture passes on this card too, along with the other 36 image, bindless, runtime image, shader disk cache and agc_driver_graphics tests. image_srgb_load passes here.

I tested #2133 the same way; it also gets the title past this stop.

Bring-up thread: #2021

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084330768 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6084330768). Originally posted by [NahuelGenchi](https://github.com/NahuelGenchi) on 2026-10-09T15:50:04Z. --- Tested with Sonic Origins (PPSA05324) on Linux, R9 380 (RADV, Mesa 26.0.8, GFX8): it gets past the stop. - On my testing branch (`main` d70b8998 + the PRs listed in #2021), I replaced my local workaround for #2023 with this PR (04f61f76 cherry-picked). The shader cache started empty for the new source version, so every shader was recompiled with it. - No draw or dispatch was rejected, and the title presents its boot frames up to the SEGA logo as before. - `agc_driver_image_volume_address_planar_texture` passes on this card too, along with the other 36 image, bindless, runtime image, shader disk cache and `agc_driver_graphics` tests. `image_srgb_load` passes here. I tested #2133 the same way; it also gets the title past this stop. Bring-up thread: #2021
overlordxrz-source commented 2026-10-09 23:50:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-09T23:50:08Z.


Thanks @rmz-24 and @NahuelGenchi. Between you, this now has NVIDIA on Windows (511/511), GFX8 on RADV, and an actual Sonic Origins (PPSA05324) run past the "image descriptor is incompatible with the static runtime image interface" stop with a cold shader cache. That's the evidence it needed.

For the maintainers: #2133 by @queeeef fixes the same stop and was opened first. The main difference is that this PR also decodes 2D-array descriptors and adds 2D-array modes for sampled 3D accesses. #2133 only allows the flat 2D forms CouchRiv measured. I'm happy to close this one, or to split the 2D-array part out as a follow-up on top of #2133, whichever you prefer.

The z != 0 load-returns-zero behavior is still based on CouchRiv's RDNA2 measurement, not PS5 gfx1013.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091236362 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6091236362). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-09T23:50:08Z. --- Thanks @rmz-24 and @NahuelGenchi. Between you, this now has NVIDIA on Windows (511/511), GFX8 on RADV, and an actual Sonic Origins (PPSA05324) run past the "image descriptor is incompatible with the static runtime image interface" stop with a cold shader cache. That's the evidence it needed. For the maintainers: #2133 by @queeeef fixes the same stop and was opened first. The main difference is that this PR also decodes 2D-array descriptors and adds 2D-array modes for sampled 3D accesses. #2133 only allows the flat 2D forms CouchRiv measured. I'm happy to close this one, or to split the 2D-array part out as a follow-up on top of #2133, whichever you prefer. The z != 0 load-returns-zero behavior is still based on CouchRiv's RDNA2 measurement, not PS5 gfx1013. AI-assisted: yes
adriadam10 commented 2026-10-10 06:00:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:00:43Z.

Review: CHANGES_REQUESTED


Thanks. I measured the forms this PR adds on RDNA2 with tools/hw-oracle (gfx1035). image_sample_lz, image_load and image_load_mip with dim 3D on 2D and 2D-array T#s match the PR in every row. The rows covered r = 0, ±0.5, 0.6, 1.5, 2.5, 3.5, NaN, ±Inf and z = 0..5, -1, 0x80000000. On a 2D-array T#, dim 3D behaves exactly like dim 2D-array (layer = RNE + clamp). The negative test also fails without the change, as it should.

  • image_get_resinfo with dim 3D on a 2D T# now goes through the new 2D mode, and its third component is wrong. On hardware it returns (w, h, 1, levels). With this PR it returns (w, h, 0, levels): QueryDimensions (SpirvImageEmitter.cpp:416) fills only the 2D mode's components. I reproduced this on RADV with a 16x16 T#: 16 16 0 1 against 16 16 1 1 on hardware. It happens with resinfo alone and also next to an image_sample_lz dim 3D. On main this threw, so it is now a plausible but wrong value. Please return 1 for that component when the access is 3D and the mode is 2D, and add a resinfo row to the test. 2D-array is already right (16 16 2 1).
  • image_get_lod with dim 3D through the 2D/2D-array modes is also enabled now. We can't measure it here because it needs derivatives. Please make it throw for those modes, or list it in docs/dev/TechnicalDebt.md.
  • Overlap: #2133 fixes the same stop for the 2D case and was opened first. CONTRIBUTING asks that no two open PRs implement the same thing. Your offer to split works: keep the 2D-array part here with Depends on: #2133, or agree with @queeeef which PR carries both.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5477882896 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#pullrequestreview-5477882896). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T06:00:43Z. **Review:** CHANGES_REQUESTED --- Thanks. I measured the forms this PR adds on RDNA2 with `tools/hw-oracle` (gfx1035). `image_sample_lz`, `image_load` and `image_load_mip` with dim 3D on 2D and 2D-array T#s match the PR in every row. The rows covered r = 0, ±0.5, 0.6, 1.5, 2.5, 3.5, NaN, ±Inf and z = 0..5, -1, 0x80000000. On a 2D-array T#, dim 3D behaves exactly like dim 2D-array (layer = RNE + clamp). The negative test also fails without the change, as it should. - `image_get_resinfo` with dim 3D on a 2D T# now goes through the new 2D mode, and its third component is wrong. On hardware it returns `(w, h, 1, levels)`. With this PR it returns `(w, h, 0, levels)`: `QueryDimensions` (`SpirvImageEmitter.cpp:416`) fills only the 2D mode's components. I reproduced this on RADV with a 16x16 T#: `16 16 0 1` against `16 16 1 1` on hardware. It happens with resinfo alone and also next to an `image_sample_lz` dim 3D. On `main` this threw, so it is now a plausible but wrong value. Please return 1 for that component when the access is 3D and the mode is 2D, and add a resinfo row to the test. 2D-array is already right (`16 16 2 1`). - `image_get_lod` with dim 3D through the 2D/2D-array modes is also enabled now. We can't measure it here because it needs derivatives. Please make it throw for those modes, or list it in `docs/dev/TechnicalDebt.md`. - Overlap: #2133 fixes the same stop for the 2D case and was opened first. CONTRIBUTING asks that no two open PRs implement the same thing. Your offer to split works: keep the 2D-array part here with `Depends on: #2133`, or agree with @queeeef which PR carries both.
overlordxrz-source commented 2026-10-11 00:57:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-11T00:57:13Z.


Closing this, since #2133 covers the same Sonic Origins (PPSA05324) stop and is now merged. Thanks again to @rmz-24 and @NahuelGenchi for testing both. If the 2D-array T# path that this PR also decoded turns out to matter for a title, I'll bring it back as a separate, smaller change with that title's log.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6103971589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6103971589). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-11T00:57:13Z. --- Closing this, since #2133 covers the same Sonic Origins (PPSA05324) stop and is now merged. Thanks again to @rmz-24 and @NahuelGenchi for testing both. If the 2D-array T# path that this PR also decoded turns out to matter for a title, I'll bring it back as a separate, smaller change with that title's log.
overlordxrz-source commented 2026-10-11 01:27:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-11T01:27:31Z.


Thanks @adriadam10. Your gfx1035 rows settled what CouchRiv's table left open. I've rebased onto main with #2133 in, and cut this PR down to what #2133 doesn't cover (Depends on: #2133).

  • Overlap: #2133 owns the 2D image_sample_lz and image_load path now. The rebase turned up a problem on current main. A dim 3D access on a 2D-array T# decodes as 2D and matches #2133's 2D mode, so it doesn't throw. It reads layer 0 for any r, and returns zero for z != 0. This PR decodes it as 2D-array and adds the 2D-array mode, so it now matches your "dim 3D behaves exactly like dim 2D-array" rows.
  • resinfo: main doesn't return the wrong 16 16 0 1. #2133's flatVolumeCompatible leaves out queries, so resinfo dim 3D on a 2D T# still throws there. You measured it, so this PR allows it and returns 1 for the third component through the 2D mode. The test has both rows: 16 16 1 1 on 2D and 16 16 2 1 on 2D-array. Without the QueryDimensions change, the test reports your 16 16 0 1.
  • image_load_mip: it's also in your rows, so it's allowed through both modes. It uses the same rule as image_load: zero for z != 0 through the 2D mode.
  • image_get_lod: throws. It isn't in the compatible set, so a 3D image that uses it gets no 2D or 2D-array mode. The bind then fails with the usual "incompatible with the static runtime image interface" error. The test checks this refusal on both T# types, and the TechnicalDebt line says so.

On my aarch64 lavapipe host, the JIT dies with SIGILL at dispatch for every execution test, #2133's included. So I checked the recompiled SPIR-V and the refusals there, plus five mutants. The PR description has the details. The texel values still need the x86_64 CI run.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104189986 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6104189986). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-11T01:27:31Z. --- Thanks @adriadam10. Your gfx1035 rows settled what CouchRiv's table left open. I've rebased onto `main` with #2133 in, and cut this PR down to what #2133 doesn't cover (`Depends on: #2133`). - **Overlap:** #2133 owns the 2D `image_sample_lz` and `image_load` path now. The rebase turned up a problem on current `main`. A dim 3D access on a 2D-array T# decodes as 2D and matches #2133's 2D mode, so it doesn't throw. It reads layer 0 for any r, and returns zero for z != 0. This PR decodes it as 2D-array and adds the 2D-array mode, so it now matches your "dim 3D behaves exactly like dim 2D-array" rows. - **resinfo:** `main` doesn't return the wrong `16 16 0 1`. #2133's `flatVolumeCompatible` leaves out queries, so resinfo dim 3D on a 2D T# still throws there. You measured it, so this PR allows it and returns 1 for the third component through the 2D mode. The test has both rows: `16 16 1 1` on 2D and `16 16 2 1` on 2D-array. Without the `QueryDimensions` change, the test reports your `16 16 0 1`. - **image_load_mip:** it's also in your rows, so it's allowed through both modes. It uses the same rule as `image_load`: zero for z != 0 through the 2D mode. - **image_get_lod:** throws. It isn't in the compatible set, so a 3D image that uses it gets no 2D or 2D-array mode. The bind then fails with the usual "incompatible with the static runtime image interface" error. The test checks this refusal on both T# types, and the TechnicalDebt line says so. On my aarch64 lavapipe host, the JIT dies with SIGILL at dispatch for every execution test, #2133's included. So I checked the recompiled SPIR-V and the refusals there, plus five mutants. The PR description has the details. The texel values still need the x86_64 CI run. AI-assisted: yes
Silverash-i8 commented 2026-10-11 02:10:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T02:10:49Z.


Windows run, since the PR has no Intel results: Windows 11, WinLibs GCC 15.2.0 r7, Release, merged onto main d31b57a4, RTX 5060 Laptop and the Arrow Lake iGPU (ANYPS5_GPU=Intel).

  • agc_driver_image_volume_address_planar_texture and agc_driver_image_volume_address_on_plane pass on both GPUs, and nothing else in the agc_* suite changed.

AI-assisted (Claude Code); I ran this on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104496903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6104496903). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T02:10:49Z. --- Windows run, since the PR has no Intel results: Windows 11, WinLibs GCC 15.2.0 r7, Release, merged onto `main` d31b57a4, RTX 5060 Laptop and the Arrow Lake iGPU (`ANYPS5_GPU=Intel`). - `agc_driver_image_volume_address_planar_texture` and `agc_driver_image_volume_address_on_plane` pass on both GPUs, and nothing else in the `agc_*` suite changed. AI-assisted (Claude Code); I ran this on my machine.
overlordxrz-source commented 2026-10-11 02:26:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-11T02:26:50Z.


Thanks @Silverash-i8, that adds Intel (Arrow Lake iGPU) and a second NVIDIA run on Windows, both green on the planar-texture and on-plane tests. @adriadam10 both review points are addressed in c447b289 (resinfo returns 1 on the 2D mode, get_lod throws for the 2D and 2D-array modes); ready for another look when you have time.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104606475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6104606475). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-11T02:26:50Z. --- Thanks @Silverash-i8, that adds Intel (Arrow Lake iGPU) and a second NVIDIA run on Windows, both green on the planar-texture and on-plane tests. @adriadam10 both review points are addressed in c447b289 (resinfo returns 1 on the 2D mode, get_lod throws for the 2D and 2D-array modes); ready for another look when you have time.
overlordxrz-source commented 2026-10-11 04:39:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by overlordxrz-source on 2026-10-11T04:39:55Z.


@adriadam10 friendly ping when you have a moment: the rework now changes only the 2D-array-through-3D path as you suggested (resinfo returns the layer dimension, get_lod throws for unsupported modes, new test). Silverash-i8 confirmed both planar-texture tests on Windows 11 with NVIDIA and Intel. Happy to adjust anything. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6105511327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#issuecomment-6105511327). Originally posted by [overlordxrz-source](https://github.com/overlordxrz-source) on 2026-10-11T04:39:55Z. --- @adriadam10 friendly ping when you have a moment: the rework now changes only the 2D-array-through-3D path as you suggested (resinfo returns the layer dimension, get_lod throws for unsupported modes, new test). Silverash-i8 confirmed both planar-texture tests on Windows 11 with NVIDIA and Intel. Happy to adjust anything. AI-assisted: yes.
adriadam10 commented 2026-10-11 07:12:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:12:20Z.

Review: APPROVED


Checked the added forms against my gfx1035 oracle rows (image_sample_lz, image_load, image_load_mip, image_get_resinfo, dim 3D on 2D and 2D-array T#s): all match, including the resinfo third component now. The new test passes locally and fails with the four source files reverted. Tests on the previous head by @rmz-24 (Windows/NVIDIA) and @NahuelGenchi (Sonic Origins on RADV) cover the same code paths. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5482290788 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2140#pullrequestreview-5482290788). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:12:20Z. **Review:** APPROVED --- Checked the added forms against my gfx1035 oracle rows (`image_sample_lz`, `image_load`, `image_load_mip`, `image_get_resinfo`, dim 3D on 2D and 2D-array T#s): all match, including the resinfo third component now. The new test passes locally and fails with the four source files reverted. Tests on the previous head by @rmz-24 (Windows/NVIDIA) and @NahuelGenchi (Sonic Origins on RADV) cover the same code paths. Merging.
Sign in to join this conversation.
No reviewers
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!2140
No description provided.