summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2014-12-05 13:10:08 +0100
committerIago Toral Quiroga <itoral@igalia.com>2015-01-12 11:20:28 +0100
commit559a1072dab3c67f06fe23f4ad0dc15b771608c9 (patch)
tree08f8a0b02a95e9b4d7c50d04e4325e78da476fda /src/mesa/main/glformats.h
parentb1f0229140a66a36de63408b8a3eb45e11e43710 (diff)
downloadexternal_mesa3d-559a1072dab3c67f06fe23f4ad0dc15b771608c9.zip
external_mesa3d-559a1072dab3c67f06fe23f4ad0dc15b771608c9.tar.gz
external_mesa3d-559a1072dab3c67f06fe23f4ad0dc15b771608c9.tar.bz2
mesa: Add helper to convert a GL format and type to a mesa (array) format.
v2 after review by Jason Ekstrand: - Move _mesa_format_from_format_and_type to glformats - Return a mesa_format for GL_UNSIGNED_INT_8_8_8_8(_REV) v3: - Adapted to the new implementation of mesa_array_format as a plain uint32_t bitfield. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index 584909b..f77edfa 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -128,6 +128,8 @@ extern GLenum
_mesa_es3_error_check_format_and_type(GLenum format, GLenum type,
GLenum internalFormat);
+extern uint32_t
+_mesa_format_from_format_and_type(GLenum format, GLenum type);
#ifdef __cplusplus
}