feat(agc): sample 1D arrays past maxImageArrayLayers as rows of a 2D image #12246

Merged
B-Howell merged 23 commits from upstream-pr/12246 into main 2026-11-02 13:36:11 +00:00
B-Howell commented 2026-10-28 04:46:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-10-28T04:46:57Z.


What

A sampled 1D-array view with more than maxImageArrayLayers slices throws an image view of more array slices than maxImageArrayLayers is not implemented in ArrayLayerWindow. That limit is 2,048 on the tested NVIDIA GeForce RTX 4080 SUPER. God of War Ragnarök stops there: compute shader 0x10527b8200 samples a linear 1D array 256 texels wide with 5,120 slices, using nine image_sample_lz with DIM = 1D_ARRAY.

Such a view is now bound as a 2D image with each viewed slice stored in two adjacent rows.

  • Recompiler. An image resource whose every access is image_sample_lz or image_sample_l receives the layerRows runtime image mode only after capture encounters a view larger than the device limit. The registered shader is prepared again with that mode, and subsequent oversized or within-limit views reuse the promoted artifact. A shader that has only seen within-limit views keeps its original descriptor interface. This excludes depth comparison, gather, gradients, offsets, loads, stores, queries, tables, 128-bit T#s and packed formats. ResourceMaterializer picks that mode only when the T#'s viewed slice count (last_array - base_array + 1) is more than the device's maxImageArrayLayers. The new SpirvTarget::maxImageArrayLayers carries the device's value and is part of the cache key. The shader keeps u and replaces the layer with v = (2 * NClamp(RoundEven(layer), 0, L - 1) + 1) / (2 * L), where 2L is the image height from OpImageQuerySizeLod.
  • Driver. cachedTexture builds that image from a guest-memory snapshot: W × 2·slices rows, one level, with each slice copied into rows 2i and 2i+1. Storage-image views and native depth surfaces at the same address are not used for it. A depth surface there throws. The descriptor-set revalidation walk looks the texture up the same way.

Semantics and their sources:

  • Layer selection. The layer is rounded half to even and clamped to the view. That is Vulkan's array layer selection, which the existing path for 1D arrays within the limit already gets from the host driver. ImageArrayWindowPastLayerLimit expects the same rule (nearbyint, clamp). How RDNA rounds a slice coordinate that lies exactly halfway is not measured; the debt entry says so. A NaN layer reads slice 0 (GLSL.std.450 NClamp).
  • Filtering never reaches another slice. The sample point lies on the boundary between the two copies of one slice, at v·H = 2r + 1. Linear filtering then takes rows floor(v·H - 0.5) = 2r and 2r + 1, both copies of slice r. Nearest takes floor(v·H) = 2r + 1. Either holds for any coordinate error under half a texel. At most 2 × 8192 = 16,384 rows (13-bit last_array), so fp32 rounding plus OpFDiv's 2.5 ULP (Vulkan SPIR-V precision) stays below 0.01 texel. That is also well inside the minimum subTexelPrecisionBits of 4. Addressing, filtering and borders in u are the sampler's own, unchanged.
  • LOD. image_sample_lz samples level 0 (RDNA2 ISA, MIMG IMAGE_SAMPLE_LZ). Only a view of level 0 alone is accepted, so an explicit LOD selects the same single level as in a 1D array. A view of other levels throws.

What still throws is listed in docs/dev/debt/libSceAgcDriver.md: other uses of such a view, block-compressed and RGBA8-expanded formats, native depth surfaces, and more rows than maxImageDimension2D. RequestSerializer is not changed, so a request replayed with ShaderReplay carries no limit and still throws; the debt entry records that too.

The preceding functional repair candidate 6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a descends from an ordinary two-parent merge 5fbb979d2bf84420dd2c55178d429187580b4634 of published PR head 987fb3206f0315c59a19d9b38a88b76d929d78e3 and frozen main f776fddcffd1cfece220ecdd894371988b164f6a. It retains the registered-allocation effective-window and cache-key corrections, and excludes the separate unmerged #9318 TextureTiling policy changes. The still-rows oracle computes complete registered slices from registeredBytes / layerBytes, checks captured geometry before dispatch, and retains actual first, last and beyond-limit ClampEdge readbacks. Two focused-test CMake follow-ups add Vulkan headers and the three existing Graphics implementation units required to compile and link the ShaderMemory target.

The existing oversized-window regression gains a sample-only row-plus-DCC-clear case with a nonzero base slice. It checks the clear key, actual sampled output and, in cached mode, the sampled-clear counter. This does not add over-limit image_load support: the original mixed-access unsupported boundary remains, and ordinary within-limit sample/load coverage stays separate. Main's pending-clear/recorder behavior and the existing row-mode resource identity/revalidation paths are retained.

Tested

Earlier matched Windows standalone qualification — 2026-10-31

The matched control used frozen main f776fddcffd1cfece220ecdd894371988b164f6a (tree a8c33fd50b81f2e23d28bc7e72e1e3fad5a8eaad). Candidate 6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a (tree 0cc10959b23c25bf3d264f0444adccacdc62b0cd) descends from the ordinary merge of that main with published PR head 987fb3206f0315c59a19d9b38a88b76d929d78e3, followed by the reviewed focused-test CMake dependency change. Relative to frozen main, the candidate diff is 37 files (+1,214/-104). The candidate keeps the owned registered-window and cache-key changes and does not include the unmerged #9318 policy patch.

Windows / WinLibs GCC 15.2.0 r7 / Ninja / Release, using the existing warm b12250a cache and at most two build jobs. The frozen-main arm built agc_shader_memory_tests and agc_driver_image_table_tests; the candidate built those plus agc_driver_image_array_rows_past_layer_limit_tests. All selected CTest names resolved to real compiled executables.

CTest Frozen main Candidate
agc_shader_memory (CPU) 1/1 pass, exit 0 1/1 pass, exit 0
agc_driver_image_table (GPU) 1/1 pass, exit 0 1/1 pass, exit 0
agc_driver_image_array_rows_past_layer_limit (GPU) Not run on main; the reviewed capture API is candidate-only 1/1 pass, exit 0

The three GPU calls ran serially under the existing GPU lock on the NVIDIA GeForce RTX 4080 SUPER. Each process had ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the verified local VK_LAYER_PATH, and VK_LOADER_DEBUG=layer; APS5_NO_TEXTURE_CACHE was unset. Each log positively records Khronos instance and device layer insertion and the selected GPU. There were no VUID- entries, missing requested-layer warnings, skips, or unreleased locks. CPU and GPU scopes are reported separately. This matched-source comparison is focused component evidence, not a game run or full-suite result; its source did not include #9318, whose separate current-pin integration gate is recorded below.

Windows standalone test header qualification — 2026-10-31

The Windows hosted build exposed missing ResourcePlan.hpp include paths in standalone AGC tests. This repair exports the shader recompiler's public include directories through libSceAgcDriver, matching the public headers' dependency without propagating link libraries or compiler options. At commit 6440cbcbd09fea05114afc706b92cace8b997591 (parent 6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a), all six affected standalone targets compiled and linked in the existing b12250a Release/Ninja cache with WinLibs GCC 15.2.0 r7: agc_driver_cmask_fast_clear_tests, agc_shader_fusion_tests, agc_driver_frame_capture_eop_tests, agc_driver_mesh_tests, agc_driver_key_miss_tests, and agc_driver_recorder_tests.

The focused CTest ^agc_driver_cmask_fast_clear$ passed 1/1. It ran serially under the existing GPU lock with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the verified local VK_LAYER_PATH, and VK_LOADER_DEBUG=layer; APS5_NO_TEXTURE_CACHE was unset. The log records Khronos instance and device insertion on the NVIDIA GeForce RTX 4080 SUPER, with no skips, missing-layer warnings, or VUID- entries. The other five targets were compile/link checked only; this is not a complete hosted build or full-suite result.

Current-pin #9318 joint integration gate — 2026-10-31

The deferred integration check used a private two-parent composition with this PR's published repair head 6440cbcbd09fea05114afc706b92cace8b997591 and the then-current #9318 head 8ed6ddb40781f559cf60b855a99c1e794147b42d. The true merge base was 951e5963a4dc4905913931a3c17d87c172ce4624; #9318 remained open with its five-file, +67/-3 topic unchanged. The one ShaderResources.cpp conflict was resolved using the reviewed composition that preserves both the row-mode handling and #9318's complete registered-window behavior. The resulting private integration tree was b0b57dcdd6884d8238f92b4f983f42973ad4615e; it was used only for these checks and was not pushed.

Windows / WinLibs GCC 15.2.0 r7 / Ninja / Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF. The focused cache retained ImageOneDimensionalArray and added ImageArrayRowsPastLayerLimit, compiling the real Rows fixture source rather than its skip stub. The selected targets were agc_driver_graphics_tests and agc_driver_image_array_rows_past_layer_limit_tests.

CTest Scope Result
agc_driver_graphics CPU/mock helper; includes TextureTiling.cpp checks 1/1 pass, exit 0 (15.23s child / 15.40s CTest total)
agc_driver_image_array_rows_past_layer_limit GPU integration and row sampling 1/1 pass, exit 0 (0.78s child / 0.92s CTest total)

The Rows call ran under the serial GPU lock on the NVIDIA GeForce RTX 4080 SUPER with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the verified local VK_LAYER_PATH, and VK_LOADER_DEBUG=layer; APS5_NO_TEXTURE_CACHE was unset. Its log positively records Khronos instance and device insertion, with no VUID- entries, missing requested-layer warnings, skips, or unreleased lock. The graphics helper result is CPU/mock evidence and makes no GPU-layer claim.

This is bounded current-pin integration evidence for the #9318 helper and the #12246 still-rows path. It is not the full #9318 suite, validation of every view-policy case, a console or title run, or evidence that #9318 has landed.

Historical matched Windows focused qualification

Control: frozen main 0836dfdf4fecb1e0326100c490476e15d3a74da5 (tree 11490d4c1cdcc3a116647e4723b000e22b579dd4). Candidate: 987fb3206f0315c59a19d9b38a88b76d929d78e3 (tree 93172b8afc975cec4041ddbfc9f2c1e003276c9b), composed from frozen main and this PR's owned source changes. The candidate excludes the separate unmerged #9318 TextureTiling policy patch. The existing b12250a Release/Ninja cache used WinLibs GCC 15.2.0 r7; exact selectors, source pins, build settings and selected test artifacts are preserved in the qualification evidence.

The paired checks used the common agc_driver_graphics CPU/mock test and agc_driver_image_table GPU test on both arms. The new agc_driver_image_array_rows_past_layer_limit regression uses a capture API absent from main, so it ran only on the candidate.

CTest Frozen main Candidate
agc_driver_graphics (CPU/mock) 1/1 pass, exit 0 1/1 pass, exit 0
agc_driver_image_table (GPU) 1/1 pass, exit 0 1/1 pass, exit 0
agc_driver_image_array_rows_past_layer_limit (GPU) Not applicable: candidate-only capture API 1/1 pass, exit 0

All three GPU calls ran serially under the existing GPU lock on an NVIDIA GeForce RTX 4080 SUPER (0x10de:0x2702) with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; APS5_NO_TEXTURE_CACHE was unset. Each raw log records insertion of the Khronos validation layer at both instance and device levels. No requested-layer-missing diagnostic, skip or VUID- message was present, and the lock was released. A post-run host metadata query reports Windows 11 Pro build 26300 and NVIDIA driver 32.0.16.2101; those version values were not emitted by the test processes.

Child test time and full CTest time are distinct. In main/candidate order, the Graphics child/CTest totals were 14.15/14.88s and 14.23/14.62s; ImageTable totals were 1.35/1.49s and 1.20/1.34s; candidate Rows totals were 0.75/0.88s.

The main build exited 0; its streamed output was not retained as a raw log. The candidate build exited 0 and compiled the real Rows and ImageTable fixtures before linking the selected targets. GCC emitted -Wstringop-overread diagnostics on main and candidate and an unresolved candidate -Wfree-nonheap-object diagnostic in VulkanDevice.cpp/PrebuildGraphicsLibraries. These warnings were retained without suppression and are not claimed to be false positives or inherited.

This is focused component qualification on the recorded Windows host. It is not a title run or a claim of joint validation against the separate unmerged #9318 policy patch.

Historical qualification — separate pins

Published head 1dee304edc78556cb5df1b9c4154f59b72c6ef06 was qualified against frozen main f25279c0ca4cb068370df4baaa46de7b4f4741c7: 15 focused executions across the recorded Windows/Linux configurations. Those component, codec and GPU results retain their original source/toolchain/device limits; they do not qualify candidate 929bf9731f337575bbbc35b40ad0c761d0d0e9c4 or current main. This update's qualification is Windows-only.

Earlier title runs removed the reported oversized-view refusal but produced black frames without reaching gameplay. They establish neither correct rendering nor a performance gain. No new title run is claimed. RDNA halfway-coordinate behavior, other GPU vendors and the remaining unsupported-view/debt cases remain unverified. Historical source-overlap findings likewise retain their reviewed pins; they are not whole-PR integration or runtime clearance.

Checklist

  • Based on current main; no other open PR implements the same functions
    • Current repair qualification source: frozen main f776fddcffd1cfece220ecdd894371988b164f6a (tree a8c33fd50b81f2e23d28bc7e72e1e3fad5a8eaad). The earlier 0836 qualification remains documented above with its original pins. The bounded open-PR source review found no duplicate primary behavior for this implementation.
    • #12250 carries the shared narrow RecompileResult guard; after #12250 lands, this PR rebases to drop its duplicate guard. Historical source findings retain their recorded pins.
  • 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: #9318, #12250 (#9318 must land before #12246; after #12250 lands, #12246 rebases to drop the duplicate guard)
  • Fixes: none
  • Unblocks: PPSA08329 #12128
  • GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 32.0.16.2101 (post-run host query), Windows 11 Pro build 26300 (post-run host query); Khronos validation inserted at instance and device level; VideoOut: n/a
  • AI-assisted: yes

AI-assisted: Claude Code and Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5045358320 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-10-28T04:46:57Z. --- ### What A sampled 1D-array view with more than `maxImageArrayLayers` slices throws `an image view of more array slices than maxImageArrayLayers is not implemented` in `ArrayLayerWindow`. That limit is 2,048 on the tested NVIDIA GeForce RTX 4080 SUPER. God of War Ragnarök stops there: compute shader `0x10527b8200` samples a linear 1D array 256 texels wide with 5,120 slices, using nine `image_sample_lz` with `DIM = 1D_ARRAY`. Such a view is now bound as a 2D image with each viewed slice stored in two adjacent rows. - **Recompiler.** An image resource whose every access is `image_sample_lz` or `image_sample_l` receives the `layerRows` runtime image mode only after capture encounters a view larger than the device limit. The registered shader is prepared again with that mode, and subsequent oversized or within-limit views reuse the promoted artifact. A shader that has only seen within-limit views keeps its original descriptor interface. This excludes depth comparison, gather, gradients, offsets, loads, stores, queries, tables, 128-bit T#s and packed formats. `ResourceMaterializer` picks that mode only when the T#'s viewed slice count (`last_array - base_array + 1`) is more than the device's `maxImageArrayLayers`. The new `SpirvTarget::maxImageArrayLayers` carries the device's value and is part of the cache key. The shader keeps `u` and replaces the layer with `v = (2 * NClamp(RoundEven(layer), 0, L - 1) + 1) / (2 * L)`, where `2L` is the image height from `OpImageQuerySizeLod`. - **Driver.** `cachedTexture` builds that image from a guest-memory snapshot: W × 2·slices rows, one level, with each slice copied into rows 2i and 2i+1. Storage-image views and native depth surfaces at the same address are not used for it. A depth surface there throws. The descriptor-set revalidation walk looks the texture up the same way. Semantics and their sources: - **Layer selection.** The layer is rounded half to even and clamped to the view. That is [Vulkan's array layer selection](https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#textures-layer-selection), which the existing path for 1D arrays within the limit already gets from the host driver. `ImageArrayWindowPastLayerLimit` expects the same rule (`nearbyint`, clamp). How RDNA rounds a slice coordinate that lies exactly halfway is not measured; the debt entry says so. A NaN layer reads slice 0 (GLSL.std.450 `NClamp`). - **Filtering never reaches another slice.** The sample point lies on the boundary between the two copies of one slice, at `v·H = 2r + 1`. [Linear filtering](https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#textures-texel-filtering) then takes rows `floor(v·H - 0.5) = 2r` and `2r + 1`, both copies of slice r. Nearest takes `floor(v·H) = 2r + 1`. Either holds for any coordinate error under half a texel. At most 2 × 8192 = 16,384 rows (13-bit `last_array`), so fp32 rounding plus `OpFDiv`'s 2.5 ULP (Vulkan [SPIR-V precision](https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#spirvenv-precision-operation)) stays below 0.01 texel. That is also well inside the minimum `subTexelPrecisionBits` of 4. Addressing, filtering and borders in `u` are the sampler's own, unchanged. - **LOD.** `image_sample_lz` samples level 0 (RDNA2 ISA, MIMG `IMAGE_SAMPLE_LZ`). Only a view of level 0 alone is accepted, so an explicit LOD selects the same single level as in a 1D array. A view of other levels throws. What still throws is listed in `docs/dev/debt/libSceAgcDriver.md`: other uses of such a view, block-compressed and RGBA8-expanded formats, native depth surfaces, and more rows than `maxImageDimension2D`. `RequestSerializer` is not changed, so a request replayed with `ShaderReplay` carries no limit and still throws; the debt entry records that too. The preceding functional repair candidate `6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a` descends from an ordinary two-parent merge `5fbb979d2bf84420dd2c55178d429187580b4634` of published PR head `987fb3206f0315c59a19d9b38a88b76d929d78e3` and frozen main `f776fddcffd1cfece220ecdd894371988b164f6a`. It retains the registered-allocation effective-window and cache-key corrections, and excludes the separate unmerged #9318 TextureTiling policy changes. The still-rows oracle computes complete registered slices from `registeredBytes / layerBytes`, checks captured geometry before dispatch, and retains actual first, last and beyond-limit ClampEdge readbacks. Two focused-test CMake follow-ups add Vulkan headers and the three existing Graphics implementation units required to compile and link the ShaderMemory target. The existing oversized-window regression gains a sample-only row-plus-DCC-clear case with a nonzero base slice. It checks the clear key, actual sampled output and, in cached mode, the sampled-clear counter. This does not add over-limit `image_load` support: the original mixed-access unsupported boundary remains, and ordinary within-limit sample/load coverage stays separate. Main's pending-clear/recorder behavior and the existing row-mode resource identity/revalidation paths are retained. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> #### Earlier matched Windows standalone qualification — 2026-10-31 The matched control used frozen main `f776fddcffd1cfece220ecdd894371988b164f6a` (tree `a8c33fd50b81f2e23d28bc7e72e1e3fad5a8eaad`). Candidate `6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a` (tree `0cc10959b23c25bf3d264f0444adccacdc62b0cd`) descends from the ordinary merge of that main with published PR head `987fb3206f0315c59a19d9b38a88b76d929d78e3`, followed by the reviewed focused-test CMake dependency change. Relative to frozen main, the candidate diff is 37 files (+1,214/-104). The candidate keeps the owned registered-window and cache-key changes and does not include the unmerged #9318 policy patch. Windows / WinLibs GCC 15.2.0 r7 / Ninja / Release, using the existing warm `b12250a` cache and at most two build jobs. The frozen-main arm built `agc_shader_memory_tests` and `agc_driver_image_table_tests`; the candidate built those plus `agc_driver_image_array_rows_past_layer_limit_tests`. All selected CTest names resolved to real compiled executables. | CTest | Frozen main | Candidate | |---|---|---| | `agc_shader_memory` (CPU) | 1/1 pass, exit 0 | 1/1 pass, exit 0 | | `agc_driver_image_table` (GPU) | 1/1 pass, exit 0 | 1/1 pass, exit 0 | | `agc_driver_image_array_rows_past_layer_limit` (GPU) | Not run on main; the reviewed capture API is candidate-only | 1/1 pass, exit 0 | The three GPU calls ran serially under the existing GPU lock on the NVIDIA GeForce RTX 4080 SUPER. Each process had `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, the verified local `VK_LAYER_PATH`, and `VK_LOADER_DEBUG=layer`; `APS5_NO_TEXTURE_CACHE` was unset. Each log positively records Khronos instance and device layer insertion and the selected GPU. There were no `VUID-` entries, missing requested-layer warnings, skips, or unreleased locks. CPU and GPU scopes are reported separately. This matched-source comparison is focused component evidence, not a game run or full-suite result; its source did not include #9318, whose separate current-pin integration gate is recorded below. #### Windows standalone test header qualification — 2026-10-31 The Windows hosted build exposed missing `ResourcePlan.hpp` include paths in standalone AGC tests. This repair exports the shader recompiler's public include directories through `libSceAgcDriver`, matching the public headers' dependency without propagating link libraries or compiler options. At commit `6440cbcbd09fea05114afc706b92cace8b997591` (parent `6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a`), all six affected standalone targets compiled and linked in the existing `b12250a` Release/Ninja cache with WinLibs GCC 15.2.0 r7: `agc_driver_cmask_fast_clear_tests`, `agc_shader_fusion_tests`, `agc_driver_frame_capture_eop_tests`, `agc_driver_mesh_tests`, `agc_driver_key_miss_tests`, and `agc_driver_recorder_tests`. The focused CTest `^agc_driver_cmask_fast_clear$` passed 1/1. It ran serially under the existing GPU lock with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, the verified local `VK_LAYER_PATH`, and `VK_LOADER_DEBUG=layer`; `APS5_NO_TEXTURE_CACHE` was unset. The log records Khronos instance and device insertion on the NVIDIA GeForce RTX 4080 SUPER, with no skips, missing-layer warnings, or `VUID-` entries. The other five targets were compile/link checked only; this is not a complete hosted build or full-suite result. #### Current-pin #9318 joint integration gate — 2026-10-31 The deferred integration check used a private two-parent composition with this PR's published repair head `6440cbcbd09fea05114afc706b92cace8b997591` and the then-current #9318 head `8ed6ddb40781f559cf60b855a99c1e794147b42d`. The true merge base was `951e5963a4dc4905913931a3c17d87c172ce4624`; #9318 remained open with its five-file, +67/-3 topic unchanged. The one `ShaderResources.cpp` conflict was resolved using the reviewed composition that preserves both the row-mode handling and #9318's complete registered-window behavior. The resulting private integration tree was `b0b57dcdd6884d8238f92b4f983f42973ad4615e`; it was used only for these checks and was not pushed. Windows / WinLibs GCC 15.2.0 r7 / Ninja / Release, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`. The focused cache retained `ImageOneDimensionalArray` and added `ImageArrayRowsPastLayerLimit`, compiling the real Rows fixture source rather than its skip stub. The selected targets were `agc_driver_graphics_tests` and `agc_driver_image_array_rows_past_layer_limit_tests`. | CTest | Scope | Result | |---|---|---| | `agc_driver_graphics` | CPU/mock helper; includes `TextureTiling.cpp` checks | 1/1 pass, exit 0 (15.23s child / 15.40s CTest total) | | `agc_driver_image_array_rows_past_layer_limit` | GPU integration and row sampling | 1/1 pass, exit 0 (0.78s child / 0.92s CTest total) | The Rows call ran under the serial GPU lock on the NVIDIA GeForce RTX 4080 SUPER with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, the verified local `VK_LAYER_PATH`, and `VK_LOADER_DEBUG=layer`; `APS5_NO_TEXTURE_CACHE` was unset. Its log positively records Khronos instance and device insertion, with no `VUID-` entries, missing requested-layer warnings, skips, or unreleased lock. The graphics helper result is CPU/mock evidence and makes no GPU-layer claim. This is bounded current-pin integration evidence for the #9318 helper and the #12246 still-rows path. It is not the full #9318 suite, validation of every view-policy case, a console or title run, or evidence that #9318 has landed. #### Historical matched Windows focused qualification Control: frozen main `0836dfdf4fecb1e0326100c490476e15d3a74da5` (tree `11490d4c1cdcc3a116647e4723b000e22b579dd4`). Candidate: `987fb3206f0315c59a19d9b38a88b76d929d78e3` (tree `93172b8afc975cec4041ddbfc9f2c1e003276c9b`), composed from frozen main and this PR's owned source changes. The candidate excludes the separate unmerged #9318 TextureTiling policy patch. The existing `b12250a` Release/Ninja cache used WinLibs GCC 15.2.0 r7; exact selectors, source pins, build settings and selected test artifacts are preserved in the qualification evidence. The paired checks used the common `agc_driver_graphics` CPU/mock test and `agc_driver_image_table` GPU test on both arms. The new `agc_driver_image_array_rows_past_layer_limit` regression uses a capture API absent from main, so it ran only on the candidate. | CTest | Frozen main | Candidate | |---|---|---| | `agc_driver_graphics` (CPU/mock) | 1/1 pass, exit 0 | 1/1 pass, exit 0 | | `agc_driver_image_table` (GPU) | 1/1 pass, exit 0 | 1/1 pass, exit 0 | | `agc_driver_image_array_rows_past_layer_limit` (GPU) | Not applicable: candidate-only capture API | 1/1 pass, exit 0 | All three GPU calls ran serially under the existing GPU lock on an NVIDIA GeForce RTX 4080 SUPER (`0x10de:0x2702`) with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; `APS5_NO_TEXTURE_CACHE` was unset. Each raw log records insertion of the Khronos validation layer at both instance and device levels. No requested-layer-missing diagnostic, skip or `VUID-` message was present, and the lock was released. A post-run host metadata query reports Windows 11 Pro build 26300 and NVIDIA driver 32.0.16.2101; those version values were not emitted by the test processes. Child test time and full CTest time are distinct. In main/candidate order, the Graphics child/CTest totals were 14.15/14.88s and 14.23/14.62s; ImageTable totals were 1.35/1.49s and 1.20/1.34s; candidate Rows totals were 0.75/0.88s. The main build exited 0; its streamed output was not retained as a raw log. The candidate build exited 0 and compiled the real Rows and ImageTable fixtures before linking the selected targets. GCC emitted `-Wstringop-overread` diagnostics on main and candidate and an unresolved candidate `-Wfree-nonheap-object` diagnostic in `VulkanDevice.cpp`/`PrebuildGraphicsLibraries`. These warnings were retained without suppression and are not claimed to be false positives or inherited. This is focused component qualification on the recorded Windows host. It is not a title run or a claim of joint validation against the separate unmerged #9318 policy patch. #### Historical qualification — separate pins Published head `1dee304edc78556cb5df1b9c4154f59b72c6ef06` was qualified against frozen main `f25279c0ca4cb068370df4baaa46de7b4f4741c7`: 15 focused executions across the recorded Windows/Linux configurations. Those component, codec and GPU results retain their original source/toolchain/device limits; they do not qualify candidate `929bf9731f337575bbbc35b40ad0c761d0d0e9c4` or current main. This update's qualification is Windows-only. Earlier title runs removed the reported oversized-view refusal but produced black frames without reaching gameplay. They establish neither correct rendering nor a performance gain. No new title run is claimed. RDNA halfway-coordinate behavior, other GPU vendors and the remaining unsupported-view/debt cases remain unverified. Historical source-overlap findings likewise retain their reviewed pins; they are not whole-PR integration or runtime clearance. ### 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 - Current repair qualification source: frozen main `f776fddcffd1cfece220ecdd894371988b164f6a` (tree `a8c33fd50b81f2e23d28bc7e72e1e3fad5a8eaad`). The earlier 0836 qualification remains documented above with its original pins. The bounded open-PR source review found no duplicate primary behavior for this implementation. - #12250 carries the shared narrow `RecompileResult` guard; after #12250 lands, this PR rebases to drop its duplicate guard. Historical source findings retain their recorded pins. - [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: #9318, #12250 (#9318 must land before #12246; after #12250 lands, #12246 rebases to drop the duplicate guard) - [x] Fixes: none - [x] Unblocks: PPSA08329 #12128 - [x] GPUs tested: NVIDIA GeForce RTX 4080 SUPER, driver 32.0.16.2101 (post-run host query), Windows 11 Pro build 26300 (post-run host query); Khronos validation inserted at instance and device level; VideoOut: n/a - [x] AI-assisted: yes AI-assisted: Claude Code and Codex.
MarcZX10 commented 2026-10-28 04:53:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:53:03Z.

Review: CHANGES_REQUESTED


The uncompressed 1D-array path is well scoped and has focused GPU evidence, but the runtime mode currently also admits block-compressed descriptors.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5677938811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5677938811). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T04:53:03Z. **Review:** CHANGES_REQUESTED --- The uncompressed 1D-array path is well scoped and has focused GPU evidence, but the runtime mode currently also admits block-compressed descriptors.
MarcZX10 commented 2026-10-28 08:38:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T08:38:46Z.

Review: COMMENTED


The new block-compressed guard resolves my earlier finding, and the added image_sample_l GPU case improves coverage. I’m not approving yet: there is still no boundary test for a view of exactly maxImageArrayLayers slices, and the existing test covers max + 3 (with its base-slice view at max + 1). The runtime-mode generation also adds a layerRows variant for every eligible 1D-array resource, while the description does not quantify the extra binding/compile cost. The GoW run is correctly scoped as inconclusive (43 presents over 422 seconds, black frames, no gameplay); it does not provide the requested texture-build cost. Please address the exact-limit boundary and the outstanding mode-cost evidence raised in the existing review thread. Also refresh onto current main: main has advanced from the PR base ee5e247 to 87b810a and adds fields to the same CacheKey.hpp and Recompiler.hpp files plus an update to the same debt entry.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5679864058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5679864058). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T08:38:46Z. **Review:** COMMENTED --- The new block-compressed guard resolves my earlier finding, and the added `image_sample_l` GPU case improves coverage. I’m not approving yet: there is still no boundary test for a view of exactly `maxImageArrayLayers` slices, and the existing test covers `max + 3` (with its base-slice view at `max + 1`). The runtime-mode generation also adds a `layerRows` variant for every eligible 1D-array resource, while the description does not quantify the extra binding/compile cost. The GoW run is correctly scoped as inconclusive (43 presents over 422 seconds, black frames, no gameplay); it does not provide the requested texture-build cost. Please address the exact-limit boundary and the outstanding mode-cost evidence raised in the existing review thread. Also refresh onto current main: main has advanced from the PR base `ee5e247` to `87b810a` and adds fields to the same `CacheKey.hpp` and `Recompiler.hpp` files plus an update to the same debt entry.
MarcZX10 commented 2026-10-28 09:55:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T09:55:15Z.

Review: CHANGES_REQUESTED


The GPU validation report is useful, and the description now correctly limits the tested behavior. My earlier open questions remain: there is still no exact-maxImageArrayLayers boundary case, and no evidence/analysis of the extra layerRows variant's binding and compile cost. In addition, GitHub currently reports this head as CONFLICTING / DIRTY with main (706d1fa4e363); the last review discussion already identified overlapping cache-key, recompiler and debt edits on the advancing base. Please rebase onto current main, resolve those conflicts, add the exact-limit boundary coverage, and address the mode-cost question. The current hosted Windows/conventions checks do not validate a clean merge of this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5680765548 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5680765548). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T09:55:15Z. **Review:** CHANGES_REQUESTED --- The GPU validation report is useful, and the description now correctly limits the tested behavior. My earlier open questions remain: there is still no exact-`maxImageArrayLayers` boundary case, and no evidence/analysis of the extra `layerRows` variant's binding and compile cost. In addition, GitHub currently reports this head as `CONFLICTING` / `DIRTY` with `main` (`706d1fa4e363`); the last review discussion already identified overlapping cache-key, recompiler and debt edits on the advancing base. Please rebase onto current `main`, resolve those conflicts, add the exact-limit boundary coverage, and address the mode-cost question. The current hosted Windows/conventions checks do not validate a clean merge of this head.
adriadam10 commented 2026-10-28 11:24:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T11:24:12Z.

Review: CHANGES_REQUESTED


Thanks, the seam argument holds and the refusals (block-compressed, depth, other levels) look right. Still open, mostly what @oneandonlydean and @MarcZX10 already asked:

  • Boundary tests. Add a view of exactly maxImageArrayLayers slices (stays a 1D array) and one of maxImageArrayLayers + 1 (rows path); the current test only reaches max + 3 and a base-2 view. The description and the debt entry still say "at least maxImageArrayLayers", while the code (last - base >= max, ResourceMaterializer.cpp:231; ShaderResources.cpp:4864) means more than.
  • Extra mode for every eligible shader. RuntimeImageModes (ResourceMaterializer.cpp:2085) adds a layerRows variant to every 1D-array image sampled only with _lz/_l, even when no view can exceed the limit. State that in the description and either show the extra binding/compile cost on such a shader, or restrict the mode to where it can be needed.
  • Title evidence. 43 presents in 422 s with black frames does not show the rows path is correct or cheap: report rows textures built per frame and their cost (APS5_PROFILE_DRAW), or say it is not yet checked.
  • Conflicts with main (cache key, recompiler, debt, cachedTexture signature vs #9318): please rebase.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5681834711 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5681834711). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T11:24:12Z. **Review:** CHANGES_REQUESTED --- Thanks, the seam argument holds and the refusals (block-compressed, depth, other levels) look right. Still open, mostly what @oneandonlydean and @MarcZX10 already asked: - **Boundary tests.** Add a view of exactly `maxImageArrayLayers` slices (stays a 1D array) and one of `maxImageArrayLayers + 1` (rows path); the current test only reaches `max + 3` and a base-2 view. The description and the debt entry still say "at least `maxImageArrayLayers`", while the code (`last - base >= max`, `ResourceMaterializer.cpp:231`; `ShaderResources.cpp:4864`) means more than. - **Extra mode for every eligible shader.** `RuntimeImageModes` (`ResourceMaterializer.cpp:2085`) adds a `layerRows` variant to every 1D-array image sampled only with `_lz`/`_l`, even when no view can exceed the limit. State that in the description and either show the extra binding/compile cost on such a shader, or restrict the mode to where it can be needed. - **Title evidence.** 43 presents in 422 s with black frames does not show the rows path is correct or cheap: report rows textures built per frame and their cost (`APS5_PROFILE_DRAW`), or say it is not yet checked. - **Conflicts with `main`** (cache key, recompiler, debt, `cachedTexture` signature vs #9318): please rebase.
MarcZX10 commented 2026-10-29 22:50:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:50:38Z.

Review: COMMENTED


Re-checked — new head, approval deferred

The exact-limit and limit-plus-one cases, explicit-LOD coverage, and lazy promotion/reuse checks are now present; I found no standalone blocking defect, but I’m deferring approval until the related #9318 array-window change is integrated and jointly validated.

What I ran

Reviewed head 0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8 on PR base 4c8cff191609bc5f28bf9ee2f93672b531285aa4. I also previewed it against current main fdd1753204a4732e1011539cc9d3bb69f70b27a6; the merge preview was clean. Local environment: Linux; no compiler was invoked.

git diff --check upstream/main...refs/review/pr-12246
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-12246
git merge-tree --write-tree upstream/main refs/review/pr-12246

I read the updated PR description and the exact-head diff, including the resource-mode promotion path, image construction and upload path, SPIR-V coordinate conversion, cache metadata, and the new Vulkan fixture.

Results

Check Result
Patch whitespace Pass; exit 0, no output
Repository conventions Pass
Merge preview against current main Clean
Source and test review No standalone blocking defect found
Hosted checks Conventions, eligibility, and report pass; Windows and relinker jobs are pending; Linux and specialized jobs are skipped
Unedited local command output
git diff --check upstream/main...refs/review/pr-12246
(no output; exit 0)

python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-12246
All conventions checks passed.

git merge-tree --write-tree upstream/main refs/review/pr-12246
a4ef7e3ff630778b10dc19bb99a7e9ae1cc75a8d

The PR description reports Windows 11 / RTX 4080 SUPER results of 6/6 focused image fixtures on this change and 5/6 on main, with the sole main failure being the expected oversized-array refusal; it also reports 2/2 shader-memory and shader-disk-cache checks on both arms. These are author-reported runs, not runs I performed.

Findings

Blocking

None found in the standalone source and test review. I am not requesting changes.

Non-blocking

Approval is deferred pending combined validation with #9318, which remains open at 8ed6ddb40781f559cf60b855a99c1e794147b42d. The two PRs affect the sampled array-view path, and the current description explicitly leaves combined validation pending. This is an integration evidence gap, not a newly identified defect.

Sources

Not verified

I did not build or run tests. The reported Windows/GPU runs above are from the PR description. Current Windows and relinker CI jobs are still pending; Linux and specialized jobs are skipped. Combined #9318 integration, title rendered output, title-level construction cost, other GPUs, and Linux behavior remain unverified.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705991463 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5705991463). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:50:38Z. **Review:** COMMENTED --- # Re-checked — new head, approval deferred The exact-limit and limit-plus-one cases, explicit-LOD coverage, and lazy promotion/reuse checks are now present; I found no standalone blocking defect, but I’m deferring approval until the related #9318 array-window change is integrated and jointly validated. ## What I ran Reviewed head `0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8` on PR base `4c8cff191609bc5f28bf9ee2f93672b531285aa4`. I also previewed it against current `main` `fdd1753204a4732e1011539cc9d3bb69f70b27a6`; the merge preview was clean. Local environment: Linux; no compiler was invoked. ```sh git diff --check upstream/main...refs/review/pr-12246 python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-12246 git merge-tree --write-tree upstream/main refs/review/pr-12246 ``` I read the updated PR description and the exact-head diff, including the resource-mode promotion path, image construction and upload path, SPIR-V coordinate conversion, cache metadata, and the new Vulkan fixture. ## Results | Check | Result | |---|---| | Patch whitespace | Pass; exit 0, no output | | Repository conventions | Pass | | Merge preview against current main | Clean | | Source and test review | No standalone blocking defect found | | Hosted checks | Conventions, eligibility, and report pass; Windows and relinker jobs are pending; Linux and specialized jobs are skipped | <details> <summary>Unedited local command output</summary> ```text git diff --check upstream/main...refs/review/pr-12246 (no output; exit 0) python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-12246 All conventions checks passed. git merge-tree --write-tree upstream/main refs/review/pr-12246 a4ef7e3ff630778b10dc19bb99a7e9ae1cc75a8d ``` </details> The PR description reports Windows 11 / RTX 4080 SUPER results of 6/6 focused image fixtures on this change and 5/6 on main, with the sole main failure being the expected oversized-array refusal; it also reports 2/2 shader-memory and shader-disk-cache checks on both arms. These are author-reported runs, not runs I performed. ## Findings ### Blocking None found in the standalone source and test review. I am not requesting changes. ### Non-blocking Approval is deferred pending combined validation with #9318, which remains open at `8ed6ddb40781f559cf60b855a99c1e794147b42d`. The two PRs affect the sampled array-view path, and the current description explicitly leaves combined validation pending. This is an integration evidence gap, not a newly identified defect. ## Sources - [Layer-row eligibility, oversize detection, and lazy promotion at this head](https://github.com/boykopovar/AnyPS5/blob/0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L203-L211) - [Exact-limit, limit-plus-one, explicit-LOD, and promotion/reuse fixture at this head](https://github.com/boykopovar/AnyPS5/blob/0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8/core/libs/prx/libSceAgcDriver/tests/execution/ImageArrayRowsPastLayerLimit.cpp#L188-L225) ## Not verified I did not build or run tests. The reported Windows/GPU runs above are from the PR description. Current Windows and relinker CI jobs are still pending; Linux and specialized jobs are skipped. Combined #9318 integration, title rendered output, title-level construction cost, other GPUs, and Linux behavior remain unverified.
MarcZX10 commented 2026-10-29 23:15:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:15:06Z.

Review: COMMENTED


Re-checked — current head, integration pending

The exact-head GPU qualification is now documented, but dependent #9318 remains open with an adjacent-range safety issue and no combined current-head validation.

What I ran

Reviewed head 0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8 against PR base 4c8cff191609bc5f28bf9ee2f93672b531285aa4; the merge preview against current main dc38224141e0b6096007b876b4c42fc9144d11b8 is clean. Local checks ran in Linux; no compiler or build was invoked.

git diff --check refs/remotes/upstream/main...refs/review/pr-12246-current
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-12246-current
git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-12246-current
gh pr checks 12246 --repo boykopovar/AnyPS5

Results

Check Result
Diff check Passed; no output
Repository conventions Passed
Merge preview with current main Clean; tree 74c5ff53af7eb0a915e991f24501b798b17027f5
Hosted checks Windows, conventions, labels, report, Ubuntu/Windows relinker and relinker-asan passed on exact head; two macOS relinker jobs were pending; Linux and specialized jobs skipped
Focused GPU qualification Author reports 6/6 candidate image fixtures and 2/2 memory/cache checks versus 5/6 expected main behavior, with zero skips or VUIDs on an RTX 4080 SUPER; not independently run here
Unedited local check output
All conventions checks passed.
74c5ff53af7eb0a915e991f24501b798b17027f5

Findings

Blocking

I found no standalone defect in #12246's reviewed changes. I am withholding approval because this PR consumes #9318's bounded array-window result, and #9318 remains open at 8ed6ddb40781f559cf60b855a99c1e794147b42d with an unresolved adjacent-allocation/incomplete-slice issue. The new image qualification is for #12246 alone; no combined test verifies the dependency path after that issue is fixed.

Non-blocking

The exact-head Windows qualification and baseline comparison are detailed and useful. No title or performance claim is made.

Sources

Not verified

I did not run a local build or tests, a console test, or a combined #9318/#12246 test. The author-reported image fixtures do not exercise the dependency's adjacent-range case.

To get this to a good state

After #9318 resolves the adjacent-range and incomplete-slice behavior and lands in the agreed order, run the relevant combined tests on the resulting #12246 head. I will recheck that exact head and evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706177196 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5706177196). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T23:15:06Z. **Review:** COMMENTED --- # Re-checked — current head, integration pending The exact-head GPU qualification is now documented, but dependent #9318 remains open with an adjacent-range safety issue and no combined current-head validation. ## What I ran Reviewed head `0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8` against PR base `4c8cff191609bc5f28bf9ee2f93672b531285aa4`; the merge preview against current `main` `dc38224141e0b6096007b876b4c42fc9144d11b8` is clean. Local checks ran in Linux; no compiler or build was invoked. ```sh git diff --check refs/remotes/upstream/main...refs/review/pr-12246-current python3 tools/check_conventions.py --base refs/remotes/upstream/main --head refs/review/pr-12246-current git merge-tree --write-tree refs/remotes/upstream/main refs/review/pr-12246-current gh pr checks 12246 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no output | | Repository conventions | Passed | | Merge preview with current `main` | Clean; tree `74c5ff53af7eb0a915e991f24501b798b17027f5` | | Hosted checks | Windows, conventions, labels, report, Ubuntu/Windows relinker and relinker-asan passed on exact head; two macOS relinker jobs were pending; Linux and specialized jobs skipped | | Focused GPU qualification | Author reports 6/6 candidate image fixtures and 2/2 memory/cache checks versus 5/6 expected main behavior, with zero skips or VUIDs on an RTX 4080 SUPER; not independently run here | <details> <summary>Unedited local check output</summary> ```text All conventions checks passed. 74c5ff53af7eb0a915e991f24501b798b17027f5 ``` </details> ## Findings ### Blocking I found no standalone defect in #12246's reviewed changes. I am withholding approval because this PR consumes #9318's bounded array-window result, and #9318 remains open at `8ed6ddb40781f559cf60b855a99c1e794147b42d` with an unresolved adjacent-allocation/incomplete-slice issue. The new image qualification is for #12246 alone; no combined test verifies the dependency path after that issue is fixed. ### Non-blocking The exact-head Windows qualification and baseline comparison are detailed and useful. No title or performance claim is made. ## Sources - [Row-mode resource selection at this head](https://github.com/boykopovar/AnyPS5/blob/0931c89fe926dd0d8a2c9b9a5291d91d60ee37a8/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp) - [Open #9318 adjacent-range finding on its reviewed head](https://github.com/boykopovar/AnyPS5/pull/9318#issuecomment-6482994866) - [Exact-head Windows GPU qualification](https://github.com/boykopovar/AnyPS5/pull/12246#issuecomment-6510199117) ## Not verified I did not run a local build or tests, a console test, or a combined #9318/#12246 test. The author-reported image fixtures do not exercise the dependency's adjacent-range case. ## To get this to a good state After #9318 resolves the adjacent-range and incomplete-slice behavior and lands in the agreed order, run the relevant combined tests on the resulting #12246 head. I will recheck that exact head and evidence.
MarcZX10 commented 2026-10-30 11:25:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:25:04Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The exact-head GCC build report fails because ImageResource is now 104 bytes while its Linux layout assertion still requires 96.

What I ran

Reviewed head 62a6590bd872109275d2bdbd4ea876bba0f30d41 against PR base 1a217758a55c09e817366fa4411daac854eeb3f9; the no-build precheck passed diff and conventions checks. It also found a current-main merge conflict in ShaderDiskCache.cpp. The declared dependency #9318 remains open, so I did not request an immediate rebase. Local environment: Linux x86_64, Python 3.11.2. I did not build locally.

git diff --check 1a217758a55c09e817366fa4411daac854eeb3f9...62a6590bd872109275d2bdbd4ea876bba0f30d41
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12246

Results

Check Result
Diff whitespace Passed; no output
Conventions and PR template Passed
NVIDIA GCC build report for exact head Failed in ShaderDiskCache.cpp: sizeof(ImageResource) is 104, expected 96
Current-main merge preview Conflict in ShaderDiskCache.cpp; #9318 is an open declared dependency whose current head is not included
Local build Not run

The PR adds three fields to ImageResource and updates its field-count assertion and encode/decode routines, but leaves the Linux sizeof(ImageResource) == 96 assertion unchanged. The reported compile error is therefore consistent with the changed structure: the expected size must be updated to match the encoded layout. The precheck's ABI and test-quality helper scripts were absent from its isolated checkout; its stack check independently reported the current-main conflict and outstanding dependency.

Findings

Blocking

  • The PR does not compile with the reported Linux/GCC configuration because the stale ImageResource size assertion rejects the new 104-byte structure. Update the layout assertion and confirm the serializer still covers the added fields, then rerun the Linux build. The reported Windows build does not exercise this Linux-only assertion.

Non-blocking

None.

Sources

Not verified

I did not reproduce the Linux build locally or run the GPU tests. The build error is from the attached CI report. The current-main merge conflict and the unmerged #9318 dependency should be revisited after that dependency lands.

To get this to a good state

Update the ImageResource size assertion for the new layout and provide a passing Linux build. After #9318 merges, resolve the current-main conflict and rerun the relevant checks on the resulting head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711540474 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5711540474). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:25:04Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The exact-head GCC build report fails because `ImageResource` is now 104 bytes while its Linux layout assertion still requires 96. ## What I ran Reviewed head `62a6590bd872109275d2bdbd4ea876bba0f30d41` against PR base `1a217758a55c09e817366fa4411daac854eeb3f9`; the no-build precheck passed diff and conventions checks. It also found a current-main merge conflict in `ShaderDiskCache.cpp`. The declared dependency #9318 remains open, so I did not request an immediate rebase. Local environment: Linux x86_64, Python 3.11.2. I did not build locally. ```sh git diff --check 1a217758a55c09e817366fa4411daac854eeb3f9...62a6590bd872109275d2bdbd4ea876bba0f30d41 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12246 ``` ## Results | Check | Result | |---|---| | Diff whitespace | Passed; no output | | Conventions and PR template | Passed | | NVIDIA GCC build report for exact head | Failed in `ShaderDiskCache.cpp`: `sizeof(ImageResource)` is 104, expected 96 | | Current-main merge preview | Conflict in `ShaderDiskCache.cpp`; #9318 is an open declared dependency whose current head is not included | | Local build | Not run | The PR adds three fields to `ImageResource` and updates its field-count assertion and encode/decode routines, but leaves the Linux `sizeof(ImageResource) == 96` assertion unchanged. The reported compile error is therefore consistent with the changed structure: the expected size must be updated to match the encoded layout. The precheck's ABI and test-quality helper scripts were absent from its isolated checkout; its stack check independently reported the current-main conflict and outstanding dependency. ## Findings ### Blocking - The PR does not compile with the reported Linux/GCC configuration because the stale `ImageResource` size assertion rejects the new 104-byte structure. Update the layout assertion and confirm the serializer still covers the added fields, then rerun the Linux build. The reported Windows build does not exercise this Linux-only assertion. ### Non-blocking None. ## Sources - [The new `ImageResource` fields at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/62a6590bd872109275d2bdbd4ea876bba0f30d41/core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp#L101-L107) - [The unchanged Linux size assertion at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/62a6590bd872109275d2bdbd4ea876bba0f30d41/core/shader/recompiler/ShaderDiskCache.cpp#L87-L100) - [Exact-head GCC build error](https://github.com/boykopovar/AnyPS5/pull/12246#issuecomment-6521340355) ## Not verified I did not reproduce the Linux build locally or run the GPU tests. The build error is from the attached CI report. The current-main merge conflict and the unmerged #9318 dependency should be revisited after that dependency lands. ## To get this to a good state Update the `ImageResource` size assertion for the new layout and provide a passing Linux build. After #9318 merges, resolve the current-main conflict and rerun the relevant checks on the resulting head.
MarcZX10 commented 2026-10-31 23:48:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T23:48:20Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The exact current head fails the Windows changed-test build because the new transitive ResourcePlan.hpp include is unavailable to an existing AGC test target.

What I ran

Reviewed head 6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a against PR base f776fddcffd1cfece220ecdd894371988b164f6a; the merge preview against current main b08c539c505c48341146c705bc72d9b603cdb3a7 was clean. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2, GCC 12.2.0. I ran the repository no-build precheck and inspected the exact-head hosted Windows build log; I did not build locally.

git diff --check f776fddcffd1cfece220ecdd894371988b164f6a...6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12246
gh api repos/boykopovar/AnyPS5/actions/runs/41250228672 --jq '{head_sha,conclusion,status}'
gh run view 41250228672 --repo boykopovar/AnyPS5 --job 124684557254 --log

Results

Check Result
Diff check and conventions Passed
Merge previews Clean against current main for PR #12246, #9318, and #12250; the declared dependency heads are not included in #12246
No-build precheck Completed; relevant source checks passed. Build-dependent C++ checks were not run locally. Optional ABI/test-quality helpers were unavailable in the PR snapshot.
Hosted Windows changed-test build Failed on this exact head while compiling agc_driver_cmask_fast_clear_tests
Other hosted jobs The Windows job failure is the blocking result; the focused GPU qualification in the description is author-reported evidence and does not override this compile failure
Unedited Windows build failure excerpt
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1743542Z FAILED: [code=1] core/libs/prx/libSceAgcDriver/CMakeFiles/agc_driver_cmask_fast_clear_tests.dir/tests/CmaskFastClear.cpp.obj
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1761703Z                  from D:/a/AnyPS5/AnyPS5/core/libs/prx/libSceAgcDriver/tests/CmaskFastClear.cpp:2:
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1763506Z D:/a/AnyPS5/AnyPS5/core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp:10:10: fatal error: IntermediateRepresentation/IrMetadata/ResourcePlan.hpp: No such file or directory
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1765224Z    10 | #include "IntermediateRepresentation/IrMetadata/ResourcePlan.hpp"
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1765987Z       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
windows	Build and run changed guest core/libs tests	2026-10-31T23:28:52.1766316Z compilation terminated.

Findings

Blocking

ShaderResources.hpp now includes IntermediateRepresentation/IrMetadata/ResourcePlan.hpp, and the existing agc_driver_cmask_fast_clear_tests target includes ShaderResources.hpp through its Pipeline.hpp/VulkanDevice.hpp chain. The Windows compile command has -I core/shader/recompiler but lacks -I core/shader/recompiler/IntermediateRepresentation/include, so the new header cannot be resolved. This makes the hosted changed-test build fail before tests run.

Minimal fix: make the IntermediateRepresentation/include directory available to every target that consumes this transitive header (for example through the appropriate shared CMake target include interface), or restructure the include so unrelated AGC tests do not require an unprovided path. Then rerun the Windows changed-test workflow.

Non-blocking: The PR description explicitly declares #9318 and #12250 as dependencies; its current focused qualification does not claim joint validation with unmerged #9318. Reassess that integration when the dependency lands.

Sources

Not verified

  • Local build or execution of C++ tests; local builds are excluded from the initial review workflow.
  • Combined behavior with #9318, which remains an unmerged declared dependency.
  • Physical-console gameplay or other GPU vendors.

To get this to a good state

Fix the missing include path and rerun the Windows changed-test workflow on the new head. I will recheck the same build result and affected source paths after the update.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725498740 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12246#pullrequestreview-5725498740). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T23:48:20Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The exact current head fails the Windows changed-test build because the new transitive `ResourcePlan.hpp` include is unavailable to an existing AGC test target. ## What I ran Reviewed head `6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a` against PR base `f776fddcffd1cfece220ecdd894371988b164f6a`; the merge preview against current `main` `b08c539c505c48341146c705bc72d9b603cdb3a7` was clean. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2, GCC 12.2.0. I ran the repository no-build precheck and inspected the exact-head hosted Windows build log; I did not build locally. ```sh git diff --check f776fddcffd1cfece220ecdd894371988b164f6a...6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12246 gh api repos/boykopovar/AnyPS5/actions/runs/41250228672 --jq '{head_sha,conclusion,status}' gh run view 41250228672 --repo boykopovar/AnyPS5 --job 124684557254 --log ``` ## Results | Check | Result | |---|---| | Diff check and conventions | Passed | | Merge previews | Clean against current `main` for PR #12246, #9318, and #12250; the declared dependency heads are not included in #12246 | | No-build precheck | Completed; relevant source checks passed. Build-dependent C++ checks were not run locally. Optional ABI/test-quality helpers were unavailable in the PR snapshot. | | Hosted Windows changed-test build | Failed on this exact head while compiling `agc_driver_cmask_fast_clear_tests` | | Other hosted jobs | The Windows job failure is the blocking result; the focused GPU qualification in the description is author-reported evidence and does not override this compile failure | <details><summary>Unedited Windows build failure excerpt</summary> ```text windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1743542Z FAILED: [code=1] core/libs/prx/libSceAgcDriver/CMakeFiles/agc_driver_cmask_fast_clear_tests.dir/tests/CmaskFastClear.cpp.obj windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1761703Z from D:/a/AnyPS5/AnyPS5/core/libs/prx/libSceAgcDriver/tests/CmaskFastClear.cpp:2: windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1763506Z D:/a/AnyPS5/AnyPS5/core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp:10:10: fatal error: IntermediateRepresentation/IrMetadata/ResourcePlan.hpp: No such file or directory windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1765224Z 10 | #include "IntermediateRepresentation/IrMetadata/ResourcePlan.hpp" windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1765987Z | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ windows Build and run changed guest core/libs tests 2026-10-31T23:28:52.1766316Z compilation terminated. ``` </details> ## Findings **Blocking** `ShaderResources.hpp` now includes `IntermediateRepresentation/IrMetadata/ResourcePlan.hpp`, and the existing `agc_driver_cmask_fast_clear_tests` target includes `ShaderResources.hpp` through its `Pipeline.hpp`/`VulkanDevice.hpp` chain. The Windows compile command has `-I core/shader/recompiler` but lacks `-I core/shader/recompiler/IntermediateRepresentation/include`, so the new header cannot be resolved. This makes the hosted changed-test build fail before tests run. Minimal fix: make the `IntermediateRepresentation/include` directory available to every target that consumes this transitive header (for example through the appropriate shared CMake target include interface), or restructure the include so unrelated AGC tests do not require an unprovided path. Then rerun the Windows changed-test workflow. **Non-blocking:** The PR description explicitly declares #9318 and #12250 as dependencies; its current focused qualification does not claim joint validation with unmerged #9318. Reassess that integration when the dependency lands. ## Sources - [New transitive include at reviewed head](https://github.com/boykopovar/AnyPS5/blob/6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a/core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp#L9-L11) - [ResourcePlan header at reviewed head](https://github.com/boykopovar/AnyPS5/blob/6adb491cd99bb8ff4411b1bbbab15ac82b5cef5a/core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp) - [Exact-head hosted Windows job and log](https://github.com/boykopovar/AnyPS5/actions/runs/41250228672/job/124684557254) - [Declared dependency and qualification limits](https://github.com/boykopovar/AnyPS5/pull/12246) ## Not verified - Local build or execution of C++ tests; local builds are excluded from the initial review workflow. - Combined behavior with #9318, which remains an unmerged declared dependency. - Physical-console gameplay or other GPU vendors. ## To get this to a good state Fix the missing include path and rerun the Windows changed-test workflow on the new head. I will recheck the same build result and affected source paths after the update.
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!12246
No description provided.