From: Jason Ekstrand Date: Thu, 16 Mar 2017 15:50:36 +0000 (-0700) Subject: anv/device: Remove a use of a compound literal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28b134c75c1fa3b2aaa00dc168f0eca35ccd346d;p=mesa.git anv/device: Remove a use of a compound literal Older versions of GCC don't like compound literals in static const variable declarations because they don't think it's an actual constant value. Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 014b2f7d9cc..fcfbd5fd6b1 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -694,7 +694,7 @@ anv_queue_family_properties = { VK_QUEUE_TRANSFER_BIT, .queueCount = 1, .timestampValidBits = 36, /* XXX: Real value here */ - .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 }, + .minImageTransferGranularity = { 1, 1, 1 }, }; void anv_GetPhysicalDeviceQueueFamilyProperties(