panvk: error-check get_fb_descs calls

These calls were missing error-handling, but all the pieces to do so are
already in place. Let's report the errors as appropriate.

Fixes: 5544d39f44 ("panvk: Add a CSF backend for panvk_queue/cmd_buffer")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31216>
This commit is contained in:
Erik Faye-Lund
2024-09-16 17:14:16 +02:00
committed by Marge Bot
parent 1cc4a23a46
commit cdef6cfa8c

View File

@@ -1168,7 +1168,9 @@ panvk_cmd_draw(struct panvk_cmd_buffer *cmdbuf, struct panvk_draw_info *draw)
if (result != VK_SUCCESS)
return;
get_fb_descs(cmdbuf);
result = get_fb_descs(cmdbuf);
if (result != VK_SUCCESS)
return;
}
struct cs_builder *b =
@@ -2075,8 +2077,11 @@ panvk_per_arch(CmdEndRendering)(VkCommandBuffer commandBuffer)
for (unsigned i = 0; i < fbinfo->rt_count; i++)
clear |= fbinfo->rts[i].clear;
if (clear)
get_fb_descs(cmdbuf);
if (clear) {
VkResult result = get_fb_descs(cmdbuf);
if (result != VK_SUCCESS)
return;
}
flush_tiling(cmdbuf);
issue_fragment_jobs(cmdbuf);