[Mesa-dev] [PATCH] anv/device: Remove a use of a compound literal

Lionel Landwerlin lionel.g.landwerlin at intel.com
Fri Mar 17 15:39:03 UTC 2017


Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 16/03/17 21:09, Jason Ekstrand wrote:
> 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.
> ---
>   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 c73b9af..91b951d 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -671,7 +671,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-dev mailing list