mesa: inline _mesa_handle_bind_buffer_gen and correct things
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Aug 2022 05:37:36 +0000 (01:37 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
commit6a1ede73f5ac2becaf184d79776982556277cc98
treea8e6e22721b3637b4d4d24ce0ed7e96c74712233
parent93c9be2b975a3267096d1da19873549057989f05
mesa: inline _mesa_handle_bind_buffer_gen and correct things

Changes:
- the function is inlined, which will help the next commit to improve perf
- use no_error inside the function
- if the function returns true, the buffer is non-NULL, so remove NULL
  checking in callers

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
src/mesa/main/bufferobj.c