radv: Constify radv_device_supports_etc

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22999>
This commit is contained in:
Alyssa Rosenzweig 2023-05-12 14:29:37 -04:00 committed by Marge Bot
parent a229f6cd2e
commit 83bc32d55d
2 changed files with 2 additions and 2 deletions

View file

@ -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 ||

View file

@ -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 |