mesa: Implement _mesa_array_element by walking enabled arrays.
authorMathias Fröhlich <mathias.froehlich@web.de>
Wed, 3 Apr 2019 11:06:33 +0000 (13:06 +0200)
committerMathias Fröhlich <mathias.froehlich@web.de>
Sat, 4 May 2019 05:40:19 +0000 (07:40 +0200)
commitb9de48581a9d3de4b30c2f8d2fd0a8555bd480db
treecba2be23c2021cdb83463f80936f11323aa96b01
parent7a5dea63204300e6d996bdc4ebdd11277faa48a3
mesa: Implement _mesa_array_element by walking enabled arrays.

In glArrayElement, use the bitmask trick to just walk the enabled
vao arrays. This should be about equivalent in execution time to
walk the prepare aelt_context list. Finally this will allow us to
reduce the _mesa_update_state calls in a few patches.

v2: Add comments.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/main/api_arrayelt.c