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 014b2f7d9ccf9be47d1a3fd445d596aba5025d95..fcfbd5fd6b148f85f574766f8af1644faac2cd78 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(