mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:20:51 +01:00
[PR #619] vulkan_replay: use cleared aspectMask for depth/stencil rect-clear attachment views (OLD-7634) #660
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#660
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/619
Author: @KarolKurzyna
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/stencil-rect-clear-view-aspect📝 Commits (1)
701dac3vulkan_replay: use cleared aspects for depth/stencil rect-clear views📊 Changes
2 files changed (+39 additions, -6 deletions)
View changed files
📝
runtime/src/vulkan_replay.h(+8 -3)📝
runtime/test/d3d12_clear_test.cpp(+31 -3)📄 Description
Claimed in the coordination issue as: OLD-7634 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128154815)
Carried over from upstream
ItsNotRexed/LeonidaPR#7634(69d7d53539), where it received 10/10 independentPASShardware reviews (@MartinIndra02RTX 3080,@jeangoesIntel UHD 730 confirming the fix on a second Gen12 Intel iGPU,@UesliiRX 5600 XT,@eizisparkRX 9070 XT,@CowBoYdu76,@EkabustoRX 9070 XT,@trick-yeRX 7800 XT,@egexonRTX 5070,@sgonzalez-glitchRTX 2080,@BeetjeMatigRTX 5070 Ti).What was wrong
In
runtime/src/vulkan_replay.h,prepare()passedp.binding.aspects(VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT) torect_view()forClearDepthStencilViewwith rectangles even whenclear->flagscleared only a single plane (D3D12_CLEAR_FLAG_DEPTHorD3D12_CLEAR_FLAG_STENCIL).On Intel's Windows Vulkan driver (
101.6129on UHD Graphics 770 and UHD Graphics 730), back-to-back depth-only then stencil-only rectangle clears sharing that combinedDEPTH | STENCILattachmentVkImageViewsilently drop the stencilvkCmdClearAttachments(8/8combined depth-stencil cases ind3d12_clear_formatsread back stale stencil values).What changed
aspectstorect_view()inprepare()so single-plane rectangle clears bind a matching single-aspect attachmentVkImageView, and skiprect_view()when!aspects(D3D-437).D3D12_CLEAR_FLAG_DEPTHrectangle clear followed byD3D12_CLEAR_FLAG_STENCILrectangle clear) regression cases forDXGI_FORMAT_D24_UNORM_S8_UINTandDXGI_FORMAT_D32_FLOAT_S8X24_UINTinruntime/test/d3d12_clear_test.cpp.Tested
101.6129, Vulkan1.3.295, Windows 11):d3d12_clear_formatsFAILED (8/8 combined depth-stencil stencil-plane checks failed on split rectangle clears).d3d12_clear_formatsPASS,vulkan_replay_testPASS, zero validation errors underLEONIDA_VK_VALIDATION=1.621.24, Vulkan1.4.357, Windows 11):d3d12_clear_formatsPASS,vulkan_replay_testPASS, zero validation errors underLEONIDA_VK_VALIDATION=1.@jeangoes) and 9 other NVIDIA/AMD GPUs on upstream#7634.AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.