anv: fix uninitialized return value

We don't go through the loop when there are no queues.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 884df891d7 ("anv: allow device creation with no queue")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36910>
This commit is contained in:
Lionel Landwerlin
2025-08-21 17:58:19 +03:00
committed by Marge Bot
parent d40e841cc4
commit 1bab95551a
+1 -1
View File
@@ -931,7 +931,7 @@ genX(init_physical_device_state)(ASSERTED struct anv_physical_device *pdevice)
VkResult
genX(init_device_state)(struct anv_device *device)
{
VkResult res;
VkResult res = VK_SUCCESS;
device->slice_hash = (struct anv_state) { 0 };
for (uint32_t i = 0; i < device->queue_count; i++) {