anv/device: Remove a use of a compound literal
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Mar 2017 15:50:36 +0000 (08:50 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Mar 2017 15:40:30 +0000 (08:40 -0700)
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 <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index 014b2f7..fcfbd5f 100644 (file)
@@ -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(