gallium/u_threaded: use tc_drop_resource_reference in call_draw_single_drawid

Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11335>
This commit is contained in:
Marek Olšák
2021-06-06 13:35:51 -04:00
committed by Marge Bot
parent 988d091720
commit a6e0650d9c
@@ -2890,7 +2890,7 @@ tc_call_draw_single_drawid(struct pipe_context *pipe, void *call, uint64_t *last
pipe->draw_vbo(pipe, &info->info, info_drawid->drawid_offset, NULL, &draw, 1);
if (info->info.index_size)
pipe_resource_reference(&info->info.index.resource, NULL);
tc_drop_resource_reference(info->info.index.resource);
return call_size(tc_draw_single_drawid);
}