From 83bc32d55d4a71ac74038d8bad74cca156483455 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 12 May 2023 14:29:37 -0400 Subject: [PATCH] radv: Constify radv_device_supports_etc Signed-off-by: Alyssa Rosenzweig Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.c | 2 +- src/amd/vulkan/radv_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 7164312baa1..73fc9a8b61a 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -662,7 +662,7 @@ radv_is_filter_minmax_format_supported(VkFormat format) } bool -radv_device_supports_etc(struct radv_physical_device *physical_device) +radv_device_supports_etc(const struct radv_physical_device *physical_device) { return physical_device->rad_info.family == CHIP_VEGA10 || physical_device->rad_info.family == CHIP_RAVEN || diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 7c081ca1cca..799802bc95a 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -2480,7 +2480,7 @@ bool radv_is_colorbuffer_format_supported(const struct radv_physical_device *pde bool radv_dcc_formats_compatible(enum amd_gfx_level gfx_level, VkFormat format1, VkFormat format2, bool *sign_reinterpret); bool radv_is_atomic_format_supported(VkFormat format); -bool radv_device_supports_etc(struct radv_physical_device *physical_device); +bool radv_device_supports_etc(const struct radv_physical_device *physical_device); static const VkImageUsageFlags RADV_IMAGE_USAGE_WRITE_BITS = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT |