mesa: add EXT_dsa glEnabledIndexedEXT
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 26 Apr 2019 14:50:57 +0000 (16:50 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 20 Jul 2019 00:04:07 +0000 (20:04 -0400)
commitb1efc9d05f0f70a0e7d3e91c2f31084bfb09581b
treeac5c90e180717c9d1c55535e7e6817367c7ca01a
parentff0cafc8f3ae85b9bc604334082da999a0abb2a0
mesa: add EXT_dsa glEnabledIndexedEXT

The implementation uses _mesa_ActiveTexture to change the active texture unit and
then reset it.

It causes an unnecessary _NEW_TEXTURE_STATE but:
  - adding an index argument to _mesa_set_enable causes a lot of changes (~140 callers)
  - enable_texture (called by _mesa_set_enable) might cause a _NEW_TEXTURE_STATE
    anyway.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/enable.c
src/mesa/main/get.c