mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #1833] vk_pipeline_check: choose robustBufferAccess and VK_EXT_robustness2 as the runtime does (RT-PIPELINE-CHECK-ROBUSTNESS) #1844
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#1844
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/1833
Author: @adrianmjim
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/pipeline-check-robustness📝 Commits (1)
97fb9eevk_pipeline_check: choose robustBufferAccess and VK_EXT_robustness2 as the runtime does (RT-PIPELINE-CHECK-ROBUSTNESS)📊 Changes
2 files changed (+59 additions, -7 deletions)
View changed files
📝
docs/pipeline_check.md(+6 -2)📝
runtime/test/vk_pipeline_check.cpp(+53 -5)📄 Description
Claimed in the coordination issue as: RT-PIPELINE-CHECK-ROBUSTNESS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162894648)
Depends on: none. It touches the same lines of
vk_pipeline_check.cppas #1630's transform-feedback line, so whichever lands second needs a trivial rebase.What and why
pipeline_cache_seedfails onmainon an AMD Radeon RX 7900 XT:#1723 (
ba626820e) made the runtime's device enable, where supported:robustBufferAccesstogether withVK_EXT_robustness2'srobustBufferAccess2, for bounded indexed indirect draws (leonida::can_enable_robust_index_view, withmaintenance5);nullDescriptor, wherever it is offered.vk_pipeline_checkstill forcedrobustBufferAccessoff and never enabledVK_EXT_robustness2. AMD makes robust buffer access part of a pipeline's cache key, so the cache the checker saves no longer hits in gta6rt.The change: the checker now makes the same choice the runtime does, with the same helper and the same inputs.
VK_EXT_robustness2(andmaintenance5) and decidesnullDescriptorand the robust index view ascreate_vulkan_device_standalonedoes.VK_EXT_robustness2(andmaintenance5) only when one of them is used.robustBufferAccessandrobustBufferAccess2follow the robust index view,nullDescriptoris as decided, androbustImageAccess2is off.docs/pipeline_check.md("The cache and the runtime's device") says so.Tested
AMD Radeon RX 7900 XT (RDNA3), AMD driver 32.0.32029.2010 (26.11.2), no Resizable BAR, Windows 11 build 26300, VS 2022 (MSVC 19.44) RelWithDebInfo, on
main0d80bc5df:pipeline_cache_seed: 3 of 3 pass with the change, and 3 of 3 fail without it (the same build with onlyvk_pipeline_checkrebuilt frommain's file). It also passes underLEONIDA_VK_VALIDATION=1with no VUIDs.nullDescriptoralone still missed. AddingrobustBufferAccessandrobustBufferAccess2hit, with or withoutmaintenance5.vk_pipeline_check_cli,vk_pipeline_check_stack,pipeline_cache_snapshotand the otherpipeline_check/pipeline_cachetests, 8 of 8 pass.ctest -j 6: 437 of 439 pass or skip. The two failures,d3d12_texture_tiles(#964) andd3d12_clear, fail onmainhere too. That run was on a first revision of this change. The final one differs only inside the checker's robustness block (where an#ifdefsits, and the update-after-bind input), and I re-ranpipeline_cache_seed(3 of 3) and the checker and cache tests on it.Not run on NVIDIA or Intel. Where the runtime makes the other choice, the checker now makes it too.
GPUs tested: AMD Radeon RX 7900 XT (RDNA3), AMD 32.0.32029.2010, Windows 11 26300
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator change.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.