mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 23:50:11 +01:00
gallium/u_threaded: remove refcounting for clear_buffer
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37568>
This commit is contained in:
parent
08c3edac48
commit
381a88fdbd
1 changed files with 1 additions and 2 deletions
|
|
@ -4967,7 +4967,6 @@ tc_call_clear_buffer(struct pipe_context *pipe, void *call)
|
|||
|
||||
pipe->clear_buffer(pipe, p->res, p->offset, p->size, p->clear_value,
|
||||
p->clear_value_size);
|
||||
tc_drop_resource_reference(p->res);
|
||||
return call_size(tc_clear_buffer);
|
||||
}
|
||||
|
||||
|
|
@ -4983,7 +4982,7 @@ tc_clear_buffer(struct pipe_context *_pipe, struct pipe_resource *res,
|
|||
|
||||
tc_buffer_disable_cpu_storage(res);
|
||||
|
||||
tc_set_resource_reference(&p->res, res);
|
||||
p->res = res;
|
||||
tc_add_to_buffer_list(&tc->buffer_lists[tc->next_buf_list], res);
|
||||
p->offset = offset;
|
||||
p->size = size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue