From 121f2264716b6e76f6391d58fe183e78d1fc6464 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 18 Sep 2018 16:18:37 +0200 Subject: [PATCH] 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 --- src/amd/vulkan/radv_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2