gallium/u_threaded: remove refcounting for draw mesh indirect buffers

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37568>
This commit is contained in:
Marek Olšák 2025-09-25 09:24:56 -04:00 committed by Marge Bot
parent 381a88fdbd
commit 85db3e7de5

View file

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