fix(agc): publish a written native multisample D32S8 owner without HTILE to its depth and stencil planes #15688
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15688"
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 hugodearaujo on 2026-11-04T05:35:21Z.
What
#13021 publishes a written native multisample D32S8 owner to its guest planes, but only an owner with three planes (depth, HTILE, stencil). #14005 imports a D32S8 target without HTILE whose depth and separate stencil planes each hold one value; once the host draws into it, a guest read of its planes throws
sample-preserving guest publication of native multisample depth is not implemented for this owner. As discussed on #13021, this is the follow-up for that two-plane owner.PublishToGuestnow also accepts the owner of auniformPlaneTarget(D32S8, separate stencil plane, no HTILE) when it holds two publication planes. The depth and stencil samples are read back and retiled exactly as for the three-plane owner; the stencil plane is plane 1 instead of plane 2, and there is no HTILE to expand. Everything else is #13021's publication: the same snapshot, live-range, racing-write, allocation-lease and commit checks, and the owner stays resident afterwards. Owners with HTILE still need three planes, and D16/D32-only owners still throw.Tested
Linux 7.2.11, AMD Radeon RX 9070 XT, RADV (Mesa 26.2.6), Release with tests.
agc_driver_native_depth_publication_without_htile(--publication-without-htile): a uniform-plane D32S8 owner without HTILE, drawn with per-sample depth and stencil, then read by the guest.guest writes raced native multisample depth publication, and the owner stays resident (the depth plane is already committed in the second case).mainwith only the test added, it fails withsample-preserving guest publication of native multisample depth is not implemented for this owner.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1), the 15 tests ofagc_driver_native_multisample_depth_tests(agc_driver_native_multisample_depthandagc_driver_native_depth_*), onmainacf7ac208a: withDepthSurface.cppfrommainand the new test, 14 of 15 pass (the new test fails as above); with this change, 15 of 15. Neither log has aVUID-line or "was not found but was requested". The same pair onmain1c8c0efc8cgave the same result.tools/check_conventions.py: passes.main1c8c0efc8c+ #13963 (fc1dfc03ab, needed for an earlier stop):compute shader 0x10b4c89700: AGC graphics: sample-preserving guest publication of native multisample depth is not implemented for this owner. The owner is a 4-sample 1920x1080 D32S8 target without HTILE (depth and stencil planes, imported through #14005).a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented. That stop is the title binding the same planes at 1872x1056 (dynamic resolution), which a separate PR handles.Checklist
main; no other open PR implements the same functions (#9950 and #10469 change the samepublication.size()check for D32 owners without stencil, so whichever lands second has a one-line conflict there)NotImplemented_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)Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-04T17:09:47Z.
Review: APPROVED
Head
fa590e435amerged onto currentmainb11c7bf84f(clean merge, local only): code read, red/green check and a run on AMD's Windows driver, with an NVIDIA Blackwell run alongside. I reviewed it as the base of #15690 and #15707.Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (
x86_64-ucrt-posix-seh, r3), Release,BUILD_TESTING=ON.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ctest -R '^agc_driver_native_(depth|multisample_depth).*$',ANYPS5_GPUselecting the device (confirmed bySelected GPU):main10de:2c05)1002:164e)agc_driver_native_depth_driver_queued_fill, as onmain. There are noVUID-lines and no missing-layer line in any run.DepthSurface.cppchange reversed fails the newagc_driver_native_depth_publication_without_htileon both GPUs. It fails withsample-preserving guest publication of native multisample depth is not implemented for this owner.check_conventions.py --base mainpasses on the merge.Read through the change:
PublishToGuestnow accepts a no-HTILE (uniformPlaneTarget) D32S8 owner with two publication entries. The stencil plane is the last entry (publication.size() - 1), and the HTILE expansion intoresult[1]runs only when the owner has HTILE. The other requirements are unchanged. These are the format, an empty sampling refusal, proven stencil and no pending clears. I found nothing to change.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T12:41:14Z.
Review: COMMENTED
Ran
79a72e5259merged onmain302864d48con Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(Khronos validation layer 1.4.368),ctest -R '^agc_driver_native_(multisample_depth|depth_)' -V.mainThe new
agc_driver_native_depth_publication_without_htilefails on the Intel iGPU, both runs: "a written D32S8 owner without HTILE did not publish its stencil samples and padding". On NVIDIA it passes. The other three Intel failures (native_depth_stencil_view,uniform_planes,publication) are the same onmain(#16883), so on this driver D32S8 stencil already reads wrong onmain, and the new case may hit the same thing rather than this change. Still, it doesn't pass here.The layer was inserted in every test, no log has
was not found but was requested by env var VK_INSTANCE_LAYERS, and no log on either side has aVUID-. #15690 and #15707, which build on this branch, add a dispatch over Intel'smaxComputeWorkGroupCount[0](see #15690); this PR doesn't.AI-assisted: yes.