fix(shader): sample one-slice volumes through plain, level-zero and explicit-LOD 2D accesses #22583

Open
JJenkx wants to merge 12 commits from upstream-pr/22583 into main
JJenkx commented 2026-11-17 22:31:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-17T22:31:19Z.


What

A pixel shader's 2D image_sample through a one-slice, single-level 3D T# was accepted only in its biased form (image_sample_b, since 89777fcaa114), and only with a normalized point sampler. Any other form stopped with image descriptor is incompatible with the static runtime image interface, because no 3D runtime mode was offered for the access. Spirit of the North: Enhanced Edition (PPSA02306) samples a 1x1x1 placeholder volume this way (T# 10049900 03800000 00000000 a0500f2e 00000000 00700000 00000000 00000000), with implicit LOD and a bilinear sampler (00000092 00fff000 06500000 00000000: clamp-to-last-texel on X, Y and Z, bilinear XY, linear Z, point mips).

  • A new ImageResource::singleMipPlaneSampleCompatible offers the 3D mode for pixel-stage 2D samples with implicit LOD, LOD zero, explicit LOD or bias, in the same 32-bit, direct, unpacked shape as the bias case. The T# check (one slice, mip level zero only) applies to all of them.
  • The sampler check now accepts point or bilinear XY with point or linear Z, point mips. When the sampler filters, it requires weighted-average reduction and a Z address mode that does not read the border (wrap, mirror, clamp-to-last-texel or mirror-once-to-last-texel): the host samples the volume at Z = 0, where linear Z filtering against a border would blend in the border colour. Point sampling keeps the old rule (any Z mode, min/max reduction allowed). The refusal now prints the S#.
  • The bias-only flag is unchanged and still gates FORCE_DEGAMMA on RGBA8_UINT, whose evidence covers the bias form only.
  • The shader disk cache gains the field (FormatVersion 88 to 89).

Why the other forms match the bias form on the hardware

Measured with tools/hw-oracle on an RX 6650 XT (gfx1032, RDNA2, Linux 7.2.14, hsa-rocr 10.1, clang 23.1.5; wave32, IEEE off, DX10 clamp on, denormals preserved, round to nearest even, FP16 overflow off). A 64x64 8_8_8_8_UNORM linear texture, read through a 2D T# (type 9) and through a 64x64x1 3D T# (type 10) with the same words otherwise, DIM 2D:

Instruction 92/00fff000/05500000 (bilinear XY, point Z) PPSA02306's 92/00fff000/06500000 (bilinear XY, linear Z)
image_sample 64 of 64 rows equal 64 of 64
image_sample_lz 64 of 64 64 of 64
image_sample_l 64 of 64 64 of 64
image_sample_b 64 of 64 64 of 64
image_sample_d 64 of 64 64 of 64
image_load 64 of 64 64 of 64

Each column is two runs of 32 rows: at texel centres, where every row returns the expected texel, and 0.3 texels off them, where 28 of 32 rows are blends of neighbouring texels. This is an RDNA2 measurement, not PS5/gfx1013 evidence. image_sample_d is measured but not accepted here.

Tested

Additional Windows NVIDIA qualification (reported 2026-11-24): maskym’s head-matched retest applies 2c31ede18d alone to main 2b09db6f11. Windows 11 26300, i7-12700K, RTX 2070 SUPER, WinLibs GCC 15.2.0, Release; the GPU driver version is not specified. With required Vulkan, shader-cache disabling and validation 1.4.366, both main and the PR pass 2170/2171 AGC/VideoOut/pad checks, with 1966 layer insertions per tree, no missing-layer reports and no VUIDs. The shared failure is agc_driver_store_over_untracked; the contributor reports every test added or changed by this PR passing in that run. These are contributor-reported compatibility results, not an all-green full suite, console measurement or performance result.

Linux 7.2.14, Ryzen 9 7950X, RX 6650 XT, RADV (Mesa 26.2.7), GCC 16.2.1, Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF.

  • agc_driver_image_plane_bias_on_single_level_volume now also draws with image_sample_lz and image_sample (gfx1013 encodings from llvm-mc). With a bilinear clamp-to-last-texel sampler, the volume's pixels equal the plane's for the bias, LOD-zero and implicit forms. A two-slice volume is refused for each form, and the sampler refusals cover border Z with a bilinear sampler, min reduction with a bilinear sampler and unnormalized coordinates. Its existing bias cases are unchanged.
  • ctest -R "single_level_volume|^agc_shader_disk_cache|^agc_shader_memory": 6 of 6 pass.
  • PPSA02306, 120 s runs, Cross every 15 s from 30 s: on main 8a1f57ac1485 it stops at 16 to 58 s on the incompatible image interface. With this PR it passes that point and stops at 16 to 42 s on the same draws' sampler, which in those runs holds other descriptors' words (the volume's own T# words, or a V# such as 938cfd00 00100010 0000002d 0004dfac) that read as an unnormalized sampler. That is still refused, so this PR does not unblock the title.
  • Regression check, 70 s each, Cross every 15 s from 30 s, against each title's earlier runs: PPSA01886 exit 0, 3,936 frames (earlier 3,934 to 3,939); PPSA02664 exit 0, 3,856 frames (earlier 3,789 to 3,869). PPSA02743 crashed at 8 s with a SIGSEGV in the title's own code (app.elf+0x51dd95, a read at 0x1aa80c0c4 during loading); the same crash at the same address happened on 2026-11-14 on an unrelated branch (aaa396c71327), and this title otherwise runs the full 70 s, so it is an intermittent crash of the title's, not of this change.

Independent NVIDIA Linux validation reported by @Doorriiaann: RTX 3070 test results at 84192d7fb9; the contributor reports passing focused checks with no Vulkan validation errors.

Independent validation reported by domx4q on RTX 4090, NVIDIA 620.70.06: 6/6 focused tests passed; the extended one-slice volume fixture failed in both negative-control runs with main’s recompiler files. Khronos validation was loaded for the GPU cases; no VUID errors were reported. These are contributor-reported results.

Independent AMD Windows validation reported by Helldiverr: head 2c31ede18d merged onto main efc6f9c3ba as 0ab8ec5da4, R9700/gfx1201, driver 32.0.31044.16, Windows 11, validation 1.4.363. The contributor reports 22 focused tests passing in each of three runs with no VUIDs, the extended fixture failing on main, and three detected mutations. Point XY with linear Z has no new Vulkan execution coverage in this report; the existing author's hardware-oracle evidence remains the cited support. The shader-memory test was not run because of the host's post-link objcopy failure. Other pending cache-layout changes still need distinct format versions when composed. These are contributor-reported results, not new local runs.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6650 XT, RADV (Mesa 26.2.7), Linux 7.2.14; contributor-reported NVIDIA GeForce RTX 2070 SUPER, driver unspecified, Windows 11 26300 (linked under Tested)
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Improved shader handling for supported sampling of single-level, one-slice volume textures through 2D plane descriptors, including point and bilinear filtering and selected mip-level sampling.
    • Added checks for unsupported sampler configurations, such as unnormalized coordinates, mip interpolation, and certain filtering or addressing modes, to prevent invalid descriptor use.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5366169499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-17T22:31:19Z. --- ### What A pixel shader's 2D `image_sample` through a one-slice, single-level 3D T# was accepted only in its biased form (`image_sample_b`, since `89777fcaa114`), and only with a normalized point sampler. Any other form stopped with `image descriptor is incompatible with the static runtime image interface`, because no 3D runtime mode was offered for the access. Spirit of the North: Enhanced Edition (PPSA02306) samples a 1x1x1 placeholder volume this way (T# `10049900 03800000 00000000 a0500f2e 00000000 00700000 00000000 00000000`), with implicit LOD and a bilinear sampler (`00000092 00fff000 06500000 00000000`: clamp-to-last-texel on X, Y and Z, bilinear XY, linear Z, point mips). - A new `ImageResource::singleMipPlaneSampleCompatible` offers the 3D mode for pixel-stage 2D samples with implicit LOD, LOD zero, explicit LOD or bias, in the same 32-bit, direct, unpacked shape as the bias case. The T# check (one slice, mip level zero only) applies to all of them. - The sampler check now accepts point or bilinear XY with point or linear Z, point mips. When the sampler filters, it requires weighted-average reduction and a Z address mode that does not read the border (wrap, mirror, clamp-to-last-texel or mirror-once-to-last-texel): the host samples the volume at Z = 0, where linear Z filtering against a border would blend in the border colour. Point sampling keeps the old rule (any Z mode, min/max reduction allowed). The refusal now prints the S#. - The bias-only flag is unchanged and still gates FORCE_DEGAMMA on RGBA8_UINT, whose evidence covers the bias form only. - The shader disk cache gains the field (`FormatVersion` 88 to 89). ### Why the other forms match the bias form on the hardware Measured with `tools/hw-oracle` on an RX 6650 XT (gfx1032, RDNA2, Linux 7.2.14, hsa-rocr 10.1, clang 23.1.5; wave32, IEEE off, DX10 clamp on, denormals preserved, round to nearest even, FP16 overflow off). A 64x64 8_8_8_8_UNORM linear texture, read through a 2D T# (type 9) and through a 64x64x1 3D T# (type 10) with the same words otherwise, DIM 2D: | Instruction | `92/00fff000/05500000` (bilinear XY, point Z) | PPSA02306's `92/00fff000/06500000` (bilinear XY, linear Z) | |---|---|---| | `image_sample` | 64 of 64 rows equal | 64 of 64 | | `image_sample_lz` | 64 of 64 | 64 of 64 | | `image_sample_l` | 64 of 64 | 64 of 64 | | `image_sample_b` | 64 of 64 | 64 of 64 | | `image_sample_d` | 64 of 64 | 64 of 64 | | `image_load` | 64 of 64 | 64 of 64 | Each column is two runs of 32 rows: at texel centres, where every row returns the expected texel, and 0.3 texels off them, where 28 of 32 rows are blends of neighbouring texels. This is an RDNA2 measurement, not PS5/gfx1013 evidence. `image_sample_d` is measured but not accepted here. ### Tested **Additional Windows NVIDIA qualification (reported 2026-11-24):** [maskym’s head-matched retest](https://github.com/boykopovar/AnyPS5/pull/22583#issuecomment-7122788291) applies `2c31ede18d` alone to main `2b09db6f11`. Windows 11 26300, i7-12700K, RTX 2070 SUPER, WinLibs GCC 15.2.0, Release; the GPU driver version is not specified. With required Vulkan, shader-cache disabling and validation 1.4.366, both main and the PR pass 2170/2171 AGC/VideoOut/pad checks, with 1966 layer insertions per tree, no missing-layer reports and no VUIDs. The shared failure is `agc_driver_store_over_untracked`; the contributor reports every test added or changed by this PR passing in that run. These are contributor-reported compatibility results, not an all-green full suite, console measurement or performance result. Linux 7.2.14, Ryzen 9 7950X, RX 6650 XT, RADV (Mesa 26.2.7), GCC 16.2.1, Release, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`. - `agc_driver_image_plane_bias_on_single_level_volume` now also draws with `image_sample_lz` and `image_sample` (gfx1013 encodings from `llvm-mc`). With a bilinear clamp-to-last-texel sampler, the volume's pixels equal the plane's for the bias, LOD-zero and implicit forms. A two-slice volume is refused for each form, and the sampler refusals cover border Z with a bilinear sampler, min reduction with a bilinear sampler and unnormalized coordinates. Its existing bias cases are unchanged. - `ctest -R "single_level_volume|^agc_shader_disk_cache|^agc_shader_memory"`: 6 of 6 pass. - PPSA02306, 120 s runs, Cross every 15 s from 30 s: on `main` `8a1f57ac1485` it stops at 16 to 58 s on the incompatible image interface. With this PR it passes that point and stops at 16 to 42 s on the same draws' sampler, which in those runs holds other descriptors' words (the volume's own T# words, or a V# such as `938cfd00 00100010 0000002d 0004dfac`) that read as an unnormalized sampler. That is still refused, so this PR does not unblock the title. - Regression check, 70 s each, Cross every 15 s from 30 s, against each title's earlier runs: PPSA01886 exit 0, 3,936 frames (earlier 3,934 to 3,939); PPSA02664 exit 0, 3,856 frames (earlier 3,789 to 3,869). PPSA02743 crashed at 8 s with a SIGSEGV in the title's own code (`app.elf+0x51dd95`, a read at `0x1aa80c0c4` during loading); the same crash at the same address happened on 2026-11-14 on an unrelated branch (`aaa396c71327`), and this title otherwise runs the full 70 s, so it is an intermittent crash of the title's, not of this change. Independent NVIDIA Linux validation reported by @Doorriiaann: [RTX 3070 test results](https://github.com/boykopovar/AnyPS5/pull/22583#issuecomment-6975648131) at `84192d7fb9`; the contributor reports passing focused checks with no Vulkan validation errors. Independent validation reported by [domx4q on RTX 4090, NVIDIA 620.70.06](https://github.com/boykopovar/AnyPS5/pull/22583#issuecomment-6976384036): 6/6 focused tests passed; the extended one-slice volume fixture failed in both negative-control runs with main’s recompiler files. Khronos validation was loaded for the GPU cases; no VUID errors were reported. These are contributor-reported results. Independent AMD Windows validation reported by [Helldiverr](https://github.com/boykopovar/AnyPS5/pull/22583#issuecomment-7107506089): head `2c31ede18d` merged onto main `efc6f9c3ba` as `0ab8ec5da4`, R9700/gfx1201, driver 32.0.31044.16, Windows 11, validation 1.4.363. The contributor reports 22 focused tests passing in each of three runs with no VUIDs, the extended fixture failing on main, and three detected mutations. Point XY with linear Z has no new Vulkan execution coverage in this report; the existing author's hardware-oracle evidence remains the cited support. The shader-memory test was not run because of the host's post-link objcopy failure. Other pending cache-layout changes still need distinct format versions when composed. These are contributor-reported results, not new local runs. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 6650 XT, RADV (Mesa 26.2.7), Linux 7.2.14; contributor-reported NVIDIA GeForce RTX 2070 SUPER, driver unspecified, Windows 11 26300 (linked under Tested) - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved shader handling for supported sampling of single-level, one-slice volume textures through 2D plane descriptors, including point and bilinear filtering and selected mip-level sampling. * Added checks for unsupported sampler configurations, such as unnormalized coordinates, mip interpolation, and certain filtering or addressing modes, to prevent invalid descriptor use. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
milescoviello commented 2026-11-17 23:11:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-11-17T23:11:26Z.

Review: COMMENTED


I read this against main 9f75bf0be3. I didn't build it. It doesn't overlap my #22534, which touches the cube-face branch of RuntimeImageModes, and git merge-tree of the two heads is clean.

The S# checks read right to me against the gfx10 layout:

  • FILTER_MODE is word 0 bits 29-30, and it must be 0 (blend) once the sample filters.
  • XY_MAG/XY_MIN_FILTER is word 2 bits 20-23, and must be all point or all bilinear (5).
  • Z_FILTER above point counts as filtering.
  • MIP_FILTER must be at most point.
  • CLAMP_Z must not be one of the border modes when filtering. With a one-slice volume, wrap, mirror and the two clamp-to-edge modes all fetch the same slice.

Two questions:

  1. sample_l has no test. The ResourceTracker mask now also accepts RdnaImageSampleFlagLod, but the execution test only runs BiasSample, LevelZeroSample and ImplicitSample. An explicit-LOD case would pin that path, ideally at LOD 0 and at a LOD above 0, which clamps to the only level on both the plane and the volume. Otherwise, leave Lod out of the mask until it's tested.
  2. Anisotropy. MAX_ANISO_RATIO (word 0 bits 9-11) isn't part of the check. For a filtered 2D sample, the plane is sampled with the guest's anisotropy and the 3D view with the same host sampler. I don't know that every driver applies anisotropy to a 3D image the way it does to a 2D one, so the two may not match. Requiring ratio 0 when filtered, or a plane-vs-volume case with an anisotropic sampler, would settle it.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5948193389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-5948193389). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-11-17T23:11:26Z. **Review:** COMMENTED --- I read this against `main` 9f75bf0be3. I didn't build it. It doesn't overlap my #22534, which touches the cube-face branch of `RuntimeImageModes`, and `git merge-tree` of the two heads is clean. The S# checks read right to me against the gfx10 layout: - `FILTER_MODE` is word 0 bits 29-30, and it must be 0 (blend) once the sample filters. - `XY_MAG`/`XY_MIN_FILTER` is word 2 bits 20-23, and must be all point or all bilinear (5). - `Z_FILTER` above point counts as filtering. - `MIP_FILTER` must be at most point. - `CLAMP_Z` must not be one of the border modes when filtering. With a one-slice volume, wrap, mirror and the two clamp-to-edge modes all fetch the same slice. Two questions: 1. **`sample_l` has no test.** The `ResourceTracker` mask now also accepts `RdnaImageSampleFlagLod`, but the execution test only runs `BiasSample`, `LevelZeroSample` and `ImplicitSample`. An explicit-LOD case would pin that path, ideally at LOD 0 and at a LOD above 0, which clamps to the only level on both the plane and the volume. Otherwise, leave `Lod` out of the mask until it's tested. 2. **Anisotropy.** `MAX_ANISO_RATIO` (word 0 bits 9-11) isn't part of the check. For a filtered 2D sample, the plane is sampled with the guest's anisotropy and the 3D view with the same host sampler. I don't know that every driver applies anisotropy to a 3D image the way it does to a 2D one, so the two may not match. Requiring ratio 0 when `filtered`, or a plane-vs-volume case with an anisotropic sampler, would settle it.
MarcZX10 commented 2026-11-19 05:55:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T05:55:07Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected code supports the stated sampling restrictions and cache serialization updates.

What I ran

Reviewed head b95755c4bfe4582107004a3f613c3c16959ba335 using repo_read.py to inspect the prepared diff and targeted source ranges. No tests were run.

Results

Check Result Note
Changed code review passed Core paths inspected
Tests not run No commands executed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full contents of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were excluded as too large; its changed lines were present in the diff but the file was not read. No tests or hardware behavior were independently verified. Read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp (diff only), core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/ShaderDiskCache.hpp, core/shader/recompiler/ShaderDiskCache.cpp (targeted ranges). Also inspected changed lines for core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp, core/libs/prx/libSceAgcDriver/tests/execution/ImagePlaneBiasOnSingleLevelVolume.cpp, and docs/dev/debt/changes/fix-agc-sample-single-level-volume-planes.md in the diff. ShaderMemory.cpp was excluded by the review-folder size rule.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5970002288 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-5970002288). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T05:55:07Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected code supports the stated sampling restrictions and cache serialization updates. ## What I ran Reviewed head `b95755c4bfe4582107004a3f613c3c16959ba335` using `repo_read.py` to inspect the prepared diff and targeted source ranges. No tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Core paths inspected | | Tests | not run | No commands executed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full contents of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` were excluded as too large; its changed lines were present in the diff but the file was not read. No tests or hardware behavior were independently verified. Read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp` (diff only), `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/ShaderDiskCache.hpp`, `core/shader/recompiler/ShaderDiskCache.cpp` (targeted ranges). Also inspected changed lines for `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`, `core/libs/prx/libSceAgcDriver/tests/execution/ImagePlaneBiasOnSingleLevelVolume.cpp`, and `docs/dev/debt/changes/fix-agc-sample-single-level-volume-planes.md` in the diff. `ShaderMemory.cpp` was excluded by the review-folder size rule. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 10:55:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T10:55:31Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the focused behavior and cache updates are supported by the inspected code and reported validation.

What I ran

Reviewed head 2bdb6db72a6eb9bf99116d819241122ac34dd859. Read the prepared description, commits, manifest, and diff; inspected the changed sampling, runtime image mode, sampler validation, cache serialization, and execution-test code at the pinned head. No test commands were run.

Results

Check Result Note
Changed code review passed Core logic and included tests inspected
Programmatic checks not run No commands executed
Reported validation not run Author and contributor results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

ShaderMemory.cpp was excluded from the review folder as too large; only the changed test lines and adjacent context were read through repo_read.py. The rest of that file and the broader repository were not reviewed. Hardware and title runs in the description are reported by the author or contributors and were not reproduced.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5991523382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-5991523382). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T10:55:31Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the focused behavior and cache updates are supported by the inspected code and reported validation. ## What I ran Reviewed head `2bdb6db72a6eb9bf99116d819241122ac34dd859`. Read the prepared description, commits, manifest, and diff; inspected the changed sampling, runtime image mode, sampler validation, cache serialization, and execution-test code at the pinned head. No test commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Core logic and included tests inspected | | Programmatic checks | not run | No commands executed | | Reported validation | not run | Author and contributor results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified `ShaderMemory.cpp` was excluded from the review folder as too large; only the changed test lines and adjacent context were read through `repo_read.py`. The rest of that file and the broader repository were not reviewed. Hardware and title runs in the description are reported by the author or contributors and were not reproduced. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 08:37:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T08:37:05Z.

Review: APPROVED


Reviewed — looks good

The change extends one-slice 3D texture compatibility to additional 2D sampling forms and includes focused regression coverage; I found no verified blocking defect in the code read.

What I ran

  • Reviewed head 17f4707d5df482b9ea633b50c87e0e6618c52a1e using the prepared review bundle and the pinned repository reader.
  • No tests or builds were run in this review.

Results

Check Result Note
Diff and targeted code review passed Sampling eligibility and sampler checks inspected
Automated tests not run Relied on code review and author-reported results

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • ShaderMemory.cpp was excluded from the prepared bundle because it was too large; its changed line is visible in review/diff.patch, but the file’s full text was not read.
  • No tests, builds, or console/GPU behavior were independently run. Reported test and hardware results in the PR description are author or contributor reports.
  • review/files.json was unavailable through the reader, so exclusions are reported from review/manifest.json.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004184401 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-6004184401). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T08:37:05Z. **Review:** APPROVED --- # Reviewed — looks good The change extends one-slice 3D texture compatibility to additional 2D sampling forms and includes focused regression coverage; I found no verified blocking defect in the code read. ## What I ran - Reviewed head `17f4707d5df482b9ea633b50c87e0e6618c52a1e` using the prepared `review` bundle and the pinned repository reader. - No tests or builds were run in this review. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Sampling eligibility and sampler checks inspected | | Automated tests | not run | Relied on code review and author-reported results | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - `ShaderMemory.cpp` was excluded from the prepared bundle because it was too large; its changed line is visible in `review/diff.patch`, but the file’s full text was not read. - No tests, builds, or console/GPU behavior were independently run. Reported test and hardware results in the PR description are author or contributor reports. - `review/files.json` was unavailable through the reader, so exclusions are reported from `review/manifest.json`. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 07:25:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T07:25:47Z.

Review: COMMENTED


Reviewed — no blocking findings

The code changes are coherent with the stated scope, but the review is incomplete because one changed file was not read and no checks were run.

What I ran

  • Reviewed head 2c31ede18da9e859bdcff6bea8ecb5f88b890154 and the prepared diff; no build or tests were run.
  • Read: core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp (changed line), core/libs/prx/libSceAgcDriver/tests/execution/ImagePlaneBiasOnSingleLevelVolume.cpp, core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp, core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/ShaderDiskCache.cpp, core/shader/recompiler/ShaderDiskCache.hpp, and docs/dev/debt/changes/fix-agc-sample-single-level-volume-planes.md.
  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review folder; only the changed lines were read through the repository reader.

Results

Check Result Note
Diff and targeted code review passed No concrete defect found in read code
Build and tests not run No commands executed
All changed files reviewed not run One file was not fully read

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

  • The full contents of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were not read; only its changed region was inspected.
  • Build, automated tests, and PS5/gfx1013 behavior were not verified. The PR description reports author and contributor test results; these were not run during this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011042288 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-6011042288). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T07:25:47Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The code changes are coherent with the stated scope, but the review is incomplete because one changed file was not read and no checks were run. ## What I ran - Reviewed head `2c31ede18da9e859bdcff6bea8ecb5f88b890154` and the prepared diff; no build or tests were run. - Read: `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp` (changed line), `core/libs/prx/libSceAgcDriver/tests/execution/ImagePlaneBiasOnSingleLevelVolume.cpp`, `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp`, `core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/ShaderDiskCache.cpp`, `core/shader/recompiler/ShaderDiskCache.hpp`, and `docs/dev/debt/changes/fix-agc-sample-single-level-volume-planes.md`. - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review folder; only the changed lines were read through the repository reader. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | No concrete defect found in read code | | Build and tests | not run | No commands executed | | All changed files reviewed | not run | One file was not fully read | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified - The full contents of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` were not read; only its changed region was inspected. - Build, automated tests, and PS5/gfx1013 behavior were not verified. The PR description reports author and contributor test results; these were not run during this review. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-26 07:55:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T07:55:11Z.

Review: APPROVED


Reviewed — looks good

The reviewed head is 1e3681625dd188c347ec99a059968fae711ba873; the implementation and changed test coverage inspected support merging, with no blocking defects found.

What I ran

  • Read the prepared description, commit list, manifest, and full diff. No build or test commands were run.
  • Read the changed resource compatibility, runtime image mode, sampler validation, cache serialization, and execution-test code at the pinned head.

Results

Check Result Note
Diff and targeted code review passed Changed behavior inspected
Build and tests not run No commands executed

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • ShaderMemory.cpp was excluded from the prepared full-text files because it exceeded the review folder limit; its changed hunk and surrounding function were inspected in the diff, but the file was not read at the pinned head.
  • No build, test, GPU, or console behavior was independently verified. The reported hardware and compatibility results in the PR description are author or contributor reports.
  • files.json was not available through the reader. The manifest lists 9 changed files: 8 included and 1 excluded. The full text at the head was read for 7 included files; ShaderMemory.cpp was not read. The debt note was present in the diff but not separately read at the head.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6070321086 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-6070321086). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T07:55:11Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed head is `1e3681625dd188c347ec99a059968fae711ba873`; the implementation and changed test coverage inspected support merging, with no blocking defects found. ## What I ran - Read the prepared description, commit list, manifest, and full diff. No build or test commands were run. - Read the changed resource compatibility, runtime image mode, sampler validation, cache serialization, and execution-test code at the pinned head. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Changed behavior inspected | | Build and tests | not run | No commands executed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - `ShaderMemory.cpp` was excluded from the prepared full-text files because it exceeded the review folder limit; its changed hunk and surrounding function were inspected in the diff, but the file was not read at the pinned head. - No build, test, GPU, or console behavior was independently verified. The reported hardware and compatibility results in the PR description are author or contributor reports. - `files.json` was not available through the reader. The manifest lists 9 changed files: 8 included and 1 excluded. The full text at the head was read for 7 included files; `ShaderMemory.cpp` was not read. The debt note was present in the diff but not separately read at the head. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-28 08:27:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T08:27:16Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected changes add guarded 2D sampling modes for one-slice, single-level volumes; I found no concrete blocking defect, but the full review is incomplete because the large ShaderMemory.cpp file was only read around its changed line and no checks were run.

What I ran

Read the prepared review bundle and targeted source ranges using repo_read.py at head 4fb6a12e3dfa51e1fadd051140c2698b1f9b90d6. No tests or build commands were run. The prepared bundle reports contributor-run tests; those results were not independently verified here.

Results

Check Result Note
Changed-code inspection not run Source ranges inspected; one changed file only locally sampled
Tests and build not run No execution environment available

Findings

Blocking

None identified in the inspected ranges.

Non-blocking

None.

Not verified

ShaderMemory.cpp was excluded from the review bundle because it was too large; only lines 13295–13320 around its changed line were read through the pinned reader. No build, automated checks, physical console behavior, or author-reported hardware results were independently verified. Files read: description.md, commits.md, manifest.json, diff.patch, ShaderDiskCache.cpp (test), ShaderMemory.cpp (targeted range only), ImagePlaneBiasOnSingleLevelVolume.cpp, Resources.hpp, DescriptorBindingBuilder.cpp, ResourceMaterializer.cpp, ResourceTracker.cpp, ShaderDiskCache.cpp (recompiler), ShaderDiskCache.hpp, and fix-agc-sample-single-level-volume-planes.md. Excluded from full-text review: ShaderMemory.cpp.

To get this to a good state

Nothing is required. Optional: run the focused tests and build on this head, and inspect the rest of ShaderMemory.cpp if a complete review is needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6096760153 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-6096760153). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-28T08:27:16Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected changes add guarded 2D sampling modes for one-slice, single-level volumes; I found no concrete blocking defect, but the full review is incomplete because the large ShaderMemory.cpp file was only read around its changed line and no checks were run. ## What I ran Read the prepared review bundle and targeted source ranges using `repo_read.py` at head `4fb6a12e3dfa51e1fadd051140c2698b1f9b90d6`. No tests or build commands were run. The prepared bundle reports contributor-run tests; those results were not independently verified here. ## Results | Check | Result | Note | |---|---|---| | Changed-code inspection | not run | Source ranges inspected; one changed file only locally sampled | | Tests and build | not run | No execution environment available | ## Findings ### Blocking None identified in the inspected ranges. ### Non-blocking None. ## Not verified `ShaderMemory.cpp` was excluded from the review bundle because it was too large; only lines 13295–13320 around its changed line were read through the pinned reader. No build, automated checks, physical console behavior, or author-reported hardware results were independently verified. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `ShaderDiskCache.cpp` (test), `ShaderMemory.cpp` (targeted range only), `ImagePlaneBiasOnSingleLevelVolume.cpp`, `Resources.hpp`, `DescriptorBindingBuilder.cpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `ShaderDiskCache.cpp` (recompiler), `ShaderDiskCache.hpp`, and `fix-agc-sample-single-level-volume-planes.md`. Excluded from full-text review: `ShaderMemory.cpp`. ## To get this to a good state Nothing is required. Optional: run the focused tests and build on this head, and inspect the rest of `ShaderMemory.cpp` if a complete review is needed.
ligmaSec commented 2026-12-03 16:11:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:11:19Z.

Review: COMMENTED


The one-slice volume, shader-memory, and scalar-buffer CTests passed on main and this head. Both Vulkan runs used the same Linux lavapipe device with Vulkan required, shader cache disabled, and validation layer 1.4.369. The logs show layer insertion and contain no missing-layer diagnostic or VUID- entry.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173625818 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/22583#pullrequestreview-6173625818). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T16:11:19Z. **Review:** COMMENTED --- The one-slice volume, shader-memory, and scalar-buffer CTests passed on main and this head. Both Vulkan runs used the same Linux lavapipe device with Vulkan required, shader cache disabled, and validation layer 1.4.369. The logs show layer insertion and contain no missing-layer diagnostic or `VUID-` entry. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/22583:upstream-pr/22583'
git switch 'upstream-pr/22583'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/22583'
git switch 'upstream-pr/22583'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/22583'
git switch 'upstream-pr/22583'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/22583'
git switch 'main'
git merge --squash 'upstream-pr/22583'
git switch 'main'
git merge --ff-only 'upstream-pr/22583'
git switch 'main'
git merge 'upstream-pr/22583'
git push origin 'main'
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!22583
No description provided.