Mesa (master): mesa: add comment for _mesa_get_srgb_format_linear()

Brian Paul brianp at kemper.freedesktop.org
Sun Jan 16 03:41:34 UTC 2011


Module: Mesa
Branch: master
Commit: aad7219f80e21739c521d58a6e32a14114ac0bb0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aad7219f80e21739c521d58a6e32a14114ac0bb0

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Jan 15 20:41:06 2011 -0700

mesa: add comment for _mesa_get_srgb_format_linear()

---

 src/mesa/main/formats.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 3ccc40b..b8fed18 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -1090,6 +1090,11 @@ _mesa_get_format_color_encoding(gl_format format)
    }
 }
 
+
+/**
+ * For an sRGB format, return the corresponding linear color space format.
+ * For non-sRGB formats, return the format as-is.
+ */
 gl_format
 _mesa_get_srgb_format_linear(gl_format format)
 {




More information about the mesa-commit mailing list