summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glformats.h
diff options
context:
space:
mode:
authorEduardo Lima Mitev <[email protected]>2016-02-03 13:40:27 +0100
committerEduardo Lima Mitev <[email protected]>2016-03-03 15:14:07 +0100
commitb1755535ecfb5bacf21c3118c359196ad81b5e68 (patch)
treed6c1d91828895985e9202395ba6910ced64ef649 /src/mesa/main/glformats.h
parent87b2de3998fd26767af437ffe512779dc2e8d404 (diff)
mesa/glformats: Add a helper function _mesa_is_srgb_format()
Returns true if the passed format is an sRGB format, false otherwise. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r--src/mesa/main/glformats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h
index b3668556da2..00d2767085d 100644
--- a/src/mesa/main/glformats.h
+++ b/src/mesa/main/glformats.h
@@ -101,6 +101,9 @@ _mesa_is_depth_or_stencil_format(GLenum format);
extern GLboolean
_mesa_is_compressed_format(const struct gl_context *ctx, GLenum format);
+extern GLboolean
+_mesa_is_srgb_format(GLenum format);
+
extern GLenum
_mesa_base_format_to_integer_format(GLenum format);