freedreno: Fix GCC build error.
authorVinson Lee <vlee@freedesktop.org>
Thu, 30 May 2019 21:47:37 +0000 (14:47 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 3 Jun 2019 23:46:54 +0000 (16:46 -0700)
../src/freedreno/vulkan/tu_device.c:900:4: error: initializer element is not constant
    .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 },
    ^

Suggested-by: Kristian Høgsberg <krh@bitplanet.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110698
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/vulkan/tu_device.c

index 2e930d9841fecfc808aba76680a929526c64a0f2..fdb9e1e0a1e2e89bd0f70c5d667a97db5d02085e 100644 (file)
@@ -897,7 +897,7 @@ static const VkQueueFamilyProperties tu_queue_family_properties = {
       VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT,
    .queueCount = 1,
    .timestampValidBits = 64,
-   .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 },
+   .minImageTransferGranularity = { 1, 1, 1 },
 };
 
 void