[Mesa-dev] [PATCH 1/4] gbm: Add sRGB formats.

John Kåre Alsaker john.kare.alsaker at gmail.com
Sun Sep 9 09:46:28 PDT 2012


---
 src/gbm/main/gbm.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h
index 9d2a030..32211a7 100644
--- a/src/gbm/main/gbm.h
+++ b/src/gbm/main/gbm.h
@@ -127,6 +127,9 @@ enum gbm_bo_format {
 #define GBM_FORMAT_RGBA8888	__gbm_fourcc_code('R', 'A', '2', '4') /* [31:0] R:G:B:A 8:8:8:8 little endian */
 #define GBM_FORMAT_BGRA8888	__gbm_fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */
 
+#define GBM_FORMAT_XRGB8888_SRGB __gbm_fourcc_code('X', 'r', '2', '4') /* [31:0] x:R:G:B 8:8:8:8 little endian with sRGB gamma */
+#define GBM_FORMAT_ARGB8888_SRGB __gbm_fourcc_code('A', 'r', '2', '4') /* [31:0] A:R:G:B 8:8:8:8 little endian with sRGB gamma for color components */
+
 #define GBM_FORMAT_XRGB2101010	__gbm_fourcc_code('X', 'R', '3', '0') /* [31:0] x:R:G:B 2:10:10:10 little endian */
 #define GBM_FORMAT_XBGR2101010	__gbm_fourcc_code('X', 'B', '3', '0') /* [31:0] x:B:G:R 2:10:10:10 little endian */
 #define GBM_FORMAT_RGBX1010102	__gbm_fourcc_code('R', 'X', '3', '0') /* [31:0] R:G:B:x 10:10:10:2 little endian */
-- 
1.7.12



More information about the mesa-dev mailing list