summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2014-11-06 13:19:45 +0100
committerIago Toral Quiroga <itoral@igalia.com>2015-01-12 11:20:28 +0100
commit1aaed753301a4c0d39173616088db66231e7298d (patch)
tree566c78efbc8658d4f3c25e63c139df22da22a400 /src/mesa/main/glformats.h
parentdeca11c0dc127caa7f8643069310ea6e0a5aea5c (diff)
downloadexternal_mesa3d-1aaed753301a4c0d39173616088db66231e7298d.zip
external_mesa3d-1aaed753301a4c0d39173616088db66231e7298d.tar.gz
external_mesa3d-1aaed753301a4c0d39173616088db66231e7298d.tar.bz2
mesa: Expose compute_component_mapping as _mesa_compute_component_mapping
This is necessary to handle conversions between array types where the driver does not support the dst format requested by the client and chooses a different format instead. We will need this in _mesa_format_convert, so move it to format_utils.c, prefix it with '_mesa_' and make it available to other files. v2: - Move _mesa_compute_component_mapping to glformats Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.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 7b03215..584909b 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -35,6 +35,9 @@
extern "C" {
#endif
+extern void
+_mesa_compute_component_mapping(GLenum inFormat, GLenum outFormat, GLubyte *map);
+
extern GLboolean
_mesa_type_is_packed(GLenum type);