cso_context,u_vbuf: add take_ownership param into set_vertex_buffers
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 Jan 2021 21:32:42 +0000 (16:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 Jan 2021 23:53:35 +0000 (23:53 +0000)
commita4a21b6104e7692de070a6f48a768d1894b732ac
treef20493e2629c9bff359be9cb039d6793d10db10c
parent27dcb466293f2ab3f80a141fd0b8c14617a8e37f
cso_context,u_vbuf: add take_ownership param into set_vertex_buffers

st/mesa will use this to skip atomic ops for reference counting.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8298>
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
src/gallium/auxiliary/util/u_vbuf.c
src/gallium/auxiliary/util/u_vbuf.h
src/mesa/state_tracker/st_atom_array.c