Skip to content

Vulkan: fall back to the graphics family's second queue for the compute queue - #53

Open
ASDAlexander77 wants to merge 1 commit into
NVIDIA-RTX:mainfrom
ASDAlexander77:compute-queue-fallback
Open

ASDAlexander77 wants to merge 1 commit into
NVIDIA-RTX:mainfrom
ASDAlexander77:compute-queue-fallback

Conversation

@ASDAlexander77

Copy link
Copy Markdown

Problem

findQueueFamilies only accepts a compute queue from a family with compute and no graphics. Most mobile GPUs (Adreno, Mali) have one family for everything, so enableComputeQueue makes 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. createDevice requests 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: pickPhysicalDevice calls 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

…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>
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@ASDAlexander77

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant