[Mesa-dev] [PATCH] radv: use an unsigned 32-bit integer for radv_queue::family_index

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Nov 14 23:09:31 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Tue, Nov 14, 2017 at 5:29 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> VkDeviceQueueCreateInfo::queueFamilyIndex is an unsigned 32-bit
> integer.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_device.c  | 2 +-
>  src/amd/vulkan/radv_private.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 50dbe061d5..6666b62aa2 100644
> --- a/src/amd/vulkan/radv_device.c
> +++ b/src/amd/vulkan/radv_device.c
> @@ -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;
> diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
> index 3e5cd6562a..8b03591b5c 100644
> --- a/src/amd/vulkan/radv_private.h
> +++ b/src/amd/vulkan/radv_private.h
> @@ -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;
> --
> 2.15.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list