mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
zink: make mesa_logw separate from perf_debug
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22899>
This commit is contained in:
parent
6098c3f9c0
commit
443e098f7a
2 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue