Repository navigation
Reject out-of-range GPU indices in the descriptor benchmark - #808
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
ItsNotRexed merged 1 commit into
ItsNotRexed merged 1 commit into
Conversation
quackottu
reviewed
Nov 22, 2026
quackottu
left a comment
Contributor
There was a problem hiding this comment.
Tested f282a0d on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 97% tests passed, 1 tests failed out of 31- 30 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (format 28 case 0 byte 2: Vulkan 7f, WARP 80) exactly as onmain67204bf, so not from this PR: NVIDIA rounds a 0.5 UNORM clear to 0x7f, which #521 addressesd3d12_vulkan_device_testreports 10 synchronization-validation WRITE_AFTER_WRITE hazards on back-to-back copies (so ctest'sd3d12_vulkan_devicefails).main8df277f shows the same 10 here, so not from this PR: it's @guimsolutions's finding in #634, which #782 addresses
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as a D3D-56 follow-up.
What and why
vk_descriptor_benchparsed--deviceas auint32_tand then stored it in a signedint. On the base commit8df277f,--device 2147483648and--device 4294967295both ran the benchmark on the default GPU and returned success.This keeps explicit indices as
std::optional<uint32_t>values. An omitted index selects a GPU automatically. An explicit index is checked against the enumerated device count, so an out-of-range index returns exit code 2 before dispatch. The CPU self-test now checks that the largestuint32_tstays an explicit index.Tested
Windows 11 Pro (build 26200), RTX 3090 (NVIDIA 621.01), MSVC 19.44 (
RelWithDebInfo), and Vulkan SDK 1.4.363.0.vk_descriptor_benchand passedvk_descriptor_bench_selftestin CTest.1,2147483647,2147483648,4294967295, and4294967296on this one-adapter system. Both--device 0and automatic selection completed on the RTX 3090.LEONIDA_VK_VALIDATION=1, the quick device-local benchmark completed 33 measured scenarios at 1,000, 10,000, and 100,000 entries (11 each).git diff --checkpassed.AI-assisted implementation and testing.
Checklist
docs/design.md(not applicable to this benchmark CLI change).