Skip to content

Fix 1833 bindless - #1927

Closed
BubsMcgee wants to merge 2 commits into
ProjectLeonida:mainfrom
BubsMcgee:fix-1833-bindless
Closed

BubsMcgee wants to merge 2 commits into
ProjectLeonida:mainfrom
BubsMcgee:fix-1833-bindless

Conversation

@BubsMcgee

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as:

Depends on:

Fixes:

What and why

Tested

GPUs tested:

AI-assisted:

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

adrianmjim and others added 2 commits November 25, 2026 10:34
…s the runtime does (RT-PIPELINE-CHECK-ROBUSTNESS)

Since ba62682 (ProjectLeonida#1723) the runtime's device enables robustBufferAccess
with VK_EXT_robustness2's robustBufferAccess2 for bounded indexed
indirect draws (leonida::can_enable_robust_index_view, with
maintenance5), and nullDescriptor wherever robustness2 offers it. The
checker still forced robustBufferAccess off and never enabled
robustness2. AMD makes robust buffer access part of a pipeline's cache
key, so the cache the checker saves stopped hitting in gta6rt:
pipeline_cache_seed fails on an RX 7900 XT.

The checker now makes the same choice with the same helper, chains
robustness2 and maintenance5 only when one of them is used, and after
the general feature query keeps only those choices. A buffer
update-after-bind feature it enables also asks the helper for
robustBufferAccessUpdateAfterBind, so its own device stays valid.
The checker passed an OR of four update-after-bind flags where the runtime passes VulkanDeviceInfo::bindless (an AND of runtimeDescriptorArray, the two dynamic-indexing shader features, and the sampled-image/storage-image/storage-buffer update-after-bind features). The OR can be true where the runtime's AND is false, which flips robust_index_view and breaks the cache key again. Same predicate as vk_test_device.h and create_vulkan_device_standalone.
@BubsMcgee

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of #1833 by adrianmjim, which changes the same two files (docs/pipeline_check.md, runtime/test/vk_pipeline_check.cpp) for the same robustBufferAccess choice. No unique content; #1833 is the one to land. The branch stays on the fork.

@BubsMcgee BubsMcgee closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants