Repository navigation
Conversation
|
Tested 028df8b (merged onto main 2d53a80) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (
Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files ( |
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.
Summary
Fixes
VUID-vkAllocateMemory-pAllocateInfo-01713and missing OOM memory-type fallback inleonida::PredicateReducer::batch()(runtime/src/vulkan_predicate.h:70-81), matching thememory_type_order()policy used ind3d12_vulkan_device.cppandvulkan_indirect_dispatch_count.h(#8978):leonida::memory_type_order()(runtime/src/vulkan_memory.h), skipping any memory type whose heap is smaller thanrequirements.size(and boundingmemoryTypeCount/heapIndex).vkAllocateMemory()fails (e.g.,VK_ERROR_OUT_OF_DEVICE_MEMORY), resettingb->memory = VK_NULL_HANDLEon each failed attempt so~Batch()cleans up cleanly.Testing
runtime/test/predicate_alloc_test.cpp(registered aspredicate_allocunderVulkan::Headers, no GPU required). Before the fix it failed atline 220: state.alloc_attempts[0].first == 1u(attempting to allocate 2048 B from a 1024 B heap).Debug&RelWithDebInfo, MSVC): 0 new warnings acrosspredicate_alloc_test,d3d12_state_map_test,vk_predicate_capture_test, andvk_command_replay_test.Debug&RelWithDebInfo) + RTX 4070 Ti withLEONIDA_VK_VALIDATION=1:predicate_alloc: Passed (Debug & RelWithDebInfo)d3d12_state_map: Passed (Debug & RelWithDebInfo)vk_predicate_capture: Passed on NVIDIA GeForce RTX 4070 Ti with Vulkan validation enabled (32 gated + 32 reused submissions, 192 snapshots, 0 validation errors)vk_command_replay: Passed on NVIDIA GeForce RTX 4070 Ti with Vulkan validation enabled (0 validation errors)