[PR #1833] vk_pipeline_check: choose robustBufferAccess and VK_EXT_robustness2 as the runtime does (RT-PIPELINE-CHECK-ROBUSTNESS) #1844

Open
opened 2026-11-26 21:19:09 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 97fb9ee vk_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.cpp as #1630's transform-feedback line, so whichever lands second needs a trivial rebase.

What and why

pipeline_cache_seed fails on main on an AMD Radeon RX 7900 XT:

FAIL: vk_pipeline_check cache does not hit on the runtime's device (AMD Radeon RX 7900 XT), which does hit a cache it wrote itself: vk_pipeline_check's device differs from the runtime's in something the driver makes part of a pipeline's cache key

#1723 (ba626820e) made the runtime's device enable, where supported:

  • robustBufferAccess together with VK_EXT_robustness2's robustBufferAccess2, for bounded indexed indirect draws (leonida::can_enable_robust_index_view, with maintenance5);
  • nullDescriptor, wherever it is offered.

vk_pipeline_check still forced robustBufferAccess off and never enabled VK_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.

  • It queries VK_EXT_robustness2 (and maintenance5) and decides nullDescriptor and the robust index view as create_vulkan_device_standalone does.
  • It chains VK_EXT_robustness2 (and maintenance5) only when one of them is used.
  • After the general feature query it keeps only those choices: robustBufferAccess and robustBufferAccess2 follow the robust index view, nullDescriptor is as decided, and robustImageAccess2 is 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 main 0d80bc5df:

  • pipeline_cache_seed: 3 of 3 pass with the change, and 3 of 3 fail without it (the same build with only vk_pipeline_check rebuilt from main's file). It also passes under LEONIDA_VK_VALIDATION=1 with no VUIDs.
  • What matters: in a local experiment, mirroring nullDescriptor alone still missed. Adding robustBufferAccess and robustBufferAccess2 hit, with or without maintenance5.
  • The checker's tests: vk_pipeline_check_cli, vk_pipeline_check_stack, pipeline_cache_snapshot and the other pipeline_check/pipeline_cache tests, 8 of 8 pass.
  • Whole ctest -j 6: 437 of 439 pass or skip. The two failures, d3d12_texture_tiles (#964) and d3d12_clear, fail on main here too. That run was on a first revision of this change. The final one differs only inside the checker's robustness block (where an #ifdef sits, and the update-after-bind input), and I re-ran pipeline_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

  • 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. (No translator change.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1833 **Author:** [@adrianmjim](https://github.com/adrianmjim) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/pipeline-check-robustness` --- ### 📝 Commits (1) - [`97fb9ee`](https://github.com/ubiquitarianism/leonida/commit/97fb9ee3dea63e1839b01c3e231a0881829d35b4) vk_pipeline_check: choose robustBufferAccess and VK_EXT_robustness2 as the runtime does (RT-PIPELINE-CHECK-ROBUSTNESS) ### 📊 Changes **2 files changed** (+59 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/pipeline_check.md` (+6 -2) 📝 `runtime/test/vk_pipeline_check.cpp` (+53 -5) </details> ### 📄 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.cpp` as #1630's transform-feedback line, so whichever lands second needs a trivial rebase. ### What and why `pipeline_cache_seed` fails on `main` on an AMD Radeon RX 7900 XT: ``` FAIL: vk_pipeline_check cache does not hit on the runtime's device (AMD Radeon RX 7900 XT), which does hit a cache it wrote itself: vk_pipeline_check's device differs from the runtime's in something the driver makes part of a pipeline's cache key ``` #1723 (`ba626820e`) made the runtime's device enable, where supported: - `robustBufferAccess` together with `VK_EXT_robustness2`'s `robustBufferAccess2`, for bounded indexed indirect draws (`leonida::can_enable_robust_index_view`, with `maintenance5`); - `nullDescriptor`, wherever it is offered. `vk_pipeline_check` still forced `robustBufferAccess` off and never enabled `VK_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. - It queries `VK_EXT_robustness2` (and `maintenance5`) and decides `nullDescriptor` and the robust index view as `create_vulkan_device_standalone` does. - It chains `VK_EXT_robustness2` (and `maintenance5`) only when one of them is used. - After the general feature query it keeps only those choices: `robustBufferAccess` and `robustBufferAccess2` follow the robust index view, `nullDescriptor` is as decided, and `robustImageAccess2` is 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 `main` `0d80bc5df`: - **`pipeline_cache_seed`:** 3 of 3 pass with the change, and 3 of 3 fail without it (the same build with only `vk_pipeline_check` rebuilt from `main`'s file). It also passes under `LEONIDA_VK_VALIDATION=1` with no VUIDs. - **What matters:** in a local experiment, mirroring `nullDescriptor` alone still missed. Adding `robustBufferAccess` and `robustBufferAccess2` hit, with or without `maintenance5`. - **The checker's tests:** `vk_pipeline_check_cli`, `vk_pipeline_check_stack`, `pipeline_cache_snapshot` and the other `pipeline_check`/`pipeline_cache` tests, 8 of 8 pass. - **Whole `ctest -j 6`:** 437 of 439 pass or skip. The two failures, `d3d12_texture_tiles` (#964) and `d3d12_clear`, fail on `main` here too. That run was on a first revision of this change. The final one differs only inside the checker's robustness block (where an `#ifdef` sits, and the update-after-bind input), and I re-ran `pipeline_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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1844
No description provided.