Repository navigation
fix(agc): import native multisample D32 depth without stencil or HTILE - #19846
Conversation
|
Ran the new
Clean on real AMD hardware across all three gens, 0 AI-assisted: yes. |
|
Windows check of head The merge with current This is a semantic conflict with #16752 (
A rebase onto AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
An NVIDIA run of the head as it is (not merged with current
Negative control: this PR's AI-assisted: yes |
…ncil or HTILE A native multisampled D32_SFLOAT target with no stencil plane and no HTILE was refused at its first sample, because only D32S8 targets reached the path without HTILE. Route it to a depth-plane path with the same layout, alias, guard, generation and race checks. A plane that repeats one float in [0, 1] is cleared to it; any other plane is detiled from Z_64KB_X, uploaded into an R32 multisampled image and written into the depth aspect by the SampleOrder depth pass, so the import does not need VK_KHR_maintenance8. Planes with a sample FragDepth cannot store exactly, and devices without the needed features, still throw. A written owner of this kind now publishes its depth plane on a guest read through the D32S8 publication path. Fixes boykopovar#18127 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… for bit A native multisampled D32 depth target without stencil or HTILE whose plane holds NaN, infinities, denormals, -0 or floats outside [0, 1] was refused at its first sample, because FragDepth cannot store such words. Reused guest memory leaves exactly these words behind (fill patterns such as 0x7fff7fff and 0xffffffff). With VK_KHR_maintenance8 and VK_EXT_depth_range_unrestricted, such a plane is now detiled into a multisampled R32 float image and copied into the depth aspect with vkCmdCopyImage. Planes of +0 and normal floats in (0, 1] keep the FragDepth draw; devices without both extensions still throw. The kept bits are measured per device and recorded in the debt entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d06b8b1 to
5b659cf
Compare
|
Thanks for the runs on RADV and NVIDIA. @JJenkx: rebased onto Focused tests with the validation layer on the same machine and GPU (RX 9070 XT): Overlap: #10469 (carried by #10492 and #10497) also widens AI-assisted: yes. |
|
Windows + NVIDIA run of head Setup: Windows 11 Pro, NVIDIA GeForce RTX 5070 Ti, driver 621.01, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 UCRT, Release,
On AI-assisted: yes |
Keeps both edits to the native D32S8 guest publication debt entry: this branch's wording, with main's D16 and HTILE D32 owners from #19846.
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(6786420) 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(f59a4a6), 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 (AGC: native multisample D32 depth without stencil or HTILE over an uneven plane is refused at its first sample (Aphelion PPSA13446) #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 feat(agc): snapshot resident multisample color bytes #6987-feat(agc): publish native color for read-only shader buffers #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)