mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 09:50:08 +01:00
anv: Handle vkGetPhysicalDeviceQueueFamilyProperties with count == 0
The spec implicitly allows the incoming count to be 0. From the Vulkan
1.0.38 spec, Section 4.1 Physical Devices:
If the value referenced by pQueueFamilyPropertyCount is not 0 [then
do stuff].
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b85c0b569f
commit
d6545f2345
1 changed files with 8 additions and 1 deletions
|
|
@ -646,7 +646,14 @@ void anv_GetPhysicalDeviceQueueFamilyProperties(
|
|||
return;
|
||||
}
|
||||
|
||||
assert(*pCount >= 1);
|
||||
/* The spec implicitly allows the incoming count to be 0. From the Vulkan
|
||||
* 1.0.38 spec, Section 4.1 Physical Devices:
|
||||
*
|
||||
* If the value referenced by pQueueFamilyPropertyCount is not 0 [then
|
||||
* do stuff].
|
||||
*/
|
||||
if (*pCount == 0)
|
||||
return;
|
||||
|
||||
*pQueueFamilyProperties = (VkQueueFamilyProperties) {
|
||||
.queueFlags = VK_QUEUE_GRAPHICS_BIT |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue