summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-27 19:42:36 -0600
committerBrian Paul <[email protected]>2009-09-27 19:42:36 -0600
commit5ab5f16919f6aaa19f5c92fd562e43dee18e30bc (patch)
treee6ffe665fbb586cfe46dc59234dfbcc9947fd981 /src/mesa/main/formats.c
parentb64d478a5bd4af4128938782d787abe02a0896ee (diff)
mesa: added _mesa_get_format_datatype()
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r--src/mesa/main/formats.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 62a2d70744d..afa2398ed41 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -816,3 +816,11 @@ _mesa_get_format_bits(gl_format format, GLenum pname)
return 0;
}
}
+
+
+GLenum
+_mesa_get_format_datatype(gl_format format)
+{
+ const struct gl_format_info *info = _mesa_get_format_info(format);
+ return info->DataType;
+}