Module: Mesa
Branch: main
Commit: 385b81c8c25360a3838958cf6af9b31871a96d29
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=385b81c8c25360a3838958cf6af9b31871a96d29

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>

---

 src/gallium/drivers/panfrost/pan_resource.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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");

Reply via email to