mesa: optimize glPush/PopClientAttrib by removing malloc overhead
authorMarek Olšák <marek.olsak@amd.com>
Sun, 22 Mar 2020 02:15:20 +0000 (22:15 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 22:01:55 +0000 (22:01 +0000)
commiteb04db734429971ddc240ba9dc6726a991cc0a14
tree65109b6589ddda1180ae501405f3671f8638dee4
parentbeb02a781ca9a4918b7ac777aab65cc31338ee87
mesa: optimize glPush/PopClientAttrib by removing malloc overhead

just declare all structures needed by the stack in gl_context.

This improves performance by 5.6% in the game "torcs". FPS: 101.01 -> 106.73

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h
src/mesa/main/attrib.c
src/mesa/main/mtypes.h