Repository navigation
Vulkan: fall back to the graphics family's second queue for the compute queue - #53
Open
ASDAlexander77 wants to merge 1 commit into
Open
ASDAlexander77 wants to merge 1 commit into
ASDAlexander77 wants to merge 1 commit into
Conversation
…te queue Donut looks for a queue family with compute and no graphics, which most mobile GPUs (Adreno, Mali) lack. Use a second queue of the graphics family then, still asynchronous to the graphics queue. Also reset the queue family indices in findQueueFamilies, which pickPhysicalDevice calls per device. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
Problem
findQueueFamiliesonly accepts a compute queue from a family with compute and no graphics. Most mobile GPUs (Adreno, Mali) have one family for everything, soenableComputeQueuemakes device selection fail there.Change
If no dedicated compute family exists and the graphics family has compute and more than one queue, use the graphics family's second queue (index 1) as the compute queue. It stays asynchronous to the graphics queue (index 0), which the compute and render threads must not submit to at once.
createDevicerequests two queues in that family, and the queue index is passed on to NVRHI (computeQueueIndex).Also resets the queue family indices at the start of
findQueueFamilies:pickPhysicalDevicecalls it per device, so the families of the previously examined device leaked into the next one.Devices with a dedicated compute family behave as before.
🤖 Generated with Claude Code