radv: Use const on vi_alpha_is_on_msb arguments.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25770>
This commit is contained in:
Timur Kristóf
2023-09-29 14:12:01 +02:00
committed by Marge Bot
parent ff39212e28
commit 614bb47cbf
2 changed files with 2 additions and 2 deletions

View File

@@ -966,7 +966,7 @@ gfx9_border_color_swizzle(const struct util_format_description *desc)
} }
bool 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) if (device->physical_device->rad_info.gfx_level >= GFX11)
return false; return false;

View File

@@ -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, bool radv_are_formats_dcc_compatible(const struct radv_physical_device *pdev, const void *pNext, VkFormat format,
VkImageCreateFlags flags, bool *sign_reinterpret); 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, VkResult radv_image_from_gralloc(VkDevice device_h, const VkImageCreateInfo *base_info,
const VkNativeBufferANDROID *gralloc_info, const VkAllocationCallbacks *alloc, const VkNativeBufferANDROID *gralloc_info, const VkAllocationCallbacks *alloc,