zink: make mesa_logw separate from perf_debug

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22899>
This commit is contained in:
Mike Blumenkrantz 2023-05-09 14:45:09 -04:00 committed by Marge Bot
parent 6098c3f9c0
commit 443e098f7a
2 changed files with 1 additions and 1 deletions

View file

@ -51,7 +51,6 @@ struct zink_resource;
struct zink_vertex_elements_state;
#define perf_debug(ctx, ...) do { \
mesa_logw(__VA_ARGS__); \
util_debug_message(&ctx->dbg, PERF_INFO, __VA_ARGS__); \
} while(0)

View file

@ -2407,6 +2407,7 @@ zink_resource_copy_box_add(struct zink_context *ctx, struct zink_resource *res,
util_dynarray_append(&res->obj->copies[level], struct pipe_box, *box);
if (!res->copies_warned && util_dynarray_num_elements(&res->obj->copies[level], struct pipe_box) > 100) {
perf_debug(ctx, "zink: PERF WARNING! > 100 copy boxes detected for %p\n", res);
mesa_logw("zink: PERF WARNING! > 100 copy boxes detected for %p\n", res);
res->copies_warned = true;
}
res->obj->copies_valid = true;