fix(agc): sample undrawn multisampled Z and D 64 KiB swizzle textures, and Z ones whose HTILE is cleared #6297

Merged
Gashrod1 merged 2 commits from upstream-pr/6297 into main 2026-10-18 21:55:02 +00:00
Gashrod1 commented 2026-10-15 09:52:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Gashrod1 on 2026-10-15T09:52:17Z.


What

createFilled (a 2D MSAA texture sampled before any draw rendered to it) modeled only the S 4 KiB, S 64 KiB and R 64 KiB swizzles, and refused any texture with metadata. DAVE THE DIVER (PPSA19115) samples a 2-sample 1920x1080 Z_X depth texture (format 22, ITERATE_256) at its first frame, before any draw, and stops on current main:

AGC graphics: sampling the 1920x1080 multisampled texture 0x22b790000 of 2 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented
  • Footprint. On RDNA2 the 64 KiB Z, D, S and R swizzles share the block shape for a given element size and sample count, so MultisampledColorBytes and the guarded range now take the block size from the mode (MultisampledBlockLog2). Z_X and D_X surfaces with no metadata then load the value their memory repeats, as S and R already did. S_X is still refused.
  • HTILE. A Z_X texture with metadata reads its whole HTILE (HtileMetadataBytes):
    • every word 0: each tile is cleared with zmin = zmax = 0 (in both the depth-only and the stencil encoding), so the texture is 0.0 whatever its memory holds. This is the title's case: 49,152 zero words.
    • every word expanded ((w & 15) == 15): the memory holds the values, and the existing uniform-memory check applies.
    • anything else is refused, naming the first word that differs (a 1.0 clear is ambiguous between the two encodings without the target's state, so it stays refused).
  • Later HTILE fills. A fill of 0 over the whole HTILE of such a texture applies as a clear to 0.0 at the next sample. A partial fill, or one with another value, makes the next sample refuse.
  • Metadata on D_X, a color swizzle with DCC, stays refused.

CPU and GPU writes into the color memory after the import are handled as for the existing color import; this only widens which textures it accepts.

Tested

Unit and GPU tests, Linux, Intel Alder Lake-P iGPU (Mesa 26.2.4), on 1db84d574:

  • agc_driver_sample_multisample_target, with new cases: uniform Z_X and D_X memory loads its value; Z_X with all-zero HTILE over memory of other values loads 0.0; a partial HTILE fill is refused, then a whole fill of 0 loads 0.0 again; an all-expanded HTILE loads the memory's value; a mixed HTILE is refused; D_X with metadata and S_X are refused.
  • agc_driver_graphics: MultisampledColorBytes of the 4x 100x100 4-byte case for Z_X and D_X.
  • Every agc_driver* test passes except agc_driver_multisample_fill_host_only, which fails the same way on main (vkWaitSemaphoresKHR -4). Under ctest -j6, agc_driver_depth_fast_clear_submit and the two agc_driver_gated_dispatch_capture tests failed once and pass alone.

DAVE THE DIVER (PPSA19115), Windows 11, NVIDIA GeForce RTX 5060 (596.36), libs only changed between runs:

Build Stops at
ab9a47684 + #5496 (008f91501, the merged head) frame 1: the tile mode 4 refusal above
same + this change frame 17: native multisample depth metadata fill transition is not implemented

The frame 17 stop is the D32S8 native depth target sharing this HTILE (2 samples, stencil in HTILE), discussed in #5554. On 1db84d574 this branch builds on Windows (libs and relinker); the title was not run again on it.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (#5496 is merged)
  • Unblocks: PPSA19115 #5963 past its first frame (next stop: D32S8 native multisample depth)
  • GPUs tested: Intel Alder Lake-P iGPU, Mesa 26.2.4, Arch Linux (GPU tests); NVIDIA GeForce RTX 5060, 596.36, Windows 11 (title run)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4871396284 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297). Originally posted by [Gashrod1](https://github.com/Gashrod1) on 2026-10-15T09:52:17Z. --- ### What `createFilled` (a 2D MSAA texture sampled before any draw rendered to it) modeled only the S 4 KiB, S 64 KiB and R 64 KiB swizzles, and refused any texture with metadata. DAVE THE DIVER (PPSA19115) samples a 2-sample 1920x1080 Z_X depth texture (format 22, `ITERATE_256`) at its first frame, before any draw, and stops on current `main`: ``` AGC graphics: sampling the 1920x1080 multisampled texture 0x22b790000 of 2 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented ``` - **Footprint.** On RDNA2 the 64 KiB Z, D, S and R swizzles share the block shape for a given element size and sample count, so `MultisampledColorBytes` and the guarded range now take the block size from the mode (`MultisampledBlockLog2`). Z_X and D_X surfaces with no metadata then load the value their memory repeats, as S and R already did. S_X is still refused. - **HTILE.** A Z_X texture with metadata reads its whole HTILE (`HtileMetadataBytes`): - every word 0: each tile is cleared with zmin = zmax = 0 (in both the depth-only and the stencil encoding), so the texture is 0.0 whatever its memory holds. This is the title's case: 49,152 zero words. - every word expanded (`(w & 15) == 15`): the memory holds the values, and the existing uniform-memory check applies. - anything else is refused, naming the first word that differs (a 1.0 clear is ambiguous between the two encodings without the target's state, so it stays refused). - **Later HTILE fills.** A fill of 0 over the whole HTILE of such a texture applies as a clear to 0.0 at the next sample. A partial fill, or one with another value, makes the next sample refuse. - Metadata on D_X, a color swizzle with DCC, stays refused. CPU and GPU writes into the color memory after the import are handled as for the existing color import; this only widens which textures it accepts. ### Tested **Unit and GPU tests**, Linux, Intel Alder Lake-P iGPU (Mesa 26.2.4), on 1db84d574: - `agc_driver_sample_multisample_target`, with new cases: uniform Z_X and D_X memory loads its value; Z_X with all-zero HTILE over memory of other values loads 0.0; a partial HTILE fill is refused, then a whole fill of 0 loads 0.0 again; an all-expanded HTILE loads the memory's value; a mixed HTILE is refused; D_X with metadata and S_X are refused. - `agc_driver_graphics`: `MultisampledColorBytes` of the 4x 100x100 4-byte case for Z_X and D_X. - Every `agc_driver*` test passes except `agc_driver_multisample_fill_host_only`, which fails the same way on `main` (`vkWaitSemaphoresKHR` -4). Under `ctest -j6`, `agc_driver_depth_fast_clear_submit` and the two `agc_driver_gated_dispatch_capture` tests failed once and pass alone. **DAVE THE DIVER (PPSA19115)**, Windows 11, NVIDIA GeForce RTX 5060 (596.36), libs only changed between runs: | Build | Stops at | |---|---| | ab9a47684 + #5496 (008f91501, the merged head) | frame 1: the `tile mode 4` refusal above | | same + this change | frame 17: `native multisample depth metadata fill transition is not implemented` | The frame 17 stop is the D32S8 native depth target sharing this HTILE (2 samples, stencil in HTILE), discussed in #5554. On 1db84d574 this branch builds on Windows (libs and relinker); the title was not run again on it. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed 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 (#5496 is merged) - [x] Unblocks: PPSA19115 #5963 past its first frame (next stop: D32S8 native multisample depth) - [x] GPUs tested: Intel Alder Lake-P iGPU, Mesa 26.2.4, Arch Linux (GPU tests); NVIDIA GeForce RTX 5060, 596.36, Windows 11 (title run) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 12:18:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:18:18Z.


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

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6628 core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L677
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L292
PR 6973 core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L259-260, L348, L350-351, L372-374
PR 6987 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L22, L508-509, L788
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L259-260, L348, L350-351, L372-374
PR 6989 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L22, L508-509, L788
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L259-260, L348, L350-351, L372-374
PR 6995 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L22, L508-509, L788
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L259-260, L348, L350-351, L372-374
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L22, L508-509, L788
core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp L259-260, L348, L350-351, L372-374
PR 7250 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L22, L788

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

Pull request Shared files not compared
PR 1395 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4650 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6188 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6215 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6312 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6320 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6454 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6472 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6529 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6535 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 6563 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6970 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
PR 6972 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7332 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191862199 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297#issuecomment-6191862199). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:18:18Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6628](https://www.github.com/boykopovar/AnyPS5/pull/6628) | `core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L677](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L677) | | | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L292](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L292) | | | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L259-260](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L259-L260), [L348](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L348), [L350-351](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L350-L351), [L372-374](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L372-L374) | | | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L22](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L22), [L508-509](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L508-L509), [L788](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L788)<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L259-260](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L259-L260), [L348](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L348), [L350-351](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L350-L351), [L372-374](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L372-L374) | | | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L22](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L22), [L508-509](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L508-L509), [L788](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L788)<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L259-260](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L259-L260), [L348](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L348), [L350-351](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L350-L351), [L372-374](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L372-L374) | | | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L22](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L22), [L508-509](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L508-L509), [L788](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L788)<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L259-260](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L259-L260), [L348](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L348), [L350-351](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L350-L351), [L372-374](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L372-L374) | | | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L22](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L22), [L508-509](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L508-L509), [L788](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L788)<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp` [L259-260](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L259-L260), [L348](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L348), [L350-351](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L350-L351), [L372-374](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L372-L374) | | | | [PR 7250](https://www.github.com/boykopovar/AnyPS5/pull/7250) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` [L22](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L22), [L788](https://github.com/boykopovar/AnyPS5/blob/0bc3003f89e6c6448607c3f6c5809e1703f3fef4/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L788) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6215](https://www.github.com/boykopovar/AnyPS5/pull/6215) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6312](https://www.github.com/boykopovar/AnyPS5/pull/6312) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6320](https://www.github.com/boykopovar/AnyPS5/pull/6320) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6454](https://www.github.com/boykopovar/AnyPS5/pull/6454) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6472](https://www.github.com/boykopovar/AnyPS5/pull/6472) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6553](https://www.github.com/boykopovar/AnyPS5/pull/6553) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` |
fma-rc commented 2026-10-15 12:30:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-15T12:30:55Z.


Death Stranding 2 (PPSA02015) hits the case this fixes. On a local stack (current main plus what it needs to get that far: PR 5426, PR 5855, three branches of mine and a local diagnostic switch), a compute shader stops it at about 170 s with sampling the 1920x1080 multisampled texture 0x82e9b40000 of 4 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented.

With this PR cherry-picked on top, that throw is gone and the shader runs; the title goes on to a later stop in another compute shader (PR 6277 gets it past that one too).

Your tests (the six multisample ctests) pass here on an RTX 5080, a Radeon 610M on RADV and lavapipe, with the PR merged onto main 7a22c4302.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192092170 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297#issuecomment-6192092170). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-15T12:30:55Z. --- Death Stranding 2 (PPSA02015) hits the case this fixes. On a local stack (current main plus what it needs to get that far: PR 5426, PR 5855, three branches of mine and a local diagnostic switch), a compute shader stops it at about 170 s with `sampling the 1920x1080 multisampled texture 0x82e9b40000 of 4 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented`. With this PR cherry-picked on top, that throw is gone and the shader runs; the title goes on to a later stop in another compute shader (PR 6277 gets it past that one too). Your tests (the six multisample ctests) pass here on an RTX 5080, a Radeon 610M on RADV and lavapipe, with the PR merged onto main 7a22c4302.
billythemenace2 commented 2026-10-15 16:54:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by billythemenace2 on 2026-10-15T16:54:08Z.


Another title with the same stop: SONIC SUPERSTARS (PPSA06888) samples a 1920x1080 2-sample texture no draw rendered to, in the Z64KBX layout:

AGC graphics: sampling the 1920x1080 multisampled texture 0x269450000 of 2 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented

Setup: Windows 11, MinGW-w64 GCC 15, Release, AMD Radeon RX 5700 XT. A local change with the same block rule as this PR (Z64KBX treated like Standard64KB and RenderTarget in createFilled and MultisampledColorBytes) got the title past it on 14 October, into gameplay. I checked the rule against Addrlib's ComputeThinBlockDimension, which uses only the block size, element bytes and sample count. So I'm not opening a PR of my own for it.

I could not confirm this PR on the title yet. On main ec1193dc3 plus #5865, #5882 and this PR (c63485076), the title now stops earlier, about 30 s in, at the native multisampled depth check from #5496; details on #6300. This PR's own path is not reached in that run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6197524347 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297#issuecomment-6197524347). Originally posted by [billythemenace2](https://github.com/billythemenace2) on 2026-10-15T16:54:08Z. --- Another title with the same stop: SONIC SUPERSTARS (PPSA06888) samples a 1920x1080 2-sample texture no draw rendered to, in the Z64KBX layout: ``` AGC graphics: sampling the 1920x1080 multisampled texture 0x269450000 of 2 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented ``` Setup: Windows 11, MinGW-w64 GCC 15, Release, AMD Radeon RX 5700 XT. A local change with the same block rule as this PR (Z64KBX treated like `Standard64KB` and `RenderTarget` in `createFilled` and `MultisampledColorBytes`) got the title past it on 14 October, into gameplay. I checked the rule against Addrlib's `ComputeThinBlockDimension`, which uses only the block size, element bytes and sample count. So I'm not opening a PR of my own for it. I could not confirm this PR on the title yet. On `main` `ec1193dc3` plus #5865, #5882 and this PR (`c63485076`), the title now stops earlier, about 30 s in, at the native multisampled depth check from #5496; details on #6300. This PR's own path is not reached in that run. AI-assisted (Claude Code).
jotitadev commented 2026-10-15 19:56:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:56:01Z.

Review: COMMENTED


NVIDIA run of the tests. The description has Intel for the tests and NVIDIA only for the title run.

Ubuntu 26.04 (kernel 7.0.0-38), NVIDIA GeForce RTX 3070, driver 595.99.02, GCC 15.2, Release, BUILD_TESTING=ON, ANYPS5_GPU set to the 3070 (the log shows Selected GPU name=NVIDIA GeForce RTX 3070 vendor=0x10de). Head c63485076 merged onto main 44df21632, no conflicts.

  • With only the test changes applied on main, both tests fail as described:
    • agc_driver_graphics: a 4x 100x100 4-byte surface of another 64 KiB swizzle does not span 2x2 64 KiB blocks.
    • agc_driver_sample_multisample_target: sampling the 16x16 multisampled texture ... of 4 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented.
  • With the fix, both pass, 3 of 3 runs.
  • ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display" -j1: 592 of 593 pass, with the same 3 skips as main. The failure is agc_driver_store_over_untracked, which also fails on unmodified main on this machine: 9 of 10 runs with other builds running, all with the result did not reach a block the CPU left alone. It is the same test as #6347 and #6383, which report it on Windows. On an idle machine, main passes 593 of 593.

Not run: any title.

GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38)

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5539090825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297#pullrequestreview-5539090825). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T19:56:01Z. **Review:** COMMENTED --- NVIDIA run of the tests. The description has Intel for the tests and NVIDIA only for the title run. Ubuntu 26.04 (kernel 7.0.0-38), NVIDIA GeForce RTX 3070, driver 595.99.02, GCC 15.2, Release, `BUILD_TESTING=ON`, `ANYPS5_GPU` set to the 3070 (the log shows `Selected GPU name=NVIDIA GeForce RTX 3070 vendor=0x10de`). Head `c63485076` merged onto `main` `44df21632`, no conflicts. - With only the test changes applied on `main`, both tests fail as described: - `agc_driver_graphics`: `a 4x 100x100 4-byte surface of another 64 KiB swizzle does not span 2x2 64 KiB blocks`. - `agc_driver_sample_multisample_target`: `sampling the 16x16 multisampled texture ... of 4 samples, which no draw rendered to and whose tile mode 4 has no modeled multisampled color footprint, is not implemented`. - With the fix, both pass, 3 of 3 runs. - `ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display" -j1`: 592 of 593 pass, with the same 3 skips as `main`. The failure is `agc_driver_store_over_untracked`, which also fails on unmodified `main` on this machine: 9 of 10 runs with other builds running, all with `the result did not reach a block the CPU left alone`. It is the same test as #6347 and #6383, which report it on Windows. On an idle machine, `main` passes 593 of 593. Not run: any title. GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Gashrod1 commented 2026-10-16 08:08:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Gashrod1 on 2026-10-16T08:08:53Z.


@billythemenace2 thanks for checking the Z64KBX rule against Addrlib. Your next stop is answered on #6300. In short, #6423 shows the real refusal, and the D32S8 targets without HTILE stencil metadata are a follow-up.

@jotitadev thanks for the NVIDIA run. agc_driver_store_over_untracked is the known flaky test from #6347 and #6383, and it is unrelated to this change.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6211049168 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6297#issuecomment-6211049168). Originally posted by [Gashrod1](https://github.com/Gashrod1) on 2026-10-16T08:08:53Z. --- @billythemenace2 thanks for checking the Z64KBX rule against Addrlib. Your next stop is answered on #6300. In short, #6423 shows the real refusal, and the D32S8 targets without HTILE stencil metadata are a follow-up. @jotitadev thanks for the NVIDIA run. `agc_driver_store_over_untracked` is the known flaky test from #6347 and #6383, and it is unrelated to this change. AI-assisted: yes
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!6297
No description provided.