Repository navigation
Conversation
|
Tested
One small thing in the test. On OOM the mock |
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.
Item ID:
OLD-9794Carries forward Draft
#71(old-pr/9794bytotonii/totonicpu, preserving original commit authorship atdd8625af6), rebased cleanly ontomain(364ab4eab).Claimed in
#14: #14 (comment)AI-assisted: yes
Summary
runtime/src/vulkan_predicate.h(PredicateReducer::batch):leonida::memory_type_order(memory_, requirements.memoryTypeBits, 0, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, requirements.size)(runtime/src/vulkan_memory.h), filtering out heaps smaller thanrequirements.size(VUID-vkAllocateMemory-pAllocateInfo-01713).vkAllocateMemory()fails (e.g.,VK_ERROR_OUT_OF_DEVICE_MEMORY), resettingb->memory = VK_NULL_HANDLEon each failed attempt so~Batch()cleans up safely.runtime/test/predicate_alloc_test.cpp&runtime/CMakeLists.txt:predicate_alloc_test(registered aspredicate_allocunderif(TARGET Vulkan::Headers)), covering undersized-heap skip, OOM fallback, all-heaps-undersized failure, and all-types-OOM cleanup.Tests Executed (Linux x86_64, no retail game files / no Windows build)
ctest --test-dir runtime/build -C RelWithDebInfo: 71 Passed / 2 Skipped (shader_library_corpus,vk_sync_validation) / 0 Failed out of 73ctest --test-dir runtime/build -C RelWithDebInfo -E "^xdxr_build_check$" --output-on-failure: 70 Passed / 2 Skipped / 0 Failed out of 72 (includingpredicate_alloc1/1 andvk_predicate_capture1/1)ctest --test-dir runtime/build -C RelWithDebInfo -R "^xdxr_build_check$" --output-on-failure: 2/2 Passed (xdxr_build,xdxr_build_check)./runtime/build/predicate_alloc_test: OK (predicate_alloc_test: all checks passed)python3 -I tests/test_ci_registration.py: 16/16 passedpython3 -I tests/test_ctest_registration.py: 5/5 passedpython3 -I tests/test_text_write_line_endings.py: 3/3 passedpython3 -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/src/vulkan_predicate.h runtime/test/predicate_alloc_test.cpp: OK (exit 0, zero game data)