summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2016-03-09 11:38:54 -0800
committerAnuj Phogat <[email protected]>2016-05-03 03:43:17 -0700
commit9163c37349a2f4ddb3ebc2722f8a768e282884a0 (patch)
tree90ef8847860056eafc59061a2275162d8426a77b /src/mesa/main/formats.h
parent6abb1b4984bba5560baccd53e68237ab86822ec0 (diff)
mesa: Add a helper function to query 3D block sizes
Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index 794d599db3b..c6653bc5984 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -663,6 +663,10 @@ _mesa_get_format_base_format(uint32_t format);
extern void
_mesa_get_format_block_size(mesa_format format, GLuint *bw, GLuint *bh);
+extern void
+_mesa_get_format_block_size_3d(mesa_format format, GLuint *bw,
+ GLuint *bh, GLuint *bd);
+
extern mesa_array_format
_mesa_array_format_flip_channels(mesa_array_format format);