mesa: add EXT_dsa glEnabledIndexedEXT

Graphics / Mesa 3D Graphics Library / Mesa - Pierre-Eric Pelloux-Prayer [amd.com] - 20 July 2019 00:04 EDT

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.

b1efc9d05f0 mesa: add EXT_dsa glEnabledIndexedEXT
src/mesa/main/enable.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
src/mesa/main/get.c | 29 +++++++++++++++++++++++++++++
2 files changed, 74 insertions(+)

Upstream: cgit.freedesktop.org


  • Share