fix(shader,agc): support multisampled 2D array descriptor image shape and runtime views #6635

Merged
hamb3r merged 9 commits from upstream-pr/6635 into main 2026-10-18 20:32:18 +00:00
hamb3r commented 2026-10-16 00:12:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:12:04Z.


What

  • Add DescriptorImageShape::Image2DMultisampleArray in Recompiler.hpp.
  • Map ImageDimension::Dim2DMsaaArray (isArray && isMsaa) to DescriptorImageShape::Image2DMultisampleArray in DescriptorBindingBuilder::Populate instead of throwing multisampled array image resources have no descriptor image shape.
  • Match DescriptorImageShape::Image2DMultisampleArray against TextureDimension::k2DMsaa in GuestTextureResource::MatchesGuestDimension.
  • Thread VkImageViewType (VK_IMAGE_VIEW_TYPE_2D_ARRAY for DescriptorImageShape::Image2DMultisampleArray, VK_IMAGE_VIEW_TYPE_2D for DescriptorImageShape::Image2DMultisample) through ShaderResources, MultisampleTarget::Sampled, and DepthSurface::Sampled, including the view type in the sampled texture cache keys.
  • Add unit and GPU execution tests in agc_shader_memory, agc_driver_graphics (Recorder.cpp), agc_driver_sample_multisample_target, and agc_driver_native_multisample_depth covering Dim2DMsaaArray descriptor binding generation, guest texture dimension matching, VK_IMAGE_VIEW_TYPE_2D_ARRAY runtime view binding/caching, and ImageMSArray OpImageFetch execution on MSAA color and depth targets.

Tested

  • Windows 10, ctest --test-dir build-portable -R "^(agc_driver_graphics|agc_shader_memory|agc_multisample_guest_access|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth)$" --output-on-failure (all passed).
  • Windows 10, PPSA28997 (God of War: Sons of Sparta): verified that the two shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape errors during unity default resources shader registration are resolved.

Before (main):

[+1.410582 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/Resources/unity default resources flags=0x0 nativeFlags=0x8000 mode=00
[+0.754503 s] [Shaders/ShaderRegistry.cpp:904 PrepareRegistered] shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape
[+0.755115 s] [Shaders/ShaderRegistry.cpp:904 PrepareRegistered] shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape
[capture] 1 captures: 0 word reads, 0 pages fetched (0 read word by word over pending GPU writes: 0 words waited 0.00 s, 0 read raw on evidence, 0 verified with 0 mismatches, 0 served from known values, 0 hook reads not observed: no GPU wait), capture (plan lookup + materialize) 0.0 s, 1 KiB registered code this capture; sub-phases (s, us per capture): source resolve 0.00/0.0, walk 0.00/31.6, specialization (every materialize) 0.00/0.1, page reads 0.00/0.0, word reads 0.00/0.0, hook GPU waits inside 0.00/0.0, materialize 0.00/30.1 (SRT evaluate 0.00/22.0); source handle memo 0 hits, 0 resolves
[+0.780049 s] [src/Texture.cpp:1090 StorageTexture] StorageTexture address=0x217670000 1920x1080 mips=1 mip=0 layers=0 base=0 dim=1 tile=7 format=56 vk=37
[+1.499849 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/globalgamemanagers.assets flags=0x0 nativeFlags=0x8000 mode=00

After (this PR):

[+0.640242 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/Resources/unity default resources flags=0x0 nativeFlags=0x8000 mode=00
[capture] 1 captures: 0 word reads, 0 pages fetched (0 read word by word over pending GPU writes: 0 words waited 0.00 s, 0 read raw on evidence, 0 verified with 0 mismatches, 0 served from known values, 0 hook reads not observed: no GPU wait), capture (plan lookup + materialize) 0.0 s, 1 KiB registered code this capture; sub-phases (s, us per capture): source resolve 0.00/0.0, walk 0.00/18.5, specialization (every materialize) 0.00/0.2, page reads 0.00/0.0, word reads 0.00/0.0, hook GPU waits inside 0.00/0.0, materialize 0.00/30.1 (SRT evaluate 0.00/12.2); source handle memo 0 hits, 0 resolves
[+0.435864 s] [src/Texture.cpp:1090 StorageTexture] StorageTexture address=0x217670000 1920x1080 mips=1 mip=0 layers=0 base=0 dim=1 tile=7 format=56 vk=37
[buffers] descriptor elements bound: 1 total, 0 written, 1 read-only; 1 pending-write notes skipped
[+0.721886 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/globalgamemanagers.assets flags=0x0 nativeFlags=0x8000 mode=00

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 under Silent stubs in their library's technical debt file
  • 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: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3080, driver 591.74, Windows 10
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4881525618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T00:12:04Z. --- ### What - Add `DescriptorImageShape::Image2DMultisampleArray` in `Recompiler.hpp`. - Map `ImageDimension::Dim2DMsaaArray` (`isArray && isMsaa`) to `DescriptorImageShape::Image2DMultisampleArray` in `DescriptorBindingBuilder::Populate` instead of throwing `multisampled array image resources have no descriptor image shape`. - Match `DescriptorImageShape::Image2DMultisampleArray` against `TextureDimension::k2DMsaa` in `GuestTextureResource::MatchesGuestDimension`. - Thread `VkImageViewType` (`VK_IMAGE_VIEW_TYPE_2D_ARRAY` for `DescriptorImageShape::Image2DMultisampleArray`, `VK_IMAGE_VIEW_TYPE_2D` for `DescriptorImageShape::Image2DMultisample`) through `ShaderResources`, `MultisampleTarget::Sampled`, and `DepthSurface::Sampled`, including the view type in the sampled texture cache keys. - Add unit and GPU execution tests in `agc_shader_memory`, `agc_driver_graphics` (`Recorder.cpp`), `agc_driver_sample_multisample_target`, and `agc_driver_native_multisample_depth` covering `Dim2DMsaaArray` descriptor binding generation, guest texture dimension matching, `VK_IMAGE_VIEW_TYPE_2D_ARRAY` runtime view binding/caching, and `ImageMSArray` `OpImageFetch` execution on MSAA color and depth targets. ### Tested - Windows 10, `ctest --test-dir build-portable -R "^(agc_driver_graphics|agc_shader_memory|agc_multisample_guest_access|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth)$" --output-on-failure` (all passed). - Windows 10, PPSA28997 (*God of War: Sons of Sparta*): verified that the two `shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape` errors during `unity default resources` shader registration are resolved. Before (`main`): ```text [+1.410582 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/Resources/unity default resources flags=0x0 nativeFlags=0x8000 mode=00 [+0.754503 s] [Shaders/ShaderRegistry.cpp:904 PrepareRegistered] shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape [+0.755115 s] [Shaders/ShaderRegistry.cpp:904 PrepareRegistered] shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shape [capture] 1 captures: 0 word reads, 0 pages fetched (0 read word by word over pending GPU writes: 0 words waited 0.00 s, 0 read raw on evidence, 0 verified with 0 mismatches, 0 served from known values, 0 hook reads not observed: no GPU wait), capture (plan lookup + materialize) 0.0 s, 1 KiB registered code this capture; sub-phases (s, us per capture): source resolve 0.00/0.0, walk 0.00/31.6, specialization (every materialize) 0.00/0.1, page reads 0.00/0.0, word reads 0.00/0.0, hook GPU waits inside 0.00/0.0, materialize 0.00/30.1 (SRT evaluate 0.00/22.0); source handle memo 0 hits, 0 resolves [+0.780049 s] [src/Texture.cpp:1090 StorageTexture] StorageTexture address=0x217670000 1920x1080 mips=1 mip=0 layers=0 base=0 dim=1 tile=7 format=56 vk=37 [+1.499849 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/globalgamemanagers.assets flags=0x0 nativeFlags=0x8000 mode=00 ``` After (this PR): ```text [+0.640242 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/Resources/unity default resources flags=0x0 nativeFlags=0x8000 mode=00 [capture] 1 captures: 0 word reads, 0 pages fetched (0 read word by word over pending GPU writes: 0 words waited 0.00 s, 0 read raw on evidence, 0 verified with 0 mismatches, 0 served from known values, 0 hook reads not observed: no GPU wait), capture (plan lookup + materialize) 0.0 s, 1 KiB registered code this capture; sub-phases (s, us per capture): source resolve 0.00/0.0, walk 0.00/18.5, specialization (every materialize) 0.00/0.2, page reads 0.00/0.0, word reads 0.00/0.0, hook GPU waits inside 0.00/0.0, materialize 0.00/30.1 (SRT evaluate 0.00/12.2); source handle memo 0 hits, 0 resolves [+0.435864 s] [src/Texture.cpp:1090 StorageTexture] StorageTexture address=0x217670000 1920x1080 mips=1 mip=0 layers=0 base=0 dim=1 tile=7 format=56 vk=37 [buffers] descriptor elements bound: 1 total, 0 written, 1 read-only; 1 pending-write notes skipped [+0.721886 s] [src/Open.cpp:215 sceKernelOpen] path=/app0/Media/globalgamemanagers.assets flags=0x0 nativeFlags=0x8000 mode=00 ``` ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3080, driver 591.74, Windows 10 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-16 00:13:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:13:42Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255

@@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture
         case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D;
         case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray;
         case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa;
+        case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa;

Could you cover the runtime view type as well as descriptor generation? This shape passes MatchesGuestDimension for TextureDimension::k2DMsaa, which reaches MultisampleTargetTexture and MultisampleTarget::Sampled; that creates Texture(context, image, ...) using the constructor default VK_IMAGE_VIEW_TYPE_2D. A shader image declared as 2D multisample array needs an arrayed view (VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY), even when it has one layer. The new tests currently assert shape generation and dimension matching but do not verify the image view bound for that shape. Can this PR make the sampled view shape-aware and add a focused test, or clarify how the runtime path selects an array view?

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289561133 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#discussion_r4289561133). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:13:42Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`; line 255 ~~~~diff @@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D; case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray; case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa; + case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa; ~~~~ --- Could you cover the runtime view type as well as descriptor generation? This shape passes `MatchesGuestDimension` for `TextureDimension::k2DMsaa`, which reaches `MultisampleTargetTexture` and `MultisampleTarget::Sampled`; that creates `Texture(context, image, ...)` using the constructor default `VK_IMAGE_VIEW_TYPE_2D`. A shader image declared as 2D multisample array needs an arrayed view (`VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY`), even when it has one layer. The new tests currently assert shape generation and dimension matching but do not verify the image view bound for that shape. Can this PR make the sampled view shape-aware and add a focused test, or clarify how the runtime path selects an array view?
hamb3r commented 2026-10-16 00:14:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:14:22Z.


cc @adriadam10 @oneandonlydean

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205018642 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6205018642). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T00:14:22Z. --- cc @adriadam10 @oneandonlydean
MarcZX10 commented 2026-10-16 00:32:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:32:36Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255

@@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture
         case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D;
         case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray;
         case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa;
+        case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa;

Correction to my terminology: Vulkan has no VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY enum. I meant VK_IMAGE_VIEW_TYPE_2D_ARRAY; the image multisample count is specified separately. The concern remains that Texture(context, image, ...) defaults to non-array VK_IMAGE_VIEW_TYPE_2D, so could you confirm the sampled path binds an array view for this arrayed shader shape?

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289662149 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#discussion_r4289662149). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:32:36Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`; line 255 ~~~~diff @@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D; case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray; case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa; + case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa; ~~~~ --- Correction to my terminology: Vulkan has no VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY enum. I meant VK_IMAGE_VIEW_TYPE_2D_ARRAY; the image multisample count is specified separately. The concern remains that Texture(context, image, ...) defaults to non-array VK_IMAGE_VIEW_TYPE_2D, so could you confirm the sampled path binds an array view for this arrayed shader shape?
MarcZX10 commented 2026-10-16 00:39:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:39:59Z.


I traced this into MultisampleTarget::Sampled: it creates Texture(context, image, ...) with the default VK_IMAGE_VIEW_TYPE_2D, while the new descriptor shape emits an arrayed multisample image type. Unless this path is intentionally using a non-array view for k2dArrayMsaa, the descriptor and view dimensionality appear inconsistent. Could the runtime sampled view be made array-shaped and covered by a test, or could this PR reject the unsupported runtime path explicitly?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205344973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6205344973). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:39:59Z. --- I traced this into `MultisampleTarget::Sampled`: it creates `Texture(context, image, ...)` with the default `VK_IMAGE_VIEW_TYPE_2D`, while the new descriptor shape emits an arrayed multisample image type. Unless this path is intentionally using a non-array view for `k2dArrayMsaa`, the descriptor and view dimensionality appear inconsistent. Could the runtime sampled view be made array-shaped and covered by a test, or could this PR reject the unsupported runtime path explicitly?
hamb3r commented 2026-10-16 00:58:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:58:01Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255

@@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture
         case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D;
         case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray;
         case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa;
+        case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa;

Good catch — addressed in 729558cc6 and 026e69fa6:

  • Threaded VkImageViewType (VK_IMAGE_VIEW_TYPE_2D_ARRAY for DescriptorImageShape::Image2DMultisampleArray, VK_IMAGE_VIEW_TYPE_2D for DescriptorImageShape::Image2DMultisample) through ShaderResources (both GuestImages and ImageTable paths, plus PreviousSampled), MultisampleTarget::Sampled, and DepthSurface::Sampled, and included the view type in the sampled texture cache keys.
  • Added unit and GPU execution coverage in tests/Recorder.cpp (verifying SampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAY and separate caching of 2D vs. 2D-array views), tests/execution/SampleMultisampleTarget.cpp (executing an RDNA Dim2DMsaaArray image_load shader on the 4x MSAA color target), and tests/execution/NativeMultisampleDepth.cpp (executing an arrayed ImageMSArray OpImageFetch shader on the 4x MSAA depth target).
<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289809337 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#discussion_r4289809337). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T00:58:01Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`; line 255 ~~~~diff @@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D; case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray; case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa; + case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa; ~~~~ --- Good catch — addressed in 729558cc6 and 026e69fa6: - Threaded `VkImageViewType` (VK_IMAGE_VIEW_TYPE_2D_ARRAY for `DescriptorImageShape::Image2DMultisampleArray`, VK_IMAGE_VIEW_TYPE_2D for `DescriptorImageShape::Image2DMultisample`) through `ShaderResources` (both `GuestImages` and `ImageTable` paths, plus `PreviousSampled`), `MultisampleTarget::Sampled`, and `DepthSurface::Sampled`, and included the view type in the sampled texture cache keys. - Added unit and GPU execution coverage in `tests/Recorder.cpp` (verifying `SampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAY` and separate caching of 2D vs. 2D-array views), `tests/execution/SampleMultisampleTarget.cpp` (executing an RDNA `Dim2DMsaaArray` `image_load` shader on the 4x MSAA color target), and `tests/execution/NativeMultisampleDepth.cpp` (executing an arrayed `ImageMSArray` `OpImageFetch` shader on the 4x MSAA depth target).
hamb3r commented 2026-10-16 00:58:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:58:03Z.


@MarcZX100 Good catch — addressed in 729558cc6 and 026e69fa6:

  • Threaded VkImageViewType (VK_IMAGE_VIEW_TYPE_2D_ARRAY for DescriptorImageShape::Image2DMultisampleArray, VK_IMAGE_VIEW_TYPE_2D for DescriptorImageShape::Image2DMultisample) through ShaderResources (both GuestImages and ImageTable paths, plus PreviousSampled), MultisampleTarget::Sampled, and DepthSurface::Sampled, and included the view type in the sampled texture cache keys.
  • Added unit and GPU execution coverage in tests/Recorder.cpp (verifying SampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAY and separate caching of 2D vs. 2D-array views), tests/execution/SampleMultisampleTarget.cpp (executing an RDNA Dim2DMsaaArray image_load shader on the 4x MSAA color target), and tests/execution/NativeMultisampleDepth.cpp (executing an arrayed ImageMSArray OpImageFetch shader on the 4x MSAA depth target).
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205573910 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6205573910). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T00:58:03Z. --- @MarcZX100 Good catch — addressed in 729558cc6 and 026e69fa6: - Threaded `VkImageViewType` (VK_IMAGE_VIEW_TYPE_2D_ARRAY for `DescriptorImageShape::Image2DMultisampleArray`, VK_IMAGE_VIEW_TYPE_2D for `DescriptorImageShape::Image2DMultisample`) through `ShaderResources` (both `GuestImages` and `ImageTable` paths, plus `PreviousSampled`), `MultisampleTarget::Sampled`, and `DepthSurface::Sampled`, and included the view type in the sampled texture cache keys. - Added unit and GPU execution coverage in `tests/Recorder.cpp` (verifying `SampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAY` and separate caching of 2D vs. 2D-array views), `tests/execution/SampleMultisampleTarget.cpp` (executing an RDNA `Dim2DMsaaArray` `image_load` shader on the 4x MSAA color target), and `tests/execution/NativeMultisampleDepth.cpp` (executing an arrayed `ImageMSArray` `OpImageFetch` shader on the 4x MSAA depth target).
MarcZX10 commented 2026-10-16 00:59:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:59:16Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255

@@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture
         case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D;
         case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray;
         case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa;
+        case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa;

Thanks for carrying the view type through the sampling paths and cache keys, and for adding color and depth execution coverage. That resolves the runtime-view concern I raised.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289815849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#discussion_r4289815849). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:59:16Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`; line 255 ~~~~diff @@ -252,6 +252,7 @@ bool MatchesGuestDimension(ShaderRecompiler::DescriptorImageShape shape, Texture case ShaderRecompiler::DescriptorImageShape::Image3D: return dimension == TextureDimension::k3D; case ShaderRecompiler::DescriptorImageShape::Image1DArray: return dimension == TextureDimension::k1DArray; case ShaderRecompiler::DescriptorImageShape::Image2DMultisample: return dimension == TextureDimension::k2DMsaa; + case ShaderRecompiler::DescriptorImageShape::Image2DMultisampleArray: return dimension == TextureDimension::k2DMsaa; ~~~~ --- Thanks for carrying the view type through the sampling paths and cache keys, and for adding color and depth execution coverage. That resolves the runtime-view concern I raised.
github-actions[bot] commented 2026-10-16 00:59:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T00:59:48Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6175 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp L57-58
PR 6215 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp L57-58
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L242-246, L302, L699-700
PR 6557 core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp L814-815
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp L57-58
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L230-231, L244
PR 6727 core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp L814-815
PR 6772 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L602
PR 7250 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L230-231, L302-303
PR 7258 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L4657
PR 7318 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L399-400, L422-424, L681-682, L1582
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp L725-727

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1341 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 3247 core/shader/recompiler/Recompiler.hpp
PR 4650 core/shader/recompiler/Recompiler.hpp
PR 5021 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5371 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 5609 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6177 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 6185 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 6280 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6297 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp
PR 6300 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
PR 6312 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6412 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6414 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6423 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6486 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6490 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6499 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6503 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 6539 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6747 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6763 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp
PR 6868 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6879 core/shader/recompiler/Recompiler.hpp
PR 6905 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6937 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6941 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 6970 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6972 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/shader/recompiler/Recompiler.hpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.hpp
PR 7381 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7388 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7390 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.hpp
PR 7426 core/shader/recompiler/Recompiler.hpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205594486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6205594486). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T00:59:48Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6175](https://www.github.com/boykopovar/AnyPS5/pull/6175) | `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp` [L57-58](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp#L57-L58) | | | | [PR 6215](https://www.github.com/boykopovar/AnyPS5/pull/6215) | `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp` [L57-58](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp#L57-L58)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L242-246](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L242-L246), [L302](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L302), [L699-700](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L699-L700) | | | | [PR 6557](https://www.github.com/boykopovar/AnyPS5/pull/6557) | `core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` [L814-815](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp#L814-L815) | | | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp` [L57-58](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hpp#L57-L58)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L230-231](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L230-L231), [L244](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L244) | | | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` [L814-815](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp#L814-L815) | | | | [PR 6772](https://www.github.com/boykopovar/AnyPS5/pull/6772) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L602](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L602) | | | | [PR 7250](https://www.github.com/boykopovar/AnyPS5/pull/7250) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L230-231](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L230-L231), [L302-303](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L302-L303) | | | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L4657](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4657) | | | | [PR 7318](https://www.github.com/boykopovar/AnyPS5/pull/7318) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L399-400](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L399-L400), [L422-424](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L422-L424), [L681-682](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L681-L682), [L1582](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L1582)<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` [L725-727](https://github.com/boykopovar/AnyPS5/blob/fb9a1eb8f3d6c8c512e54ee48fb3f0a411c2bbf4/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp#L725-L727) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 3247](https://www.github.com/boykopovar/AnyPS5/pull/3247) | `core/shader/recompiler/Recompiler.hpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/shader/recompiler/Recompiler.hpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6297](https://www.github.com/boykopovar/AnyPS5/pull/6297) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | [PR 6312](https://www.github.com/boykopovar/AnyPS5/pull/6312) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6414](https://www.github.com/boykopovar/AnyPS5/pull/6414) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6423](https://www.github.com/boykopovar/AnyPS5/pull/6423) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6486](https://www.github.com/boykopovar/AnyPS5/pull/6486) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6490](https://www.github.com/boykopovar/AnyPS5/pull/6490) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6499](https://www.github.com/boykopovar/AnyPS5/pull/6499) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6553](https://www.github.com/boykopovar/AnyPS5/pull/6553) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/Recompiler.hpp` | | [PR 6905](https://www.github.com/boykopovar/AnyPS5/pull/6905) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7381](https://www.github.com/boykopovar/AnyPS5/pull/7381) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7388](https://www.github.com/boykopovar/AnyPS5/pull/7388) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7426](https://www.github.com/boykopovar/AnyPS5/pull/7426) | `core/shader/recompiler/Recompiler.hpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` |
MarcZX10 commented 2026-10-16 03:26:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T03:26:09Z.

Review: APPROVED


The sampled-view shape concern from my earlier review is addressed on this head: the requested view type is threaded through the sampled color and depth paths, included in the texture cache keys, and covered by view-shape plus execution test cases. I found no remaining blocker in this change. The repository checks pass, while platform build/runtime jobs are skipped by path policy, so I am not claiming those new execution cases ran in CI.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5542713775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#pullrequestreview-5542713775). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T03:26:09Z. **Review:** APPROVED --- The sampled-view shape concern from my earlier review is addressed on this head: the requested view type is threaded through the sampled color and depth paths, included in the texture cache keys, and covered by view-shape plus execution test cases. I found no remaining blocker in this change. The repository checks pass, while platform build/runtime jobs are skipped by path policy, so I am not claiming those new execution cases ran in CI.
Amoenus commented 2026-10-16 11:34:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T11:34:19Z.

Review: APPROVED


Independent source review and cross-vendor validation of head 026e69fa6024858744eb1ae17995d9b84507356a on main 0615cd2b82926b2f4daf1d31ac9bc7354b6d0a17: no blocker found in the reviewed change.

Reproducible validation composition fd9f3d707: clean main + this PR, plus only #6225's fixture GPU selector and #6452's WinLibs test-alignment correction. These are test-infrastructure additions; this PR's production diff and new array assertions are unchanged.

  • Earlier main7dc composition 41a94acb2 passes the full Windows app/libraries and patched libs build, 27 Windows and 18 Linux runs. That full-build result stays at its original pin.
  • Latest tested fd9f3d707 includes main0615's dispatch/pipeline/journal and shader-cache changes. Affected Windows libraries/six targets and the same six Linux targets build; conventions and registration pass. Targeted revalidation passes 21 Windows runs and 12 Linux runs: three CPU groups once each (agc_shader_memory, agc_driver_graphics, agc_shader_disk_cache), and three GPU groups x3 per physical vendor/software device (agc_multisample_guest_access, agc_driver_sample_multisample_target, agc_driver_native_multisample_depth). GPU identity is verified in every GPU process; no whole-test skips/timeouts, maximum 7.140s.
  • Linux: Ubuntu24.04 / GCC13.3 / Mesa25.2.8 llvmpipe. Native-depth cases check D16/D32 at 4x (4 checked, 8 unavailable per process); both Windows GPUs check all 12 cases. CPU heap-mirror omissions are excluded from coverage. Dispatch uses the default mode; the optional APS5_PIPELINE_DISPATCH mode and journal replay are outside this matrix.
  • Color array loads agree with the checked non-array sample values; depth array fetches verify imported and rasterized values. The view tests check distinct 2D/2D-array cache entries and mixed consecutive bindings. Source inspection confirms the new enum is appended, preserving existing values.

GPUs tested: NVIDIA RTX5080 (10de:2c02), driver610.62/32.0.16.1062; AMD Radeon(TM) Graphics (1002:13c0), driver32.0.21036.18; Windows11 Enterprise26200 / WinLibs GCC15.2r7. Serial fresh processes, Vulkan required, project shader cache disabled; driver caches uncontrolled.

Coverage is array-shaped views of one-layer native targets, using layer zero. Source inspection confirms the decoder retains its nonzero MSAA depth/base-array refusal. Multiple resident layers, console equivalence and title startup remain untested here.

Main subsequently advanced to aff725bf6d8d61ed33e80507421fd131aeae1305 (#5884 mesh line-strip output and #5886 unnormalized-sampler base-level proof). I inspected the relevant hunks: the native view-type/cache plumbing and sampler-free array-load paths are unchanged, and the complete merge preview is clean. These later commits are outside the executed pins above; no unrelated matrix restart. AI-assisted: Codex; I ran these local builds/tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5547214764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#pullrequestreview-5547214764). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-16T11:34:19Z. **Review:** APPROVED --- Independent source review and cross-vendor validation of head `026e69fa6024858744eb1ae17995d9b84507356a` on main `0615cd2b82926b2f4daf1d31ac9bc7354b6d0a17`: no blocker found in the reviewed change. Reproducible [validation composition `fd9f3d707`](https://github.com/Amoenus/AnyPS5/commit/fd9f3d7078a1d5967035a434293017f986776623): clean main + this PR, plus only #6225's fixture GPU selector and #6452's WinLibs test-alignment correction. These are test-infrastructure additions; this PR's production diff and new array assertions are unchanged. - Earlier [main7dc composition `41a94acb2`](https://github.com/Amoenus/AnyPS5/commit/41a94acb276e8d712ffac1cf9fb1829a8e4e5469) passes the full Windows app/libraries and patched `libs` build, 27 Windows and 18 Linux runs. That full-build result stays at its original pin. - Latest tested `fd9f3d707` includes main0615's dispatch/pipeline/journal and shader-cache changes. Affected Windows libraries/six targets and the same six Linux targets build; conventions and registration pass. Targeted revalidation passes **21 Windows runs** and **12 Linux runs**: three CPU groups once each (`agc_shader_memory`, `agc_driver_graphics`, `agc_shader_disk_cache`), and three GPU groups x3 per physical vendor/software device (`agc_multisample_guest_access`, `agc_driver_sample_multisample_target`, `agc_driver_native_multisample_depth`). GPU identity is verified in every GPU process; no whole-test skips/timeouts, maximum 7.140s. - Linux: Ubuntu24.04 / GCC13.3 / Mesa25.2.8 llvmpipe. Native-depth cases check D16/D32 at 4x (4 checked, 8 unavailable per process); both Windows GPUs check all 12 cases. CPU heap-mirror omissions are excluded from coverage. Dispatch uses the default mode; the optional `APS5_PIPELINE_DISPATCH` mode and journal replay are outside this matrix. - Color array loads agree with the checked non-array sample values; depth array fetches verify imported and rasterized values. The view tests check distinct 2D/2D-array cache entries and mixed consecutive bindings. Source inspection confirms the new enum is appended, preserving existing values. GPUs tested: NVIDIA RTX5080 (`10de:2c02`), driver610.62/32.0.16.1062; AMD Radeon(TM) Graphics (`1002:13c0`), driver32.0.21036.18; Windows11 Enterprise26200 / WinLibs GCC15.2r7. Serial fresh processes, Vulkan required, project shader cache disabled; driver caches uncontrolled. Coverage is array-shaped views of one-layer native targets, using layer zero. Source inspection confirms the decoder retains its nonzero MSAA depth/base-array refusal. Multiple resident layers, console equivalence and title startup remain untested here. Main subsequently advanced to `aff725bf6d8d61ed33e80507421fd131aeae1305` (#5884 mesh line-strip output and #5886 unnormalized-sampler base-level proof). I inspected the relevant hunks: the native view-type/cache plumbing and sampler-free array-load paths are unchanged, and the complete merge preview is clean. These later commits are outside the executed pins above; no unrelated matrix restart. AI-assisted: Codex; I ran these local builds/tests.
hamb3r commented 2026-10-16 19:45:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T19:45:59Z.


cc @adriadam10 @oneandonlydean rebase

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223394036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6223394036). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T19:45:59Z. --- cc @adriadam10 @oneandonlydean rebase
hamb3r commented 2026-10-16 22:29:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T22:29:07Z.


cc @adriadam10 @oneandonlydean rebased again

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225903418 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6225903418). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T22:29:07Z. --- cc @adriadam10 @oneandonlydean rebased again
MarcZX10 commented 2026-10-16 22:31:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:31:01Z.


I have a focused candidate for issue #6957: sample a multisampled target in SHADER_READ_ONLY_OPTIMAL after storage writes, then restore GENERAL before attachment or storage use. The behavior is distinct from this PR, but both change MultisampleTarget::Sampled and the borrowed Texture view path. The layout update needs to preserve the array viewType and cache key here. No urgency; could you advise whether you prefer #6635 to land first so I can rebase the layout fix onto it, or the layout fix to go first so you can rebase this PR? I have not opened the follow-up yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6225927596 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6225927596). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T22:31:01Z. --- I have a focused candidate for issue #6957: sample a multisampled target in `SHADER_READ_ONLY_OPTIMAL` after storage writes, then restore `GENERAL` before attachment or storage use. The behavior is distinct from this PR, but both change `MultisampleTarget::Sampled` and the borrowed `Texture` view path. The layout update needs to preserve the array `viewType` and cache key here. No urgency; could you advise whether you prefer #6635 to land first so I can rebase the layout fix onto it, or the layout fix to go first so you can rebase this PR? I have not opened the follow-up yet.
hamb3r commented 2026-10-16 22:49:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T22:49:27Z.


Thanks for checking, @MarcZX100!

It would be great if #6635 lands first since it's already approved and ready for the maintainers. If you don't mind holding off on opening yours until it's merged, that will prevent any unnecessary conflicts.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226153563 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6226153563). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-16T22:49:27Z. --- Thanks for checking, @MarcZX100! It would be great if #6635 lands first since it's already approved and ready for the maintainers. If you don't mind holding off on opening yours until it's merged, that will prevent any unnecessary conflicts.
MarcZX10 commented 2026-10-16 22:57:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:57:46Z.


Thanks for the guidance. I had opened #6971 shortly before seeing your reply, after #6683’s author confirmed that either order was workable. I have now marked #6971 as draft to avoid parallel review/merge conflicts. Once #6635 lands, I’ll rebase it and recheck the array-view/cache-key integration before marking it ready.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6226252591 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6226252591). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T22:57:46Z. --- Thanks for the guidance. I had opened #6971 shortly before seeing your reply, after #6683’s author confirmed that either order was workable. I have now marked #6971 as draft to avoid parallel review/merge conflicts. Once #6635 lands, I’ll rebase it and recheck the array-view/cache-key integration before marking it ready.
hamb3r commented 2026-10-17 22:45:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-17T22:45:53Z.


Hi @adriadam10 @oneandonlydean, hope you're doing well! Just bumping this so it doesn't get lost in the backlog. The changes are purely focused on optimizations, all checks are passing, and there are no merge conflicts. Would love to get your eyes on it when you have a few minutes!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6242538233 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6242538233). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-17T22:45:53Z. --- Hi @adriadam10 @oneandonlydean, hope you're doing well! Just bumping this so it doesn't get lost in the backlog. The changes are purely focused on optimizations, all checks are passing, and there are no merge conflicts. Would love to get your eyes on it when you have a few minutes!
Amoenus commented 2026-10-17 22:59:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T22:59:36Z.


Refining this report after checking the shader type and specification: FetchProgram(arrayed) uses Sampled=1, yet explicitly emits ImageMSArray. That capability is for multisampled array storage images (Sampled=2) in the SPIR-V specification. The more portable proposed correction is to remove the unnecessary if (arrayed) module.EmitCapability(spv::CapabilityImageMSArray); declaration, preserving the sampled-array type and fetch.

I compiled an independent usampler2DMSArray texelFetch control with the installed glslang for Vulkan1.2: it emits only OpCapability Shader, with OpTypeImage %uint 2D 0 1 1 1 Unknown, and passes spirv-val --target-env vulkan1.2. This confirms the capability boundary; the actual native-depth fixture still needs a hardware rerun with that declaration removed. The actual fixture is now validated below after that replay finished.

Earlier hardware control: our main55 integration with the older #6635 array-view work and #7233 completion proof emitted54 VUID08740 errors per GPU in the native clear/refusal groups repeated3x. Enabling the host storage-MSAA feature eliminated those errors, with both groups3/3 on RTX5080 (32.0.16.1062) and AMD Radeon Graphics (32.0.21036.18), Windows11 Enterprise26200 / Khronos1.4.363. That control satisfies the declared capability, but introduces an unnecessary feature prerequisite and is not the preferred portable fix. Linux/lavapipe passed its available cases; no Linux validation layer is available.

These are integration/control results, not execution of unchanged latest head ebc6ea3. No production feature-negotiation change is proposed. The separate command-pool reset issue remains #7311. AI-assisted: Codex; author responsible.

Actual fixture validation completed: focused one-line capability removal9e17f1522 is in integration4c2cab/main5de. The prior host-feature addition is reverted. Both native clear/refusal groups pass3/3 on each physical GPU with Khronos1.4.363 loaded and zero observed VUIDs, while the available Linux cases also pass3/3. Broader volume/packed-color/publication controls pass in that same composition. This validates the sampled-only correction on our composition, not unchanged latest #6635 head. Please prefer this capability removal to the earlier feature-enabling control.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6242716908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6242716908). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-17T22:59:36Z. --- Refining this report after checking the shader type and specification: `FetchProgram(arrayed)` uses **Sampled=1**, yet explicitly emits `ImageMSArray`. That capability is for multisampled array **storage images (Sampled=2)** in the [SPIR-V specification](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_capability). The more portable proposed correction is to remove the unnecessary `if (arrayed) module.EmitCapability(spv::CapabilityImageMSArray);` declaration, preserving the sampled-array type and fetch. I compiled an independent `usampler2DMSArray` texelFetch control with the installed glslang for Vulkan1.2: it emits only `OpCapability Shader`, with `OpTypeImage %uint 2D 0 1 1 1 Unknown`, and passes `spirv-val --target-env vulkan1.2`. This confirms the capability boundary; the actual native-depth fixture still needs a hardware rerun with that declaration removed. The actual fixture is now validated below after that replay finished. Earlier hardware control: our main55 integration with the older #6635 array-view work and #7233 completion proof emitted54 VUID08740 errors per GPU in the native clear/refusal groups repeated3x. [Enabling the host storage-MSAA feature](https://github.com/Amoenus/AnyPS5/commit/05a2a7fd9f5a9551f62fd8369811299479b647ea) eliminated those errors, with both groups3/3 on RTX5080 (32.0.16.1062) and AMD Radeon Graphics (32.0.21036.18), Windows11 Enterprise26200 / Khronos1.4.363. That control satisfies the declared capability, but introduces an unnecessary feature prerequisite and is **not the preferred portable fix**. Linux/lavapipe passed its available cases; no Linux validation layer is available. These are integration/control results, not execution of unchanged latest head ebc6ea3. No production feature-negotiation change is proposed. The separate command-pool reset issue remains #7311. AI-assisted: Codex; author responsible. **Actual fixture validation completed:** [focused one-line capability removal9e17f1522](https://github.com/Amoenus/AnyPS5/commit/9e17f15228daaee2fb516fbdd5ae21000cb27fbc) is in integration4c2cab/main5de. The prior host-feature addition is reverted. Both native clear/refusal groups pass3/3 on each physical GPU with Khronos1.4.363 loaded and zero observed VUIDs, while the available Linux cases also pass3/3. Broader volume/packed-color/publication controls pass in that same composition. This validates the sampled-only correction on our composition, not unchanged latest #6635 head. Please prefer this capability removal to the earlier feature-enabling control.
MarcZX10 commented 2026-10-18 01:58:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T01:58:18Z.


I checked the current head ed85bd05c: FetchShader(arrayed) no longer emits CapabilityImageMSArray, so the capability concern in the review appears addressed in source. The reported native-depth execution was on the earlier 026e69fa6 head, and this current head's hosted build/test jobs are skipped. Could you confirm the focused agc_driver_native_multisample_depth test passes on ed85bd05c after the capability removal?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244488406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6244488406). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T01:58:18Z. --- I checked the current head `ed85bd05c`: `FetchShader(arrayed)` no longer emits `CapabilityImageMSArray`, so the capability concern in the review appears addressed in source. The reported native-depth execution was on the earlier `026e69fa6` head, and this current head's hosted build/test jobs are skipped. Could you confirm the focused `agc_driver_native_multisample_depth` test passes on `ed85bd05c` after the capability removal?
hamb3r commented 2026-10-18 02:02:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-18T02:02:49Z.


@Amoenus Thank you for the thorough SPIR-V specification breakdown (Sampled=1 vs Sampled=2) and the multi-GPU control validation. We aligned with that portable direction: head ed85bd05c removes the unnecessary if (arrayed) module.EmitCapability(spv::CapabilityImageMSArray); declaration in FetchShader directly, avoiding any extra host feature prerequisites.

@MarcZX100 Confirmed: executed the focused agc_driver_native_multisample_depth test directly on head ed85bd05c on physical hardware:

  • Host: AMD Ryzen 7 7700, NVIDIA GeForce RTX 3080 (driver 560.94 / 2588114944), Windows 10 Pro (Build 19045).
  • Execution: 100% passed (12/12 cases checked, 0 unavailable, 0.41s).
  • Validation Layer (VK_LAYER_KHRONOS_validation): clean pass with 0 validation errors / 0 VUIDs; VUID-VkShaderModuleCreateInfo-pCode-08740 is completely resolved.
ctest -R agc_driver_native_multisample_depth -V output (with Khronos validation layer)
test 608
    Start 608: agc_driver_native_multisample_depth

608: Test command: E:\AnyPS5_original\build-portable\tests\agc_driver_native_multisample_depth_tests.exe
608: Working Directory: E:/AnyPS5_original
608: Environment variables: 
608:  ANYPS5_NO_SHADER_CACHE=1
608:  APS5_NO_PIPELINE_JOURNAL=1
608: Selected GPU name=NVIDIA GeForce RTX 3080 vendor=0x10de device=0x2206 driver=2588114944
608: [src/VulkanDevice.cpp:1119 VulkanDevice] Selected GPU name=NVIDIA GeForce RTX 3080 vendor=0x10de device=0x2206 subgroup=32
608: [src/VulkanDevice.cpp:1527 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1
608: [src/VulkanDevice.cpp:1892 VulkanDevice] Vulkan device ready device=0000020f00ae00d0 queue=0000020f003a41d0 family=0
608: Native depth feedback refused through the draw resource path
608: Native depth format=124 samples=2 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=2 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=2: binds over the owner's HTILE left its words alone
608: Native depth format=124 samples=4 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=4 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=4: binds over the owner's HTILE left its words alone
608: Native depth format=124 samples=8 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=8 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=124 samples=8: binds over the owner's HTILE left its words alone
608: Native depth format=126 samples=2 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=2 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=2: binds over the owner's HTILE left its words alone
608: Native depth format=126 samples=4 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=4 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=4: binds over the owner's HTILE left its words alone
608: Native depth format=126 samples=8 clear=0: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=8 clear=1: imported, rasterized twice, sampled and refused conflicts
608: Native depth format=126 samples=8: binds over the owner's HTILE left its words alone
608: Native depth eligibility, guest writes, queued writes, metadata transitions and held views checked
608: Native multisampled depth cases checked=12 unavailable=0
1/1 Test #608: agc_driver_native_multisample_depth ...   Passed    0.41 sec

The following tests passed:
	agc_driver_native_multisample_depth

100% tests passed, 0 tests failed out of 1
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244523332 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6244523332). Originally posted by [hamb3r](https://github.com/hamb3r) on 2026-10-18T02:02:49Z. --- @Amoenus Thank you for the thorough SPIR-V specification breakdown (`Sampled=1` vs `Sampled=2`) and the multi-GPU control validation. We aligned with that portable direction: head `ed85bd05c` removes the unnecessary `if (arrayed) module.EmitCapability(spv::CapabilityImageMSArray);` declaration in `FetchShader` directly, avoiding any extra host feature prerequisites. @MarcZX100 Confirmed: executed the focused `agc_driver_native_multisample_depth` test directly on head `ed85bd05c` on physical hardware: - **Host**: AMD Ryzen 7 7700, NVIDIA GeForce RTX 3080 (driver 560.94 / 2588114944), Windows 10 Pro (Build 19045). - **Execution**: 100% passed (12/12 cases checked, 0 unavailable, 0.41s). - **Validation Layer (`VK_LAYER_KHRONOS_validation`)**: clean pass with **0 validation errors / 0 VUIDs**; `VUID-VkShaderModuleCreateInfo-pCode-08740` is completely resolved. <details> <summary><code>ctest -R agc_driver_native_multisample_depth -V</code> output (with Khronos validation layer)</summary> ``` test 608 Start 608: agc_driver_native_multisample_depth 608: Test command: E:\AnyPS5_original\build-portable\tests\agc_driver_native_multisample_depth_tests.exe 608: Working Directory: E:/AnyPS5_original 608: Environment variables: 608: ANYPS5_NO_SHADER_CACHE=1 608: APS5_NO_PIPELINE_JOURNAL=1 608: Selected GPU name=NVIDIA GeForce RTX 3080 vendor=0x10de device=0x2206 driver=2588114944 608: [src/VulkanDevice.cpp:1119 VulkanDevice] Selected GPU name=NVIDIA GeForce RTX 3080 vendor=0x10de device=0x2206 subgroup=32 608: [src/VulkanDevice.cpp:1527 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1 608: [src/VulkanDevice.cpp:1892 VulkanDevice] Vulkan device ready device=0000020f00ae00d0 queue=0000020f003a41d0 family=0 608: Native depth feedback refused through the draw resource path 608: Native depth format=124 samples=2 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=2 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=2: binds over the owner's HTILE left its words alone 608: Native depth format=124 samples=4 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=4 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=4: binds over the owner's HTILE left its words alone 608: Native depth format=124 samples=8 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=8 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=124 samples=8: binds over the owner's HTILE left its words alone 608: Native depth format=126 samples=2 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=2 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=2: binds over the owner's HTILE left its words alone 608: Native depth format=126 samples=4 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=4 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=4: binds over the owner's HTILE left its words alone 608: Native depth format=126 samples=8 clear=0: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=8 clear=1: imported, rasterized twice, sampled and refused conflicts 608: Native depth format=126 samples=8: binds over the owner's HTILE left its words alone 608: Native depth eligibility, guest writes, queued writes, metadata transitions and held views checked 608: Native multisampled depth cases checked=12 unavailable=0 1/1 Test #608: agc_driver_native_multisample_depth ... Passed 0.41 sec The following tests passed: agc_driver_native_multisample_depth 100% tests passed, 0 tests failed out of 1 ``` </details>
MarcZX10 commented 2026-10-18 02:07:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T02:07:30Z.


Thanks for rerunning the current head. The 12/12 focused native-depth cases with no validation-layer errors on the capability-removal head answer the current-head validation request; the earlier host-feature workaround is unnecessary. I have no further request on this capability issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244561380 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6635#issuecomment-6244561380). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T02:07:30Z. --- Thanks for rerunning the current head. The 12/12 focused native-depth cases with no validation-layer errors on the capability-removal head answer the current-head validation request; the earlier host-feature workaround is unnecessary. I have no further request on this capability issue.
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!6635
No description provided.