From: Timur Kristóf Date: Fri, 29 Sep 2023 12:12:01 +0000 (+0200) Subject: radv: Use const on vi_alpha_is_on_msb arguments. X-Git-Tag: upstream/23.3.3~587 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=614bb47cbf8cfdcd67c7af546f82f7b7ecfe31bb;p=platform%2Fupstream%2Fmesa.git radv: Use const on vi_alpha_is_on_msb arguments. Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 6100bd2..a528dde 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -966,7 +966,7 @@ gfx9_border_color_swizzle(const struct util_format_description *desc) } bool -vi_alpha_is_on_msb(struct radv_device *device, VkFormat format) +vi_alpha_is_on_msb(const struct radv_device *device, const VkFormat format) { if (device->physical_device->rad_info.gfx_level >= GFX11) return false; diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 8d5082b..45ab956 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -2938,7 +2938,7 @@ VkResult radv_image_create(VkDevice _device, const struct radv_image_create_info bool radv_are_formats_dcc_compatible(const struct radv_physical_device *pdev, const void *pNext, VkFormat format, VkImageCreateFlags flags, bool *sign_reinterpret); -bool vi_alpha_is_on_msb(struct radv_device *device, VkFormat format); +bool vi_alpha_is_on_msb(const struct radv_device *device, const VkFormat format); VkResult radv_image_from_gralloc(VkDevice device_h, const VkImageCreateInfo *base_info, const VkNativeBufferANDROID *gralloc_info, const VkAllocationCallbacks *alloc,