mesa: GetTexLevelParameter{if}v changes for OpenGL ES 3.1
authorTapani Pälli <tapani.palli@intel.com>
Tue, 28 Jul 2015 08:25:35 +0000 (11:25 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 26 Aug 2015 05:38:25 +0000 (08:38 +0300)
commite0c2ea03377b52058324f735f7e1f55bb9d29750
tree481fdaec7afb7e58659119085790d875a359631d
parentae8d0e7abef27b25637ee25b857c44f13aef0d11
mesa: GetTexLevelParameter{if}v changes for OpenGL ES 3.1

Patch refactors existing parameters check to first check common enums
between desktop GL and GLES 3.1 and modifies get_tex_level_parameter_image
to be compatible with enums specified in 3.1.

v2: remove extra is_gles31() checks (suggested by Ilia)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> (v1)
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com> (v1)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/texparam.c