mesa: reorder and pack gl_buffer_object
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Aug 2022 04:43:36 +0000 (00:43 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
commitb4de8c834e99254013b8a6f481e5be17701a420c
tree86f4c3fc184b95c680c4886ccb5f189f72329289
parent26a2502a3b77862673ea6f23d3154c8c1085bb5f
mesa: reorder and pack gl_buffer_object

The frequently-accessed fields are at the beginning, hoping
we only need to load 1 cache line to get them all.

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/mtypes.h