summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2014-12-05 13:10:08 +0100
committerIago Toral Quiroga <[email protected]>2015-01-12 11:20:28 +0100
commit559a1072dab3c67f06fe23f4ad0dc15b771608c9 (patch)
tree08f8a0b02a95e9b4d7c50d04e4325e78da476fda /src/mesa/main/glformats.h
parentb1f0229140a66a36de63408b8a3eb45e11e43710 (diff)
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 <[email protected]>
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 584909bfa45..f77edfa360a 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
}