panfrost: use perf_debug instead of open-coding

We don't need to open-code perf_debug here...

Fixes: bc55d150a9 ("panfrost: Add support for AFBC packing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26063>
This commit is contained in:
Erik Faye-Lund
2023-11-06 12:51:48 +01:00
committed by Marge Bot
parent 054188bff8
commit 385b81c8c2

View File

@@ -1532,9 +1532,8 @@ panfrost_pack_afbc(struct panfrost_context *ctx,
if (ratio > screen->max_afbc_packing_ratio)
return;
if (dev->debug & PAN_DBG_PERF) {
printf("%i%%: %i KB -> %i KB\n", ratio, old_size / 1024, new_size / 1024);
}
perf_debug(dev, "%i%%: %i KB -> %i KB\n", ratio, old_size / 1024,
new_size / 1024);
struct panfrost_bo *dst =
panfrost_bo_create(dev, new_size, 0, "AFBC compact texture");