From 85db3e7de5c9b0f1b1a0a55717e5fe0d7ac268b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 25 Sep 2025 09:24:56 -0400 Subject: [PATCH] gallium/u_threaded: remove refcounting for draw mesh indirect buffers Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index d35c1daf2d4..05e5366570f 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -5201,8 +5201,6 @@ tc_call_draw_mesh_tasks(struct pipe_context *pipe, void *call) struct tc_draw_mesh_tasks *p = to_call(call, tc_draw_mesh_tasks); pipe->draw_mesh_tasks(pipe, &p->info); - tc_drop_resource_reference(p->info.indirect); - tc_drop_resource_reference(p->info.indirect_draw_count); return call_size(tc_draw_mesh_tasks); } @@ -5214,8 +5212,6 @@ tc_draw_mesh_tasks(struct pipe_context *_pipe, struct tc_draw_mesh_tasks *p = tc_add_call(tc, TC_CALL_draw_mesh_tasks, tc_draw_mesh_tasks); - tc_set_resource_reference(&p->info.indirect, info->indirect); - tc_set_resource_reference(&p->info.indirect_draw_count, info->indirect_draw_count); memcpy(&p->info, info, sizeof(*info)); if (info->indirect)