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 <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19060>
This commit is contained in:

committed by
Marge Bot

parent
880fab60a7
commit
806082e96f
@@ -1012,7 +1012,7 @@ iris_can_sample_mcs_with_clear(const struct intel_device_info *devinfo,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
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
|
/* 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
|
* 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
|
* the sampler. If we have a texture view, we would have to perform the
|
||||||
* clear color conversion manually. Just disable clear color.
|
* 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;
|
clear_supported = false;
|
||||||
|
|
||||||
if (isl_aux_usage_has_mcs(aux_usage) &&
|
if (isl_aux_usage_has_mcs(aux_usage) &&
|
||||||
|
Reference in New Issue
Block a user