Mesa (master): anv/device: Remove a use of a compound literal

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri Mar 17 15:40:59 UTC 2017


Module: Mesa
Branch: master
Commit: 28b134c75c1fa3b2aaa00dc168f0eca35ccd346d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28b134c75c1fa3b2aaa00dc168f0eca35ccd346d

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Mar 16 08:50:36 2017 -0700

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 at intel.com>

---

 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(




More information about the mesa-commit mailing list