fix(agc): import a depth plane aliased by a cleared R32F target #15443
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15443"
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 edubox on 2026-11-03T10:12:23Z.
What
A native multisample depth plane whose guest range exactly aliases a multisampled R32F colour target can now take the value that target's clear or fill proves, instead of refusing the depth import. This covers both import paths:
A colour target that has drawn, a non-R32F format, or a clear value outside
[0, 1]is still refused.CheckCurrentrepeats the check, so an imported depth stays valid only while the colour alias still proves the imported value.7th Guest (PPSA17019) previously stopped at
native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host; with this it advances to the next, separate blocker (overlapping native multisample depth clear transitions are not implemented).Tested
Linux x86-64 (CachyOS), GCC 16.2.1, Release, NVIDIA GeForce RTX 4080 SUPER (driver 615.78.8.0):
agc_driver_native_depth_uniform_plane_aliasandagc_driver_native_depth_htile_plane_aliascases: clears 0 and 1.0, a drawn target, and a clear outside[0, 1], with 2, 4 and 8 samples.ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -R 'agc_driver_native_depth|^agc_driver_graphics$|^agc_driver_key_miss$|^agc_driver_bda_device$|^agc_driver_recorder$': 19/19 pass on the change, 17/17 onmain(4f41f4c375).VK_LAYER_KHRONOS_validationis not installed on this host, so the validation-layer comparison could not be run.tools/check_conventions.py --base origin/mainandgit diff --checkare clean.tools/pr_overlap.py --branch fix/agc-aliased-uniform-depthflags a sharedDepthSurface.cppwith #14969 and #15059; reviewed manually: they touch stencil retirement/flush and surface-size helpers, not this import or check path.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)