radv: use a 64-bit unsigned integer when allocating a descriptor pool
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Sep 2018 14:18:37 +0000 (16:18 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Sep 2018 11:36:12 +0000 (13:36 +0200)
pool->size is a 64-bit unsigned integer too.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_descriptor_set.c

index c4341f6ac52288b0f38918f1d302978f04b58767..351cc1613eda5b4740817af137db181d6bfe91e8 100644 (file)
@@ -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;