freedreno: Fix GCC build error.

../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>
This commit is contained in:
Vinson Lee 2019-05-30 14:47:37 -07:00
parent 774a088f64
commit d4e70be739
1 changed files with 1 additions and 1 deletions

View 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