summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2015-06-12 12:09:05 -0700
committerAnuj Phogat <anuj.phogat@gmail.com>2015-07-24 10:48:58 -0700
commit0127580647ee23d543228f0b7f42bd688e76f2bd (patch)
tree17659435f88e9c6be7e3d56aaef2f71d5fbf571c /src/mesa/main/glformats.h
parentbbbefec7323d0a338346233ab4ab715bcf4e1b78 (diff)
downloadexternal_mesa3d-0127580647ee23d543228f0b7f42bd688e76f2bd.zip
external_mesa3d-0127580647ee23d543228f0b7f42bd688e76f2bd.tar.gz
external_mesa3d-0127580647ee23d543228f0b7f42bd688e76f2bd.tar.bz2
mesa: Add a helper function _mesa_unpack_format_to_base_format()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index 8881cb7..419955a 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -101,6 +101,9 @@ _mesa_is_compressed_format(const struct gl_context *ctx, GLenum format);
extern GLenum
_mesa_base_format_to_integer_format(GLenum format);
+extern GLenum
+_mesa_unpack_format_to_base_format(GLenum format);
+
extern GLboolean
_mesa_base_format_has_channel(GLenum base_format, GLenum pname);