feat(agc): sample and publish PS4 multisampled depth targets #25557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25557"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adam25136 on 2026-11-22T08:52:49Z.
What
On
main, a PS4 (GCN) multisampled depth target can be drawn into but not sampled: when its native host image is created, the sampling import refuses it withnative multisample depth arrays or non-Z_X layout are not implemented, because the import, the sampled-descriptor checks and the write-back to guest memory all assume PS5 layouts (64 KiB Z_X with a pipe and bank XOR). inFAMOUS Second Son stops there (see Tested). This gives 2, 4 and 8 sample PS4 D32 S8 targets with HTILE their own path through those three steps.SLICE_TILE_MAX + 1, 8x8 tiles) x 64 texels x bytes x samples, which is how Mesa programs it for GFX6-8 (SLICE_TILE_MAX((nblk_x * nblk_y) / 64 - 1)inac_init_gfx6_ds_surface, ac_descriptors.c, which radeonsi'ssi_init_depth_surfaceuses); without the register, DB_DEPTH_SIZE's tiles. These sizes are used for the import, the attachment's read guards, the footprint checks, the stencil replay feedback check (throughDepthPlaneBytes) and the key of the cached color-versus-depth overlap result (DepthFootprintincludesgcnandgcnSliceTiles). DB_DEPTH_SIZE (0x016) and DB_DEPTH_SLICE joinDrawKeyRegisters;mainalready reads 0x016 for PS4 targets without it.maintakes them as the PS5 pipe and bank XOR and clears them, which moves a PS4 base that is 256-byte but not 64 KiB aligned), and DB_HTILE_SURFACE, which has no PIPE_ALIGNED field before GFX9, is not read for it. The tile mode indices and tile splits of DB_Z_INFO and DB_STENCIL_INFO (bits 22:20 and 15:13) are kept, and the depth target comparisons include the new fields.prepareDepthSampling, the HTILE path): PS4 targets skip the Z_X swizzle, XOR, 64 KiB base and PS5 pipe-aligned HTILE checks. Every HTILE word must still prove the clear value (the word layout is the GFX6+ one radv uses,radv_get_htile_fast_clear_valuein radv_meta_clear.c), and since PS4 HTILE is not pipe-aligned in the PS5 sense, all its words must be the same. The import also checks what the write-back will need: both tile mode indices name a 2D or PRT depth mode whose split matches TILE_SPLIT, depth and stencil fall in the same macro tiles (one DB_DEPTH_INFO describes both), the pitch is a whole number of macro tiles and the slice size is the layout's. Every other PS4 target (arrays, other formats than D32 S8, no HTILE, the 1D depth mode) is refused at import, so it stays as onmain: drawn into, not sampled.CheckResourceandSampledAcceptstake a PS4 T# whose pitch is the target's pitch and whose size is no larger than the padded target (inFAMOUS samples its 1792x1920 target through a 1600x1800 T#);CheckResourcealso wants the tile mode DB_Z_INFO or DB_STENCIL_INFO names for that plane and, as a PS4 T# names no metadata, skips the PS5 HTILE and XOR checks. A smaller T# reads a copy of its own size (on a device with the sample shadow; otherwise it throws), refreshed like the sample shadow, so size queries follow the T#, not the padding; a target keeps copies for at most four T# sizes, dropping the oldest. Reading sample 0 through such a T# still throws.GcnMultisampleTextureLayoutplaces each sample with the equationGcnTilingbuilds for multisampled depth tile modes (#22629), in the tile modes the guest names in DB_Z_INFO and DB_STENCIL_INFO (TILE_MODE_INDEX; GFX7 takes the layout from DB_DEPTH_INFO and TILE_SPLIT, and DB_DEPTH_INFO is not read); HTILE is written as expanded words, as for PS5. The tiling runs on the CPU, one element at a time: for inFAMOUS's 1792x1920 2-sample planes about 23 ms for depth and 22 ms for stencil (a standalone copy of the loop with a stand-in equation, at the build's-O3); in the debug starts below it ran once per start.main. A multisampled PS4 T# over a resident target reads the host image, and one with no drawn owner throws. Since #16880, a T# that is not multisampled over a sampled target reads these bytes from guest memory, through the base PS4 layout too; what such a read returns in a Neo mode title was not compared with the console. A CPU read, or a shader that computes its own addresses, would see another layout than on the console.mainsince 2026-11-07) declares the same tile index helper and reads DB_Z_INFO's TILE_MODE_INDEX into its ownDepthTargetfield on the line this PR edits; this one has the helper's name and body,GcnTileMode, so either can land first and the second rebases onto the other's field.PS4 (GCN) native multisampled depth sampling.Tested
Windows 10 Pro 22H2 (19045), NVIDIA GeForce RTX 5080 (driver 621.14; 621.40 from
b1f33a9ecc), WinLibs GCC 15.2.0 (r7), Release. The tests, breaks and inFAMOUS starts ran on this change onmain10a9c248ff; the selected tests and the validation-layer runs on it rebased ontoccc951d992. It is now rebased onto63b98e5bf85, before that onto1f27e2abfa. Apart fromb1f33a9ecc,d6eaa7893dand9d80c6afdabelow, every changed line is the same as before, except in the files that conflicted withmain:TextureTiling.cppandNativeMultisampleDepth.cppat the rebase onto1f27e2abfa, andTextureTiling.cpp,TextureTiling.hpp,tests/TextureTiling.cppandDepthSurface.cppat this one:TextureTiling.cpp: the depth tile splits stay inGcnDepthTileSplit, which now overridesmain's split after it; the other modes keepmain's split (#23672's2u * 64u * bytesPerElement, and since #20786 the micro tile size for the 2D thick mode), where this branch first had2u * microBytes.TextureTiling.hppandtests/TextureTiling.cpp:GcnDepthTileSplit,GcnMultisampleTextureLayoutandgcnMultisampleLayoutTestssit next to #20786'slayerThicknessandgcnThickMacroTilingTests.DepthSurface.cpp,CheckResource: the PS4 branch comes before #16880's PS5 checks and uses itsrequire, so a PS4 refusal also prints the T# and the target.NativeMultisampleDepth.cpp: since #21781,DepthRastershares its pipelines across cases, soRunPixelsnow usesshared->pass,shared->pipelinesandshared->layout;--ps4sits next tomain's--demand-zero-planes.b1f33a9ecc(nowa225a95733; after CodeRabbit's review of the head rebased onto1f27e2abfa; driver 621.40) adds the PS4 slice size to the key of the cached overlap result and to the stencil replay feedback check, with three tests:agc_driver_target_memo_tests, cached depth overlap case: a PS4 two-sample target whose slice size alone grows over the color must miss the memo proved for the smaller plane.agc_driver_stencil_null_feedback: a vertex buffer right after the stencil plane of a 512x64 four-sample PS4 target (131,072 bytes; 262,144 sized the PS5 way) is not refused as a feedback read.agc_driver_graphics:DepthPlaneBytesof the decoded PS4 target with and without DB_DEPTH_SLICE (without it, the 1792x1920 two-sample stencil plane is 6,881,280 bytes, 7,340,032 sized the PS5 way), of a PS5 two-sample target and of a one-sample target.On
b1f33a9ecca full build passes,agc_driver_native_depth_ps4run alone passes 3 of 3, and the 22 tests matching the target memo, stencil replay,agc_driver_graphics,agc_driver_msaa_layout,agc_driver_native_depth_ps4and the three publication tests pass. The validation-layer run below, with the four stencil replay tests added, has 201 passing and the same 4 skipped of 205, 246Insert instance layerlines, nowas not foundand no VUID. Deliberate breaks, each rebuilt: the footprint without the two fields fails three target memo tests (_draw_pipeline,_plan_verify,_verify);DepthPlaneByteswith the PS5 size failsagc_driver_graphics; the stencil replay check back on the PS5 size failsagc_driver_stencil_null_feedbackwithstencil replay refuses depth or stencil feedback reads.d6eaa7893d(for oneandonlydean's Linux run): a PS4 T# reaches only below 2^46, but Linuxmmapplaced the--ps4fixtures at0x7f.., so the depth surface was not found. The target and refusal cases now map their fixtures withMAP_FIXED_NOREPLACEbelow 2^40, from 4 GiB up in 4 GiB steps, asLowBlockinGcnMultisampleColorFill.cppdoes. Under ASAN they start at0x60000000, asLowBlockdoes, but step by 16 MiB: these cases hold three fixtures at a time, and ASAN's shadow starts just under 2 GiB on x86-64. Every platform checks that they end below 2^40. Not run on Linux or under ASAN: here the Linux code was only built on its own with MinGW against stub declarations, to run its placement loop against a stand-inmmapwith ASAN's x86-64 layout. On Windows the fixtures come from the guest arena, as before (one target at0x200000000here).9d80c6afda(test only): since #16880, a T# that is not multisampled over a sampled multisampled depth target writes the target back to guest memory and is read there; for a PS4 target, that write-back is this branch's, in the PS4 layout. Inagc_driver_native_depth_ps4, the cases with stencil in HTILE now start the write-back with a 2D T# over the depth plane and check that this T# is then read from guest memory, and the depth-only HTILE cases keep the read of HTILE that a DMA copy does. With that #16880 path turned off for PS4 targets (rebuilt), the test fails withnative multisample depth sampled identity or format mismatch.On
9d80c6afda, a full build passes; of the 60 tests whose names match the target memo,agc_driver_graphics,agc_driver_native_depth_,agc_driver_msaa_layout, a stencil feedback or replay test, ortiling, all pass exceptagc_driver_native_depth_driver_queued_fill, which skips as before;agc_driver_native_depth_ps4run alone passes 3 of 3; and the branch side of a validation-layer run with the environment and test regex of the validation bullet below has 207 passing and the same 4 skipped of 211, 262Insert instance layerlines, nowas not foundand no VUID. The 17 breaks, the inFAMOUS starts, the selected tests, the SPIR-V Tools build and themainside of the validation run were not repeated after the rebases, and nothing ran on Linux.agc_driver_native_depth_ps4(NativeMultisampleDepth.cpp --ps4), for 2, 4 and 8 samples (8 when the device supports it), once with stencil in HTILE and once with depth-only HTILE and a separate stencil plane (inFAMOUS's case): a 128x128 D32 S8 PS4 target with cleared HTILE is created below 2^40, sampled through a 96x112 PS4 T# (a size query reports 96x112, every sample reads the clear value), drawn with a depth and stencil value per pixel and sample, sampled again (each sample of the 96x112 corner), and written back to guest memory, when its HTILE is read as a DMA copy would (depth-only HTILE) or when a 2D T# over its depth plane reads it (stencil in HTILE); the depth and stencil planes then hold each sample whereGcnMultisampleTextureLayoutplaces it (at 2 samples the depth plane is in the 128-byte split mode and the stencil plane in the 256-byte one; at 8 samples depth is in the 512-byte mode and stencil in the 256-byte one, which splits the stencil plane differently) and HTILE holds expanded words. After four more T# sizes the target no longer holds the first copy, and at 2 and 8 samples rebinding the target with another stencil tile mode gives a new attachment. Refused, at the first sample count: an array, D32 S8 and D32 without HTILE, D16 and D32 without stencil, the 1D depth mode, a stencil TILE_SPLIT that disagrees with its index, depth and stencil in different macro tiles, a slice one tile too large, a T# of another pitch or another tile mode, and sample 0 through a smaller T#. It passes.agc_driver_graphics:GcnMultisampleTextureLayoutplaces every sample of every element of the 62 depth layouts (7 tile modes x 1, 2 and 4 bytes x 2, 4 and 8 samples, the 16-slice limit leaving one out) where the test's separate implementation of addrlib's formulas does, on a surface of 2x2 macro tiles with padded rows; a tile and detile round trip keeps the samples and leaves the padding; inFAMOUS's planes are 1792 x 1920 x 4 x 2 and 1792 x 1920 x 2 bytes; non-depth modes, a 1-sample layout, 8-byte elements and a pitch that is not a whole number of macro tiles throw. A PS4 2-sample depth target decodes DB_DEPTH_SLICE, both tile mode indices and tile splits and its unmasked bases, and every register the decoder reads is inDrawKeyRegisters. It passes, as do theagc_driver_target_memo_*tests, whose list of depth target fields now names the five new ones.-DANYPS5_ENABLE_SPIRV_TOOLS=ON,agc_driver_graphicsandagc_driver_native_depth_ps4pass too.CheckResource; PS4 bases masked; DB_DEPTH_SLICE ignored; the stencil tile index read from DB_Z_INFO; the tiler without its split slices, or without the row padding; the import taking D16 and D32 without stencil, ignoring TILE_SPLIT, or ignoring the macro tile match; cropped copies never released; and sample 0 read through a smaller T#. Not broken (each is checked directly by the tests above): theDrawKeyRegisterschange (its header rebuilds most of the driver), the target comparisons, the T# tile mode check,SampledAcceptsand the array, no-HTILE and 1D-mode refusals. The refusal of more than 16 split slices is not tested.tools/select_tests.pyselects for the 14 files the branch then changed (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1), on this branch and onmainccc951d992(3,502, without the new test):agc_driver_bda_devicefails on both;agc_driver(a timeout) andagc_driver_store_over_untrackedfailed only onmain, andframe_capture_minimizeonly on the branch, where it then passed 9 of 10 reruns; the same 24 tests are skipped on both.VK_LAYER_KHRONOS_validation1.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 matchingagc_driver_graphics$|gcn|tiling|detile|multisample|msaa|native_depth|depth|target_memo,ctest -V: 174 on the branch and 173 onmain: all pass except 4 that skip on both (agc_driver_msaa_dcc_compared_import_2,_4and_8, andagc_driver_native_depth_driver_queued_fill); the logs have 203 and 202Insert instance layerlines, nowas not foundand no VUID.libc.prxandlibSceFios2.prxunwrapped with our local PS4 variant oftools/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 aremain10a9c248ffwith #18184 and #21961 merged locally and one local relinker change in no PR (a title that needslibSceGnmDriver.prxalso loadslibSceGnmDriverForNeoMode.prx, standing in for #17711, which conflicts withmain); without #18184 the title stops in its FIOS2 start-up, without #21961 in the same compute shader onimage descriptor is incompatible with the static runtime image interface, and without the relinker changetools/import_audit.pyfinds 9 GNM imports no loaded library has.0x2f2fa2500(the depth resolve) withnative multisample depth arrays or non-Z_X layout are not implemented;0x2f2fb2100withShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value, which is outside this PR. A build of an earlier version of this branch with local debug prints (onmain15733cccd4) logged one write-back per start in between, asked by aDMA_DATAcopy of the whole 256 KiB HTILE.python tools/check_conventions.py --base origin/mainwith this title and description: all checks passed.python tools/pr_overlap.py --branchon9d80c6afda(1,873 open pull requests probed, againstmain998f1e5ea9, whose 8 commits after this branch's base change onlylibSceLibreSsl3,libkerneland their debt fragments): 6 that merge withmainconflict with this branch on nearby lines: #19557 and #21948 inDepthSurface.cpp, #22439, #23553 and #28209 inState.hpp(next toDrawKeyRegisters), and #24735 inDraw.cpp, at the stencil replay plane sizesa225a95733changes: if #24735 lands first, this branch rebases onto its lambda withDepthPlaneBytes; if this one lands first, #24735's lambda needs it for PS4 targets. None of the six is about PS4 multisampled depth. Of the 85 that conflict withmainand were not compared, 9 remove or change a line that is also inside one of this branch's hunks (matched by text); besides #9895 (see Overlap above), none of them samples or writes back PS4 multisampled depth.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted: Claude Code 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
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T10:15:55Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code supports the described PS4 multisampled depth import and publication path; I did not run the reported checks.
What I ran
Reviewed head
96c16c16d8144a6d8343d3654995e57eae2c3801using the prepared diff andrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Did not run builds, tests, validation layers, or the game scenario. The full text of
Graphics.cppandNativeMultisampleDepth.cppwas excluded from the review folder; I read the changedGraphics.cppexcerpt and a targetedNativeMultisampleDepth.cppexcerpt through the reader. The remaining portions of those files and the other changed files were not read. Performance and console behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-23T11:39:14Z.
Review: APPROVED
Windows check of
96c16c16d8with GCC 16 on an NVIDIA and an AMD GPU, merged ontomainf5b7e1d1ac(clean merge). The new headaeae68c7f0changes only the debt fragment's text, so these results apply to it. With Helldiverr's discrete RDNA4 run, this adds an integrated RDNA2 GPU and a Blackwell NVIDIA one for the heldagc_driver_native_depth_ps4, on a newermain.Setup: Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (
x86_64-ucrt-posix-seh, r3), Release full build, run from PowerShell withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. GPUs, each picked withANYPS5_GPU: NVIDIA GeForce RTX 5070 Ti (621.01) and the Ryzen 7 7700X's integrated AMD Radeon (1002:164e, Adrenalin 26.10.2). The GPU set was built together with #26098, #24781 and #22251, which touch other files.agc_driver_native_depth_ps4passes on both GPUs in 2 of 2 runs, 1.3 to 1.4 s each. I didn't capture which of the 2-, 4- and 8-sample cases each device ran.sample_multisample_target, texture tiling and target-state memo tests (^(agc_driver_native_multisample.*|agc_driver_native_depth.*|agc_driver_sample_multisample_target.*|.*texture_tiling.*|.*target_state_memo.*)$):main33 of 33, and with this PR 34 of 34 in 2 of 2 runs, on both GPUs. The only skip, on both sides, isagc_driver_native_depth_driver_queued_fill, which skips on Windows by design. NoVUID-lines.agc_driver_graphics, which holds the new plane-size checks: passes onmainplus this PR alone (d2c751d383). In the combined build it failed because of #24781, not this PR.multisampledPlaneBytessizing PS4 planes like PS5 ones,agc_driver_native_depth_ps4fails on the Radeon withPS4 native multisample depth slice size differs from its tile layout.The
prepareDepthSamplingline this PR changes (HtileMetadataBytes(target.extent)instate.initial) is the same one #21948 changes toTargetHtileBytes(target), so whichever lands second has a small conflict there.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T04:16:04Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because two changed test files were not available in the review folder.
What I ran
Reviewed head
aeae68c7f0bc36457b4551c6b86f36bc1858d259using the prepared diff andrepo_read.pyfor targeted source ranges. No commands or tests were run. I read the description, commits, manifest, diff, and the available changed files.Graphics.cppandNativeMultisampleDepth.cppwere excluded fromfiles/because they were too large; their diff hunks were reviewed, but their full files were not.Results
Findings
Blocking
None identified in the inspected implementation paths.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/Graphics.cppandcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppwere not read; only their changed diff hunks were reviewed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T20:46:30Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the inspected implementation supports the stated scope, while two changed test files were not fully reviewed.
What I ran
Reviewed head
849ea2c4d48487f755b7a996bd4dac82ca706de2. No build or tests were run in this review. Read the prepared description, commit list, diff and manifest, plus targeted source ranges throughrepo_read.py.Results
Findings
Blocking
None in the inspected implementation.
Non-blocking
None.
Not verified
tests/Graphics.cppandtests/execution/NativeMultisampleDepth.cppwere excluded fromreview/files/; only selected diff hunks were inspected. Their remaining contents, actual test execution, and physical-console behavior were not verified. The author reports tests on Windows 10 with an RTX 5080; those are not runs performed in this review.Files read:
GuestTextureResource.hpp,State.hpp,TextureTiling.hpp,DepthSurface.cpp,Draw.cpp,GuestTextureResource.cpp,State.cpp,TextureTiling.cpp,TargetStateMemo.cpp,TextureTiling.cpptests, native multisample depth CMake test, and the debt document. Excluded from the review folder:tests/Graphics.cppandtests/execution/NativeMultisampleDepth.cpp.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T20:55:48Z.
Review: COMMENTED
9674263b-8188-4002-9ccb-3b36fc58ee16Reviewing files that changed from the base of the PR and between
1f27e2abfaand849ea2c4d4.core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hppcore/libs/prx/libSceAgcDriver/Graphics/include/State.hppcore/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/TargetStateMemo.cppcore/libs/prx/libSceAgcDriver/tests/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_native_multisample_depth_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppdocs/dev/debt/changes/feat-gcn-msaa-depth-sampling.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T09:28:21Z.
Review: COMMENTED
Architecture findings (1)
Advisory architecture findings (1)
601e9556-eb28-457e-9eef-bf3f304d6dcfReviewing files that changed from the base of the PR and between
849ea2c4d4andb1f33a9ecc.core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/TargetStateMemo.cppcore/libs/prx/libSceAgcDriver/tests/execution/StencilNullFeedback.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T09:52:17Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation has no verified blocking defect; the full review is incomplete because some changed files and tests were not read or run.
What I ran
Reviewed head
b1f33a9eccccce300c223210d151112efc1d082busing the prepared bundle and pinned repository reader. No commands or tests were run; reported test results in the PR description are author supplied.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The changed test sources
core/libs/prx/libSceAgcDriver/tests/Graphics.cppandcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppwere excluded from the prepared folder and not read through the reader. Other changed files were not fully inspected. No build or tests were run.Read from the review bundle:
description.md,commits.md,manifest.json, anddiff.patch. Read from the repository:core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp,TextureTiling.cpp,DepthSurface.cpp,Draw.cpp, andGuestTextureResource.cpp. The two excluded test files are noted above; other changed paths were not read.To get this to a good state
Nothing is required. Optional: review the excluded test sources and run the reported checks before treating this review as complete.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T21:29:12Z.
Review: COMMENTED
The current head conflicts with
mainf3c2cd73abinDepthSurface.cpp, in the code that owns the depth sampling image and publishes its contents. Please keep the GCN pitch, sample count and storage-layout checks on both the lookup and publication paths in the resolution. Then rerun the common native multisample depth and stencil cases alongside the new GCN cases, since the changed production file also handles the existing PS5 path. The paired local Vulkan run is pending the merge resolution.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T12:34:24Z.
Review: COMMENTED
Actionable comments
5a80bc95-2cea-4d3f-85e8-84d12d1e859aReviewing files that changed from the base of the PR and between
b1f33a9eccand9d80c6afda.core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hppcore/libs/prx/libSceAgcDriver/Graphics/include/State.hppcore/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cppcore/libs/prx/libSceAgcDriver/Graphics/src/State.cppcore/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/TargetStateMemo.cppcore/libs/prx/libSceAgcDriver/tests/TextureTiling.cppcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T12:47:36Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
9d80c6afda01cc4dd94d6d2d81cf0a99641bc50cfrom the prepared diff and manifest. I usedrepo_read.pyfor targeted source context. I ran no project tests or builds; the test results in the description are author-reported.Results
Negative control
Not run; no tests were executed in this review.
Findings
Blocking
None.
Non-blocking
--ps4test on those configurations. The changed placement code is in NativeMultisampleDepth.cpp at the reviewed commit.Sources
The PS4 target layout decoding, sampling import checks, and plane sizing are in State.cpp and DepthSurface.cpp.
Not verified
No tests or builds were run here, and console behavior was not independently confirmed. The prepared bundle did not include full text for
core/libs/prx/libSceAgcDriver/tests/Graphics.cpporcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp; their changed hunks were reviewed fromdiff.patch. Other changed-file text was available underfiles/and its changed portions were reviewed.To get this to a good state
Nothing is required. Optional: run the PS4 fixture test on Linux and under ASAN to verify the low-address mapping path.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.