mesa: add new helper _mesa_get_texobj_by_target_and_texunit
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 30 Apr 2019 11:37:12 +0000 (13:37 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 6 Aug 2019 21:03:06 +0000 (17:03 -0400)
commit0e595326c4d728f17abc7c72f9a263965ff65da9
tree4ef8581dd85d9010d7acb9993965f9531f21ceee
parent58030d2b3ded667585f4f5e7bc459008f7ba7e8f
mesa: add new helper _mesa_get_texobj_by_target_and_texunit

Based on the 'static get_texobj_by_target' function from texparam.c,
but extended to also take the texunit as a parameter.

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