feat(agc): model the color memory of PS4 multisampled 2D surfaces #25802

Merged
adam25136 merged 2 commits from upstream-pr/25802 into main 2026-11-27 09:37:24 +00:00
adam25136 commented 2026-11-22 17:59:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adam25136 on 2026-11-22T17:59:26Z.


What

AnyPS5 gives no PS4 tile mode a multisampled color footprint: MultisampledColorBytes (MultisampleTarget.cpp) returns 0 for every PS4 target, and the paths that need the range a multisampled target's color memory covers refuse it:

  • the first draw into a PS4 multisampled color target with no CMASK throws initial multisample color footprint is not implemented (PrepareMultisampleTargetForDraw_nid_no_patch);
  • a fill that covers such a target's base is refused at the target's next use (... of a multisampled target whose footprint is not modeled), and one that starts inside it is ignored;
  • createFilled, which builds the host target of a multisampled texture no draw rendered to from its T# and its guest memory, takes only PS5 tile modes. With #23672, which lays out PS4 multisampled color textures in the 2D tile modes, a PS4 one throws ... which no draw rendered to and whose tile mode 18 has no modeled multisampled color footprint, is not implemented (18 is AnyPS5's kGcnThin2D, GCN tile index 14); without it, DescribeSurface throws first (PS4 multisampled textures outside the depth tile modes are not implemented).

This PR, for the PS4 thin and display 2D modes:

  • MultisampledColorBytes returns the padded one-sample size times the stored fragments (bytes times its fragments): the slice size addrlib gives a macro-tiled surface, padded pitch times padded height times bytes per element times samples (egbaddrlib.cpp L619-L620, ComputeSurfaceInfoMacroTiled), with fragments in place of samples for EQAA (L95-L98), and the range guardedColorBytes already guards. So the first draw into a PS4 multisampled target with no CMASK starts from the value its color memory repeats (other contents throw nonuniform initial multisample color tiling is not implemented); a fill over the whole of it clears it, and an exact uniform one is absorbed by the host target instead of being stored to guest memory, as for a PS5 target; a fill over part of it, from its base or from inside it, is refused at its next use (partly covers). PS4 1D and linear targets keep no footprint: #23672 lays out PS4 multisampled color only in the 2D modes, and addrlib's linear path notes "No linear MSAA on real H/W" (egbaddrlib.cpp L211, Mesa 25.0.7's addrlib).
  • createFilled takes those two modes and sizes the surface with DescribeSurface, that is with #23672's layout. Samples interleave inside each micro tile there, so samples times one padded sample is the size, not the layout. As for a PS5 texture, memory that repeats one 32-bit value gives every sample that value. Other PS4 contents are refused in createFilled itself, with the range: whose PS4 color memory 0x...+0x... does not repeat one 32-bit value.
  • A PS4 target over a texture's host target it does not match (size, format or samples) is refused when a draw, a CB clear pass, a resolve or a sample-order read would create it (requireNoTextureHost, called from acquire and from PrepareMultisampleTargetForDraw_nid_no_patch): the WxH PS4 multisampled color target 0x... over the WxH host target a texture built at 0x..., which it does not match in size, format or samples, is not implemented. A PS4 T# gives the texture's size and a PS4 CB its padded pitch and height, which differ whenever the texture is padded (inFAMOUS's texture is 1600x1800 in a surface padded to 1664x1856): without this, a fast-cleared draw would make a second host target over the same memory, and a later read through the T# would get the texture's old samples. A target that matches still reuses the texture's host target.
  • Not changed: non-uniform PS4 contents; PS4 1D, linear and PRT multisampled color; and T# word 6, which AnyPS5 reads for no PS4 texture: its PS4 Pro alt_tile_mode and compression_en bits (shadPS4 resource.h), so an alternate-tiled or compressed surface is sized and checked over the base layout's footprint (#23672's alternate tiling entry).
  • Technical debt: a fragment adds PS4 multisampled color memory (the range and what uses it, the absorbed fills, that an undrawn PS4 surface holding its samples in its memory is inferred, word 6, the refused target) and changes Multisampled texture no draw rendered to (PS4 thin and display 2D textures, non-uniform PS4 memory throws).

It depends on #23672, whose DescribeSurface layout createFilled uses; this branch carries #23672's commit, so its diff includes that change until #23672 is merged.

Tested

Windows 10 Pro 22H2 (19045), NVIDIA GeForce RTX 5080 (driver 621.14), WinLibs GCC 15.2.0 (r7), Release. The selected tests and the validation-layer runs ran on this change on main 35067f305f; the breaks and the inFAMOUS starts on it before a rebase, on 9facbf1309; it is now on 11f95ea8f6. None of the main commits in between change a file this PR changes, and its changed lines are the same.

  • agc_driver_gcn_multisample_color_fill (new): it calls the driver functions ShaderResources.cpp calls for a multisampled T#, MultisampleTargetFirstSample (a 2D image binding) and, once, MultisampleTargetTexture (a multisampled view), and reads every sample back. It does not dispatch a PS4 compute shader: on main the recompiler offers a PS4 image load no 2D MSAA mode (our #21961 adds one). The texture cases are PS4 T#s of 2-sample 32-bit float textures, thin 2D unless named:
    • 128x64, one macro tile: zeroed memory holds 0 in every sample and memory that repeats 1.5 over the footprint holds 1.5; a second value in the second word or in the last word of the footprint is refused, one just past it is not; a display 2D texture whose memory repeats 1.5 holds 1.5;
    • 100x60 of pitch 512, padded past its 60 rows: memory that repeats 1.5 over the padded footprint holds 1.5, a second value in its last word is refused and one just past it is not; a fill of 1.5 over exactly that footprint is absorbed by the host target and one over half of it is not;
    • first draws into a 128x64 2-sample thin 2D CB target (PrepareMultisampleTargetForDraw_nid_no_patch): over zeroed memory and over memory that repeats 1.5 every sample starts from that value, and a second value halfway through its color memory is refused;
    • after a 128x64 texture of the same memory was read, the draw reuses its host target; after a 120x60 texture of pitch 128 was read, a draw into the 128x64 target is refused, with FAST_CLEAR and without, and so is materializing its fast clear with no draw (MaterializeMultisampleTargetClear).
  • agc_gcn_color_target (new MultisampledFootprintsAndFills): a 1D-tiled 4x target has no footprint; the color memory of thin 2D 2x and 4x, display 2D 2x and thin 2D 4-sample 2-fragment targets is 2, 4, 2 and 2 times the size CB_COLOR_SLICE gives; a fill of all of a 4x target is taken as a clear, and fills of its first quarter or from inside it are refused (partly covers).
  • Both pass, and each of 11 deliberate breaks fails at least one of them: the thin or the display 2D mode not mapped, the footprint not computed (as on main), the per-sample size taken as the whole surface, halved, or from ColorTargetLayout of the T# size, the footprint one sample instead of one per fragment, the non-uniform PS4 refusal removed, the refusal over a texture's host target removed from the draw preparation or from acquire, and the footprint given to every PS4 tile mode. With main's MultisampledColorBytes, the first-draw case throws initial multisample color footprint is not implemented.
  • The 3,418 tests tools/select_tests.py selects for the 8 changed files (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1), on this branch and on main 35067f305f (3,417, without the new test): agc_driver_bda_device fails on both; agc_driver_frame_replay_rewind_store and pad_timeline failed only on the branch, and in 10 reruns each passed 9 times on the branch and 9 and 8 times on main; the same 24 tests are skipped on both.
  • With VK_LAYER_KHRONOS_validation 1.4.367 (VK_ADD_LAYER_PATH=<the layer's folder> VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer VK_LOADER_LAYERS_DISABLE=~implicit~ ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1), the tests matching gcn|Gcn|multisample|msaa|color_target|agc_driver_graphics$|agc_driver_recorder$|alpha_to_coverage, ctest -V: 84 on the branch and 83 on main, all pass; the logs have 82 and 81 Insert instance layer lines (tests that open no Vulkan instance, such as agc_gcn_color_target, have none), no was not found and no VUID.
  • inFAMOUS Second Son (CUSA00223 01.07, my own dump; it runs in PS4 Pro mode): eboot, libc.prx and libSceFios2.prx unwrapped with our local PS4 variant of tools/unwrap_self.py, converted with each build's relinker (--windows --registry --trace-imports), two starts of up to 60 s per build, no input. Both builds are main 9facbf1309 with #18184, #21961, #25557, #25598 and #23672 merged locally (#23672 and #25557 conflict in TextureTiling.cpp; resolved by keeping #25557's depth tile split and #23672's color tile split) and one local relinker change in no PR: a title that needs libSceGnmDriver.prx also loads libSceGnmDriverForNeoMode.prx, so the Neo-mode GNM exports it imports resolve (see #17581).
    • without this change: both starts stop after 21.9 s and 21.5 s, after presenting a frame, in compute shader 0x2f2fb2100 with sampling the 1600x1800 multisampled texture 0x3075c0000 of 2 samples, which no draw rendered to and whose tile mode 18 has no modeled multisampled color footprint, is not implemented;
    • with it: both get past that shader and instead stop after 21.6 s and 21.5 s at a draw with a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, ..., which is outside this PR. The time to the stop is about the same; what changes is where they stop.
    • Builds of the same stack with local debug prints (on main 7eb79b0c48, and for the T# on 9facbf1309) showed that no draw binds a multisampled PS4 color target before that stop, that the texture's 23.6 MiB footprint (pitch 1664, height padded to 1856, 4 bytes, 2 samples) and the 8 MiB after it hold only zeros, so the zeros reach 2,486 rows at that pitch, past any padding of 1,800 rows, and that its T# is 03075c00 10400000 71c1c63f e4e10204 00cfe000 00000000 01000000 00000000: 1600x1800 of pitch 1664, 2 samples, tile index 14, a 32-bit format, and word 6 0x01000000, so alt_tile_mode is set and compression_en is clear. The texture is alternate-tiled, like the color targets #23672's entry records for this title, and not compressed, so its zeros are its samples whichever of the two footprints applies.
  • python tools/check_conventions.py --base origin/main with this title and description: all checks passed.
  • python tools/pr_overlap.py --branch feat/gcn-msaa-color-fill (2,372 open pull requests probed): 2 that merge with main conflict with this branch on nearby lines: #22514 (PS4 color targets in the PRT tile modes) in tests/GcnColorTarget.cpp, next to the new test function, and my #25557 in TextureTiling.cpp, the conflict it has with #23672; #23672 itself, whose commit this branch carries, is listed for the new debt fragment both add. Of the 13 that conflict with main and were not compared, 2 change lines inside this branch's hunks: #6808 (it adds the PS5 Z_X and D_X cases to createFilled, which main already has) and #20786 (PS4 2D thick volumes, in #23672's TextureTiling.cpp hunk). None of them sizes PS4 multisampled color.

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: #23672
  • Fixes: none
  • Unblocks: CUSA00223 #8214
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 621.14, Windows 10 22H2
  • AI-assisted: yes

AI-assisted: Claude Code found the cause, wrote the change and its tests, ran the tests and the inFAMOUS starts, and drafted this description; separate review agents checked it.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5441739271 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/25802). Originally posted by [adam25136](https://github.com/adam25136) on 2026-11-22T17:59:26Z. --- ### What AnyPS5 gives no PS4 tile mode a multisampled color footprint: `MultisampledColorBytes` (`MultisampleTarget.cpp`) returns 0 for every PS4 target, and the paths that need the range a multisampled target's color memory covers refuse it: - the first draw into a PS4 multisampled color target with no CMASK throws `initial multisample color footprint is not implemented` (`PrepareMultisampleTargetForDraw_nid_no_patch`); - a fill that covers such a target's base is refused at the target's next use (`... of a multisampled target whose footprint is not modeled`), and one that starts inside it is ignored; - `createFilled`, which builds the host target of a multisampled texture no draw rendered to from its T# and its guest memory, takes only PS5 tile modes. With #23672, which lays out PS4 multisampled color textures in the 2D tile modes, a PS4 one throws `... which no draw rendered to and whose tile mode 18 has no modeled multisampled color footprint, is not implemented` (18 is AnyPS5's `kGcnThin2D`, GCN tile index 14); without it, `DescribeSurface` throws first (`PS4 multisampled textures outside the depth tile modes are not implemented`). This PR, for the PS4 thin and display 2D modes: - **`MultisampledColorBytes`** returns the padded one-sample size times the stored fragments (`bytes` times its fragments): the slice size addrlib gives a macro-tiled surface, padded pitch times padded height times bytes per element times samples ([egbaddrlib.cpp L619-L620](https://github.com/openbsd/xenocara/blob/483f148565a7/lib/mesa/src/amd/addrlib/src/r800/egbaddrlib.cpp#L619-L620), `ComputeSurfaceInfoMacroTiled`), with fragments in place of samples for EQAA ([L95-L98](https://github.com/openbsd/xenocara/blob/483f148565a7/lib/mesa/src/amd/addrlib/src/r800/egbaddrlib.cpp#L95-L98)), and the range `guardedColorBytes` already guards. So the first draw into a PS4 multisampled target with no CMASK starts from the value its color memory repeats (other contents throw `nonuniform initial multisample color tiling is not implemented`); a fill over the whole of it clears it, and an exact uniform one is absorbed by the host target instead of being stored to guest memory, as for a PS5 target; a fill over part of it, from its base or from inside it, is refused at its next use (`partly covers`). PS4 1D and linear targets keep no footprint: #23672 lays out PS4 multisampled color only in the 2D modes, and addrlib's linear path notes "No linear MSAA on real H/W" ([egbaddrlib.cpp L211](https://github.com/openbsd/xenocara/blob/483f148565a7/lib/mesa/src/amd/addrlib/src/r800/egbaddrlib.cpp#L211), Mesa 25.0.7's addrlib). - **`createFilled`** takes those two modes and sizes the surface with `DescribeSurface`, that is with #23672's layout. Samples interleave inside each micro tile there, so samples times one padded sample is the size, not the layout. As for a PS5 texture, memory that repeats one 32-bit value gives every sample that value. Other PS4 contents are refused in `createFilled` itself, with the range: `whose PS4 color memory 0x...+0x... does not repeat one 32-bit value`. - **A PS4 target over a texture's host target it does not match** (size, format or samples) is refused when a draw, a CB clear pass, a resolve or a sample-order read would create it (`requireNoTextureHost`, called from `acquire` and from `PrepareMultisampleTargetForDraw_nid_no_patch`): `the WxH PS4 multisampled color target 0x... over the WxH host target a texture built at 0x..., which it does not match in size, format or samples, is not implemented`. A PS4 T# gives the texture's size and a PS4 CB its padded pitch and height, which differ whenever the texture is padded (inFAMOUS's texture is 1600x1800 in a surface padded to 1664x1856): without this, a fast-cleared draw would make a second host target over the same memory, and a later read through the T# would get the texture's old samples. A target that matches still reuses the texture's host target. - **Not changed:** non-uniform PS4 contents; PS4 1D, linear and PRT multisampled color; and T# word 6, which AnyPS5 reads for no PS4 texture: its PS4 Pro `alt_tile_mode` and `compression_en` bits ([shadPS4 resource.h](https://github.com/shadps4-emu/shadPS4/blob/ee0364a9c17a/src/video_core/amdgpu/resource.h)), so an alternate-tiled or compressed surface is sized and checked over the base layout's footprint (#23672's alternate tiling entry). - **Technical debt:** a fragment adds `PS4 multisampled color memory` (the range and what uses it, the absorbed fills, that an undrawn PS4 surface holding its samples in its memory is inferred, word 6, the refused target) and changes `Multisampled texture no draw rendered to` (PS4 thin and display 2D textures, non-uniform PS4 memory throws). It depends on #23672, whose `DescribeSurface` layout `createFilled` uses; this branch carries #23672's commit, so its diff includes that change until #23672 is merged. ### 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. --> Windows 10 Pro 22H2 (19045), NVIDIA GeForce RTX 5080 (driver 621.14), WinLibs GCC 15.2.0 (r7), Release. The selected tests and the validation-layer runs ran on this change on `main` `35067f305f`; the breaks and the inFAMOUS starts on it before a rebase, on `9facbf1309`; it is now on `11f95ea8f6`. None of the `main` commits in between change a file this PR changes, and its changed lines are the same. - **`agc_driver_gcn_multisample_color_fill`** (new): it calls the driver functions `ShaderResources.cpp` calls for a multisampled T#, `MultisampleTargetFirstSample` (a 2D image binding) and, once, `MultisampleTargetTexture` (a multisampled view), and reads every sample back. It does not dispatch a PS4 compute shader: on `main` the recompiler offers a PS4 image load no 2D MSAA mode (our #21961 adds one). The texture cases are PS4 T#s of 2-sample 32-bit float textures, thin 2D unless named: - 128x64, one macro tile: zeroed memory holds 0 in every sample and memory that repeats 1.5 over the footprint holds 1.5; a second value in the second word or in the last word of the footprint is refused, one just past it is not; a display 2D texture whose memory repeats 1.5 holds 1.5; - 100x60 of pitch 512, padded past its 60 rows: memory that repeats 1.5 over the padded footprint holds 1.5, a second value in its last word is refused and one just past it is not; a fill of 1.5 over exactly that footprint is absorbed by the host target and one over half of it is not; - first draws into a 128x64 2-sample thin 2D CB target (`PrepareMultisampleTargetForDraw_nid_no_patch`): over zeroed memory and over memory that repeats 1.5 every sample starts from that value, and a second value halfway through its color memory is refused; - after a 128x64 texture of the same memory was read, the draw reuses its host target; after a 120x60 texture of pitch 128 was read, a draw into the 128x64 target is refused, with FAST_CLEAR and without, and so is materializing its fast clear with no draw (`MaterializeMultisampleTargetClear`). - **`agc_gcn_color_target`** (new `MultisampledFootprintsAndFills`): a 1D-tiled 4x target has no footprint; the color memory of thin 2D 2x and 4x, display 2D 2x and thin 2D 4-sample 2-fragment targets is 2, 4, 2 and 2 times the size CB_COLOR_SLICE gives; a fill of all of a 4x target is taken as a clear, and fills of its first quarter or from inside it are refused (`partly covers`). - Both pass, and each of 11 deliberate breaks fails at least one of them: the thin or the display 2D mode not mapped, the footprint not computed (as on `main`), the per-sample size taken as the whole surface, halved, or from `ColorTargetLayout` of the T# size, the footprint one sample instead of one per fragment, the non-uniform PS4 refusal removed, the refusal over a texture's host target removed from the draw preparation or from `acquire`, and the footprint given to every PS4 tile mode. With `main`'s `MultisampledColorBytes`, the first-draw case throws `initial multisample color footprint is not implemented`. - **The 3,418 tests `tools/select_tests.py` selects for the 8 changed files** (`ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`), on this branch and on `main` `35067f305f` (3,417, without the new test): `agc_driver_bda_device` fails on both; `agc_driver_frame_replay_rewind_store` and `pad_timeline` failed only on the branch, and in 10 reruns each passed 9 times on the branch and 9 and 8 times on `main`; the same 24 tests are skipped on both. - **With `VK_LAYER_KHRONOS_validation`** 1.4.367 (`VK_ADD_LAYER_PATH=<the layer's folder> VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer VK_LOADER_LAYERS_DISABLE=~implicit~ ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`), the tests matching `gcn|Gcn|multisample|msaa|color_target|agc_driver_graphics$|agc_driver_recorder$|alpha_to_coverage`, `ctest -V`: 84 on the branch and 83 on `main`, all pass; the logs have 82 and 81 `Insert instance layer` lines (tests that open no Vulkan instance, such as `agc_gcn_color_target`, have none), no `was not found` and no VUID. - **inFAMOUS Second Son** (CUSA00223 01.07, my own dump; it runs in PS4 Pro mode): eboot, `libc.prx` and `libSceFios2.prx` unwrapped with our local PS4 variant of `tools/unwrap_self.py`, converted with each build's relinker (`--windows --registry --trace-imports`), two starts of up to 60 s per build, no input. Both builds are `main` `9facbf1309` with #18184, #21961, #25557, #25598 and #23672 merged locally (#23672 and #25557 conflict in `TextureTiling.cpp`; resolved by keeping #25557's depth tile split and #23672's color tile split) and one local relinker change in no PR: a title that needs `libSceGnmDriver.prx` also loads `libSceGnmDriverForNeoMode.prx`, so the Neo-mode GNM exports it imports resolve (see #17581). - without this change: both starts stop after 21.9 s and 21.5 s, after presenting a frame, in compute shader `0x2f2fb2100` with `sampling the 1600x1800 multisampled texture 0x3075c0000 of 2 samples, which no draw rendered to and whose tile mode 18 has no modeled multisampled color footprint, is not implemented`; - with it: both get past that shader and instead stop after 21.6 s and 21.5 s at a draw with `a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, ...`, which is outside this PR. The time to the stop is about the same; what changes is where they stop. - Builds of the same stack with local debug prints (on `main` `7eb79b0c48`, and for the T# on `9facbf1309`) showed that no draw binds a multisampled PS4 color target before that stop, that the texture's 23.6 MiB footprint (pitch 1664, height padded to 1856, 4 bytes, 2 samples) and the 8 MiB after it hold only zeros, so the zeros reach 2,486 rows at that pitch, past any padding of 1,800 rows, and that its T# is `03075c00 10400000 71c1c63f e4e10204 00cfe000 00000000 01000000 00000000`: 1600x1800 of pitch 1664, 2 samples, tile index 14, a 32-bit format, and word 6 `0x01000000`, so `alt_tile_mode` is set and `compression_en` is clear. The texture is alternate-tiled, like the color targets #23672's entry records for this title, and not compressed, so its zeros are its samples whichever of the two footprints applies. - **`python tools/check_conventions.py --base origin/main`** with this title and description: all checks passed. - **`python tools/pr_overlap.py --branch feat/gcn-msaa-color-fill`** (2,372 open pull requests probed): 2 that merge with `main` conflict with this branch on nearby lines: #22514 (PS4 color targets in the PRT tile modes) in `tests/GcnColorTarget.cpp`, next to the new test function, and my #25557 in `TextureTiling.cpp`, the conflict it has with #23672; #23672 itself, whose commit this branch carries, is listed for the new debt fragment both add. Of the 13 that conflict with `main` and were not compared, 2 change lines inside this branch's hunks: #6808 (it adds the PS5 Z_X and D_X cases to `createFilled`, which `main` already has) and #20786 (PS4 2D thick volumes, in #23672's `TextureTiling.cpp` hunk). None of them sizes PS4 multisampled color. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) 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: #23672 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: CUSA00223 #8214 <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA GeForce RTX 5080, driver 621.14, Windows 10 22H2 <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> AI-assisted: Claude Code found the cause, wrote the change and its tests, ran the tests and the inFAMOUS starts, and drafted this description; separate review agents checked it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-22 18:25:15 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

The inspected changes consistently model PS4 2D multisampled color footprints and reject the unsupported cases; the reported checks are author-reported and were not run in this review.

What I ran

Reviewed head 2e00b7e399b088b3f98140fb7272f3c1459880db; no commands or tests were run. Read all seven changed files listed as included in manifest.json: MultisampleTarget.cpp, TextureTiling.cpp, GcnColorTarget.cpp, tests/TextureTiling.cpp, GcnMultisampleColorFill.cpp, and the three docs/dev/debt/changes/*.md files. No changed files were excluded.

Results

Check Result Note
Source review passed All included changed files read
Automated checks not run Description reports author-run results
Console behavior not run PS4 hardware behavior remains unconfirmed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The reported test runs and inFAMOUS starts were not independently verified. No PS4/PS4 Pro measurement was performed; the documentation identifies the undrawn-surface sample interpretation and PS4 color layout as unverified on console. files.json was not available as a review document, but the review folder listing and manifest enumerate seven changed files, all included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6013735242 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/25802#pullrequestreview-6013735242). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T18:25:15Z. **Review:** APPROVED --- # Reviewed — looks good The inspected changes consistently model PS4 2D multisampled color footprints and reject the unsupported cases; the reported checks are author-reported and were not run in this review. ## What I ran Reviewed head `2e00b7e399b088b3f98140fb7272f3c1459880db`; no commands or tests were run. Read all seven changed files listed as `included` in `manifest.json`: `MultisampleTarget.cpp`, `TextureTiling.cpp`, `GcnColorTarget.cpp`, `tests/TextureTiling.cpp`, `GcnMultisampleColorFill.cpp`, and the three `docs/dev/debt/changes/*.md` files. No changed files were excluded. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | All included changed files read | | Automated checks | not run | Description reports author-run results | | Console behavior | not run | PS4 hardware behavior remains unconfirmed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The reported test runs and inFAMOUS starts were not independently verified. No PS4/PS4 Pro measurement was performed; the documentation identifies the undrawn-surface sample interpretation and PS4 color layout as unverified on console. `files.json` was not available as a review document, but the review folder listing and manifest enumerate seven changed files, all included. ## To get this to a good state Nothing is required.
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!25802
No description provided.