From 806082e96fa118a8d01be6604c9935b534f5084b Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 28 Nov 2022 19:57:27 -0800 Subject: [PATCH] iris: Drop 'isl_' prefix from 'formats_are_fast_clear_compatible' Every time I see this function I think it's part of isl. But it's not, it's just a static function in an iris file. The point of the name was that the function checks two isl_format enums...but the prefix is just confusing. Just drop the prefix as it's a static function. Reviewed-by: Nanley Chery Part-of: --- src/gallium/drivers/iris/iris_resolve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_resolve.c b/src/gallium/drivers/iris/iris_resolve.c index 9cc2b466e82..789d19746a5 100644 --- a/src/gallium/drivers/iris/iris_resolve.c +++ b/src/gallium/drivers/iris/iris_resolve.c @@ -1012,7 +1012,7 @@ iris_can_sample_mcs_with_clear(const struct intel_device_info *devinfo, } static bool -isl_formats_are_fast_clear_compatible(enum isl_format a, enum isl_format b) +formats_are_fast_clear_compatible(enum isl_format a, enum isl_format b) { /* On gfx8 and earlier, the hardware was only capable of handling 0/1 clear * values so sRGB curve application was a no-op for all fast-clearable @@ -1048,7 +1048,7 @@ iris_resource_prepare_texture(struct iris_context *ice, * the sampler. If we have a texture view, we would have to perform the * clear color conversion manually. Just disable clear color. */ - if (!isl_formats_are_fast_clear_compatible(res->surf.format, view_format)) + if (!formats_are_fast_clear_compatible(res->surf.format, view_format)) clear_supported = false; if (isl_aux_usage_has_mcs(aux_usage) &&