mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
venus: filter out queue familes with exclusive sparse binding support
We require the queue to have additional support to be able to send feedback commands. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22616>
This commit is contained in:
parent
1ba2460e61
commit
6ec54465d4
1 changed files with 13 additions and 1 deletions
|
|
@ -766,8 +766,20 @@ vn_physical_device_init_queue_family_properties(
|
|||
vn_call_vkGetPhysicalDeviceQueueFamilyProperties2(
|
||||
instance, vn_physical_device_to_handle(physical_dev), &count, props);
|
||||
|
||||
/* Filter out queue families that exclusively support sparse binding as
|
||||
* we need additional support for submitting feedback commands
|
||||
*/
|
||||
uint32_t non_sparse_only_count = 0;
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
if (props[i].queueFamilyProperties.queueFlags &
|
||||
~VK_QUEUE_SPARSE_BINDING_BIT) {
|
||||
props[non_sparse_only_count++].queueFamilyProperties =
|
||||
props[i].queueFamilyProperties;
|
||||
}
|
||||
}
|
||||
|
||||
physical_dev->queue_family_properties = props;
|
||||
physical_dev->queue_family_count = count;
|
||||
physical_dev->queue_family_count = non_sparse_only_count;
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue