Module: Mesa Branch: staging/23.3 Commit: 43540839e7b47e2a0c14aaf1d6ab287d7d13e669 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=43540839e7b47e2a0c14aaf1d6ab287d7d13e669
Author: Erik Faye-Lund <erik.faye-l...@collabora.com> Date: Mon Nov 6 12:51:48 2023 +0100 panfrost: use perf_debug instead of open-coding We don't need to open-code perf_debug here... Fixes: bc55d150a91 ("panfrost: Add support for AFBC packing") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26063> (cherry picked from commit 385b81c8c25360a3838958cf6af9b31871a96d29) --- .pick_status.json | 2 +- src/gallium/drivers/panfrost/pan_resource.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 60bcc59cedc..66eaba23385 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -14,7 +14,7 @@ "description": "panfrost: use perf_debug instead of open-coding", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "bc55d150a915d5b2e91cd6ee11af4992d18fcf4f", "notes": null diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index ad19ad767b7..6f4b5c14ccc 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -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");