diff options
author | Eric Anholt <[email protected]> | 2018-02-10 11:25:48 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-03-16 15:10:05 -0700 |
commit | 7db1c09d12bac50d66feaf981ff52b319091dd2d (patch) | |
tree | 8971c16194e64006557aca37866c8973b73e3cc1 /src/intel/vulkan | |
parent | d25640c3a3b914059abd661f0651d88b4fe408e8 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 82b237e76d8..4cacba93430 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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; |