gallium/util: optimize pipe_vertex_buffer_reference binding the same buffer
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 Jan 2021 21:35:15 +0000 (16:35 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 Jan 2021 23:53:35 +0000 (23:53 +0000)
commit104a41bd0743596f7eccadcef3a70a3d40c370d7
tree287285597feaa6073d0b93eaadd63c71e2b8ca15
parentcf82b3dc74c1e30704b01fe85b2d0fcfd1081bc8
gallium/util: optimize pipe_vertex_buffer_reference binding the same buffer

This eliminates atomic ops when the buffer doesn't change.

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/util/u_inlines.h