From: Samuel Pitoiset Date: Tue, 18 Sep 2018 14:18:37 +0000 (+0200) Subject: radv: use a 64-bit unsigned integer when allocating a descriptor pool X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=121f2264716b6e76f6391d58fe183e78d1fc6464;p=mesa.git radv: use a 64-bit unsigned integer when allocating a descriptor pool pool->size is a 64-bit unsigned integer too. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index c4341f6ac52..351cc1613ed 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -533,7 +533,7 @@ VkResult radv_CreateDescriptorPool( { RADV_FROM_HANDLE(radv_device, device, _device); struct radv_descriptor_pool *pool; - int size = sizeof(struct radv_descriptor_pool); + uint64_t size = sizeof(struct radv_descriptor_pool); uint64_t bo_size = 0, bo_count = 0, range_count = 0;