mesa: inline vbo_context inside gl_context to remove vbo_context dereferences
authorMarek Olšák <marek.olsak@amd.com>
Fri, 27 Mar 2020 11:57:07 +0000 (07:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 22:01:55 +0000 (22:01 +0000)
commit3707cef4fb3c4a2f5e015ea2525fcd41d8875f0b
tree194025f1a5a4afe4013403ed9bf5bc775d19b053
parent42842306d3c7ba71f89022a1ebb09a4454a1b6e0
mesa: inline vbo_context inside gl_context to remove vbo_context dereferences

The number of lines in the disassembly of vbo_exec_api.c.o decreased
by 4.5%, which roughly corresponds to a decrease in instructions
for immediate mode thanks to the removal of ctx->vbo_context dereferences.

It increases performance in one Viewperf11 subtest by 2.8%.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
src/mesa/main/mtypes.h
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_context.c
src/mesa/vbo/vbo_exec.h
src/mesa/vbo/vbo_private.h
src/mesa/vbo/vbo_save.h