From a0bfd65d0fd3c2b0e0cada77aa26b5a52bef3b85 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 4 Mar 2022 11:06:30 -0500 Subject: [PATCH] zink: hide descriptor debug behind #ifdef I've gotten a feel for this, but it's annoying to always see it spamming away Acked-by: Emma Anholt Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_descriptors.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_descriptors.c b/src/gallium/drivers/zink/zink_descriptors.c index 1a09731..232b206 100644 --- a/src/gallium/drivers/zink/zink_descriptors.c +++ b/src/gallium/drivers/zink/zink_descriptors.c @@ -1440,6 +1440,7 @@ zink_descriptors_update(struct zink_context *ctx, bool is_compute) pdd_cached(pg)->cache_misses[h] = 0; } else if (likely(zink_screen(ctx->base.screen)->descriptor_mode != ZINK_DESCRIPTOR_MODE_NOFALLBACK)) { if (++pdd_cached(pg)->cache_misses[h] == MAX_CACHE_MISSES) { +#ifdef PRINT_DEBUG const char *set_names[] = { "UBO", "TEXTURES", @@ -1447,6 +1448,7 @@ zink_descriptors_update(struct zink_context *ctx, bool is_compute) "IMAGES", }; debug_printf("zink: descriptor cache exploded for prog %p set %s: getting lazy (not a bug, just lettin you know)\n", pg, set_names[h]); +#endif } } } else -- 2.7.4