summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-07-22 11:03:13 -0600
committerBrian Paul <[email protected]>2012-07-24 08:37:29 -0600
commit8b762ebd72c1bb1a9827a667ad55ba9516505adf (patch)
tree067d330c7a15e8267dcf3855d110c2241adb1e9a /src/mesa/main/glformats.h
parentde3335dba8718efab8b80475f3fd78645def4e1c (diff)
mesa: move some format helper functions to glformats.c
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index d67ad54c00f..075b07faa0e 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -46,6 +46,30 @@ _mesa_is_enum_format_integer(GLenum format);
extern GLboolean
_mesa_is_enum_format_or_type_integer(GLenum format, GLenum type);
+extern GLboolean
+_mesa_is_color_format(GLenum format);
+
+extern GLboolean
+_mesa_is_depth_format(GLenum format);
+
+extern GLboolean
+_mesa_is_stencil_format(GLenum format);
+
+extern GLboolean
+_mesa_is_ycbcr_format(GLenum format);
+
+extern GLboolean
+_mesa_is_depthstencil_format(GLenum format);
+
+extern GLboolean
+_mesa_is_depth_or_stencil_format(GLenum format);
+
+extern GLboolean
+_mesa_is_dudv_format(GLenum format);
+
+extern GLboolean
+_mesa_is_compressed_format(struct gl_context *ctx, GLenum format);
+
extern GLenum
_mesa_base_format_to_integer_format(GLenum format);