From b66ee99bc217192386babe4ea26ee2b2a47a8a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 1 Feb 2024 00:38:47 -0500 Subject: [PATCH] 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 Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index b4e85d6effc..86b37dc2376 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -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);