gallium/u_threaded: remove the count=0 path from tc_call_set_vertex_buffers

The default path has the same behavior.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492>
This commit is contained in:
Marek Olšák 2024-02-01 00:38:47 -05:00 committed by Marge Bot
parent 6ab25f5cde
commit b66ee99bc2

View file

@ -2163,11 +2163,6 @@ tc_call_set_vertex_buffers(struct pipe_context *pipe, void *call)
struct tc_vertex_buffers *p = (struct tc_vertex_buffers *)call;
unsigned count = p->count;
if (!count) {
pipe->set_vertex_buffers(pipe, 0, false, NULL);
return call_size(tc_vertex_buffers);
}
for (unsigned i = 0; i < count; i++)
tc_assert(!p->slot[i].is_user_buffer);