summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2017-03-16 08:50:36 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2017-03-17 08:40:30 -0700
commit28b134c75c1fa3b2aaa00dc168f0eca35ccd346d (patch)
tree549f9f2e896e08665a4c30b2ea33c4eaa919aec9
parent76dc49f3fbeb8a44dde6a34bc4e8f6d7dd883cea (diff)
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 <lionel.g.landwerlin@intel.com>
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 014b2f7d9c..fcfbd5fd6b 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(