diff options
author | Marek Olšák <[email protected]> | 2020-03-21 20:18:02 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-04-06 10:27:59 -0400 |
commit | a0a0c68150b4dbba469c62159a327ae9465f6016 (patch) | |
tree | 9bae5b98e11c883794c7116f2f79463bc056ffd0 /src/mesa/main/eval.h | |
parent | dbdd0149ed5b28730a31ebc2bc49f8e955523bbb (diff) |
mesa: optimize initialization of new VAOs
Precompute the default state in gl_context, and just copy it when we create
a VAO.
This also helps glPushClientAttrib function, which always creates a VAO,
which has a substantial CPU overhead in profiles.
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Diffstat (limited to 'src/mesa/main/eval.h')
0 files changed, 0 insertions, 0 deletions