zink: fix up KILL to a more sensible log message

cc: mesa-stable

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17009>
(cherry picked from commit 399104f049)
This commit is contained in:
Mike Blumenkrantz 2022-06-13 15:19:30 -04:00 committed by Dylan Baker
parent 61cf43cea1
commit c1f7b8edd7
2 changed files with 2 additions and 2 deletions

View file

@ -1732,7 +1732,7 @@
"description": "zink: fix up KILL to a more sensible log message",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -516,7 +516,7 @@ kill_swapchain(struct zink_context *ctx, struct zink_resource *res)
{
struct zink_screen *screen = zink_screen(ctx->base.screen);
/* dead swapchain */
fprintf(stderr, "KILL %p\n", res);
mesa_loge("zink: swapchain killed %p\n", res);
zink_batch_reference_resource(&ctx->batch, res);
struct pipe_resource *pres = screen->base.resource_create(&screen->base, &res->base.b);
zink_resource_object_reference(screen, &res->obj, zink_resource(pres)->obj);