radv: use an unsigned 32-bit integer for radv_queue::family_index
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Nov 2017 16:29:18 +0000 (17:29 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2017 08:00:59 +0000 (09:00 +0100)
VkDeviceQueueCreateInfo::queueFamilyIndex is an unsigned 32-bit
integer.

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

index 50dbe061d50cb38e57cd7919aceb51d45edf274d..6666b62aa2cabf4c41fd2e4cc3c4e057799f9610 100644 (file)
@@ -911,7 +911,7 @@ radv_get_queue_global_priority(const VkDeviceQueueGlobalPriorityCreateInfoEXT *p
 
 static int
 radv_queue_init(struct radv_device *device, struct radv_queue *queue,
-               int queue_family_index, int idx,
+               uint32_t queue_family_index, int idx,
                const VkDeviceQueueGlobalPriorityCreateInfoEXT *global_priority)
 {
        queue->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
index 3e5cd6562a8af0af3a2adc9f4ba6459c60bac926..8b03591b5cb969827fe6e1bc52debf0c34a649c5 100644 (file)
@@ -506,7 +506,7 @@ struct radv_queue {
        struct radv_device *                         device;
        struct radeon_winsys_ctx                    *hw_ctx;
        enum radeon_ctx_priority                     priority;
-       int queue_family_index;
+       uint32_t queue_family_index;
        int queue_idx;
 
        uint32_t scratch_size;