zink: make swapchain kill message more descriptive

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16776>
(cherry picked from commit 9f7029169b)
This commit is contained in:
Mike Blumenkrantz 2022-05-30 09:13:17 -04:00 committed by Dylan Baker
parent 87a3240d57
commit f1dd0af4cd
2 changed files with 4 additions and 3 deletions

View file

@ -472,7 +472,7 @@
"description": "zink: make swapchain kill message more descriptive",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -750,8 +750,9 @@ zink_kopper_update(struct pipe_screen *pscreen, struct pipe_resource *pres, int
*h = res->base.b.height0;
return true;
}
if (update_caps(screen, cdt) != VK_SUCCESS) {
mesa_loge("zink: failed to update swapchain capabilities");
VkResult ret = update_caps(screen, cdt);
if (ret != VK_SUCCESS) {
mesa_loge("zink: failed to update swapchain capabilities: %s", vk_Result_to_str(ret));
cdt->is_kill = true;
return false;
}