mesa: refactor bind_texture
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 25 Jun 2019 14:53:49 +0000 (16:53 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 28 Jun 2019 19:41:30 +0000 (15:41 -0400)
commit274104ec381ebb1505e0e078959f94724b51ec58
tree68f8fde63a74615b34041b337b3230eb78bb4ebd
parent6535964fdf77a3f4bd356b089629f783957a3cd9
mesa: refactor bind_texture

Splits texture lookup and binding actions.

The new _mesa_lookup_or_create_texture will be useful to implement the EXT_direct_state_access extension.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texobj.c
src/mesa/main/texobj.h