summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/eval.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-21 20:18:02 -0400
committerMarek Olšák <[email protected]>2020-04-06 10:27:59 -0400
commita0a0c68150b4dbba469c62159a327ae9465f6016 (patch)
tree9bae5b98e11c883794c7116f2f79463bc056ffd0 /src/mesa/main/eval.h
parentdbdd0149ed5b28730a31ebc2bc49f8e955523bbb (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