panfrost: assert that drmSyncobjWait returns 0

This is really just a small band-aid, and instead we should start
reporting errors from this function. But for now, let's just assert that
no error occurrecd, as that's slightly better than ignoring it.

CID: 1592892
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28856>
This commit is contained in:
Erik Faye-Lund 2024-04-22 13:42:12 +02:00 committed by Marge Bot
parent f59e5ee5fb
commit 70dcdb3130

View file

@ -1040,8 +1040,10 @@ GENX(csf_init_context)(struct panfrost_context *ctx)
assert(!ret);
/* Wait before freeing the buffer. */
drmSyncobjWait(panfrost_device_fd(dev), &ctx->syncobj, 1, INT64_MAX, 0,
NULL);
ret = drmSyncobjWait(panfrost_device_fd(dev), &ctx->syncobj, 1, INT64_MAX,
0, NULL);
assert(!ret);
panfrost_bo_unreference(cs_bo);
}