mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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:
parent
f59e5ee5fb
commit
70dcdb3130
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue