summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-12 16:18:14 -0700
committerEric Anholt <[email protected]>2011-11-03 23:29:52 -0700
commit5f140bceda4c11b68c16ce175533f496434ff9a3 (patch)
tree57fe4db1bfce04bd9ae7873a98be37407c5934ce /src/mesa/main/formats.h
parente887df9bf56195dafdd945755cc52ac4cd4aab62 (diff)
mesa: Add a function for comparing gl_format to format/type.
This should be useful in making more generic fast paths in the pixel paths. v2: Add note about PACK_SWAP_BYTES, and fix up for endianness by synchronizing with memcpy_texture paths in texstore.c. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index 12758f03e1a..f24d52548de 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -318,5 +318,8 @@ _mesa_get_uncompressed_format(gl_format format);
extern GLuint
_mesa_format_num_components(gl_format format);
+GLboolean
+_mesa_format_matches_format_and_type(gl_format gl_format,
+ GLenum format, GLenum type);
#endif /* FORMATS_H */