From fc3cfaa4aa1e9c3f36722c4e4aff967c734ffa11 Mon Sep 17 00:00:00 2001 From: "Eric R. Smith" Date: Thu, 18 Jul 2024 11:21:30 +0000 Subject: [PATCH] panfrost: add a perf warning when resources need to be converted This is a minor debugging aid. Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index c96ee858761..a45682878eb 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -1470,6 +1470,7 @@ pan_resource_modifier_convert(struct panfrost_context *ctx, * be able to convert back to another modifier if needed */ rsrc->modifier_constant = false; pipe_resource_reference(&tmp_prsrc, NULL); + perf_debug(ctx, "resource_modifier_convert required due to: %s", reason); } /* Validate that an AFBC/AFRC resource may be used as a particular format. If it