Repository navigation
fix(agc): ignore failed fence creation outputs - #7169
Merged
oneandonlydean merged 3 commits intoOct 19, 2026
Merged
oneandonlydean merged 3 commits into
oneandonlydean merged 3 commits into
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
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.
What
CommandBatchpasses its owned fence member directly tovkCreateFence. If creation fails and leaves a non-null output, constructor cleanup passes that undefined handle tovkDestroyFence. Vulkan leaves outputs undefined on runtime errors unless an API specifies otherwise (error behavior).Receive the fence in a local variable and publish it to the batch only after creation succeeds. Cleanup still frees the successfully allocated command buffer and the original Vulkan error propagates.
The regression covers host/device memory errors with null and non-null fence outputs, command-buffer allocation and begin failures, and successful recovery. A test-only adapter delegates successful operations to the existing graphics mocks. The command-buffer allocation control follows Vulkan's explicit null-output guarantee.
Relevant shared changes, including #7065 and #7057, were compared; they do not modify this constructor.
pr_overlap.pyreports only pre-existing unmergeable branches, with no confirmed overlap. Targeted Git compositions with #6614 and #7145 are clean, and the registration was also checked against 114 shared CMake changes without adding a conflict.Tested
Final source:
19655eaba5c878bfc0bb7c3dc464ee300acaf740, based on47a266cf975f00f7fba94013467d03bfa5e355e9. Release,BUILD_TESTING=ON.agc_storage_integer_clear,agc_storage_cpu_snapshotandagc_driver_pooled_buffer_range; device logs confirmed the NVIDIA GPU, with Vulkan required and the application shader cache disabled.Before / after
agc_command_batch_fence_failure, one run per revision and OS, using the same regression source and Release configuration. The negative controls used the production file from base47a266cf975f00f7fba94013467d03bfa5e355e9, retaining the regression fixture. Each run covers six constructor failure paths and four successful recoveries; four of those failures are fence creation errors.Error paths use Vulkan mocks. The hardware tests exercise successful recording, submission and readback; no real memory exhaustion was induced.
cmake --build build --target agc_driver_graphics_tests ctest --test-dir build -R '^agc_command_batch_fence_failure$' --output-on-failureLinux graphics/Vulkan tests: NOT RUN — intentionally excluded from VirtualBox validation. Native/bare-metal Linux was not tested. Native Linux GPU validation: not tested. No retail title or homebrew was run. Full hosted platform CI requires collaborator dispatch; local results above are separate from hosted checks.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in technical debt.mdfiles or images added to the repository