mesa: refactor compressed_tex_sub_image function
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 7 Aug 2019 12:42:59 +0000 (14:42 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 19 Aug 2019 22:49:43 +0000 (18:49 -0400)
commit7df233d68dc11df3e501e001bec550da10aef92a
tree32ead9858b25220dc6686f48e06c89fb652b47a1
parent6c5d9838655286e05e74419c6e54712799284c10
mesa: refactor compressed_tex_sub_image function

Combine compressed_tex_sub_image, compressed_tex_sub_image_error and
compressed_tex_sub_image_no_error in a single function.

The added "enum tex_mode mode" parameter allows to implement the
DSA / non-DSA variants and their error/no_error combination.

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