st/mesa: Reduce array updates due to current changes.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sat, 22 Dec 2018 15:49:16 +0000 (16:49 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Tue, 26 Feb 2019 04:42:04 +0000 (05:42 +0100)
commit1ab21592499b4ff55d08d0c8551325924fb4ec3c
tree457542989e2fcf0530955fb9450b6c53f62218cb
parent6f423036462af3f0863de5f8b617c2f5cc1fd278
st/mesa: Reduce array updates due to current changes.

Since using bitmasks we can easily check if we have any
current value that is potentially uploaded on array setup.
So check for any potential vertex program input that is not
already a vao enabled array. Only flag array update if there is
a potential overlap.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h