mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
panfrost: check return-value from u_trim_pipe_prim
This is slightly cleaner than what we currently do. It shouldn't matter in difference, though. CID: 1515978 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
8deaf37047
commit
f59e5ee5fb
1 changed files with 1 additions and 2 deletions
|
|
@ -2760,9 +2760,8 @@ panfrost_launch_xfb(struct panfrost_batch *batch,
|
|||
|
||||
/* TODO: XFB with index buffers */
|
||||
// assert(info->index_size == 0);
|
||||
u_trim_pipe_prim(info->mode, &count);
|
||||
|
||||
if (count == 0)
|
||||
if (!u_trim_pipe_prim(info->mode, &count))
|
||||
return;
|
||||
|
||||
perf_debug(batch->ctx, "Emulating transform feedback");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue