fix(agc): import native multisample D32 depth without stencil or HTILE #19846
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19846"
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 arthur-paraibano on 2026-11-14T02:52:48Z.
What
A native multisampled
D32_SFLOATdepth target with no stencil plane and no HTILE was refused at its first sample (#18127): only D32S8 targets reached the import path without HTILE, and an uneven plane hit the HTILE refusal.FragDepth, sample shading), so it needs noVK_KHR_maintenance8.0x7fff7fffand0xffffffff) is copied bit for bit from the R32 image into the depth aspect withvkCmdCopyImage, throughVK_KHR_maintenance8andVK_EXT_depth_range_unrestricted. Without both it still throws.Tested
Windows 11, AMD Radeon RX 9070 XT, AMD driver 26.10.44, WinLibs GCC 15.2.0.
NativeMultisampleDepth.cppcover an uneven 4x D32 plane without HTILE (distinct words per sample read back), its publication, and planes holding NaN, infinities, denormals, -0 and out-of-range floats copied bit for bit.main(6786420207) and on this PR, same machine and GPU, withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_LOADER_DEBUG=layer(ctest -R 'agc_driver_native_color|agc_driver_native_fmask|agc_driver_native_msaa_vertex_input|agc_driver_sample_multisample_target|agc_driver_multisample_srgb_twin|agc_driver_cached_image_multisample_guard|agc_driver_native_depth|agc_driver_native_multisample_depth$|agc_driver_multisample_fill_host_only|agc_driver_sample_order'):main46/47, this PR 48/49 (the two new tests pass). Both logs show the loader inserting the layer, neither haswas not found but was requested, and neither has aVUID-error. The one failure,agc_driver_sample_order_grid_reference, fails the same way onmainon this GPU.main(f59a4a6e26), together with a separate queue-idle storage store fix that avoids an engine timeout: without them it stops at the first sample of the 4x D32 target without HTILE (#18127); with them it gets past it into gameplay, saves several times and runs about 300 s, then stops on a native multisample colour read-write buffer refusal that the open #6987-#7002 stack addresses.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)