panfrost: add a perf warning when resources need to be converted

This is a minor debugging aid.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30243>
This commit is contained in:
Eric R. Smith 2024-07-18 11:21:30 +00:00 committed by Marge Bot
parent 56acdca86d
commit fc3cfaa4aa

View file

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