anv: allow device creation with no queue
Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35381>
This commit is contained in:
committed by
Marge Bot
parent
1d8382b88e
commit
884df891d7
@@ -323,7 +323,6 @@ VkResult anv_CreateDevice(
|
|||||||
/* Check requested queues and fail if we are requested to create any
|
/* Check requested queues and fail if we are requested to create any
|
||||||
* queues with flags we don't support.
|
* queues with flags we don't support.
|
||||||
*/
|
*/
|
||||||
assert(pCreateInfo->queueCreateInfoCount > 0);
|
|
||||||
for (uint32_t i = 0; i < pCreateInfo->queueCreateInfoCount; i++) {
|
for (uint32_t i = 0; i < pCreateInfo->queueCreateInfoCount; i++) {
|
||||||
if (pCreateInfo->pQueueCreateInfos[i].flags & ~VK_DEVICE_QUEUE_CREATE_PROTECTED_BIT)
|
if (pCreateInfo->pQueueCreateInfos[i].flags & ~VK_DEVICE_QUEUE_CREATE_PROTECTED_BIT)
|
||||||
return vk_error(physical_device, VK_ERROR_INITIALIZATION_FAILED);
|
return vk_error(physical_device, VK_ERROR_INITIALIZATION_FAILED);
|
||||||
|
|||||||
Reference in New Issue
Block a user