mesa: refactor get_texture_image to remove duplicate code
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 2 Jul 2019 08:59:21 +0000 (10:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 20 Jul 2019 00:03:40 +0000 (20:03 -0400)
commit0d8826f723cd8868b5271f17f18a1ab4548a1199
tree220574fd77cf41e2e5597eac5653524ec2b6cdca
parent666ea30017648197a786dbe26124da791ba6897e
mesa: refactor get_texture_image to remove duplicate code

Move shared code in a new function (_get_texture_image) and use it instead
of duplicating the same lines.
Will be also used by the EXT_dsa functions (GetTextureImageEXT and GetMultiTexImageEXT).

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