mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
anv: Silence warning about heap_size.
We only get VK_SUCCESS if it was initialized, but apparently my compiler doesn't track that far. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
d25640c3a3
commit
7db1c09d12
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ anv_physical_device_init_heaps(struct anv_physical_device *device, int fd)
|
|||
device->supports_48bit_addresses =
|
||||
(device->info.gen >= 8) && anv_gem_supports_48b_addresses(fd);
|
||||
|
||||
uint64_t heap_size;
|
||||
uint64_t heap_size = 0;
|
||||
VkResult result = anv_compute_heap_size(fd, &heap_size);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue