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:
Erik Faye-Lund 2024-04-22 13:37:11 +02:00 committed by Marge Bot
parent 8deaf37047
commit f59e5ee5fb

View file

@ -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");