summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2010-01-03 02:14:36 +0100
committerMaarten Maathuis <madman2003@gmail.com>2010-01-03 03:10:33 +0100
commit061cb284b93612848296599759b915a4d66b6d01 (patch)
treec2cccfe1533c477441559e7ac3da95bb0845f8c2
parent8ca5a7383aad0e0557b3c9a1e9edd5431cd509fc (diff)
exa: Some compat defines for new pixman formats.
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
-rw-r--r--src/nv50_exa.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nv50_exa.c b/src/nv50_exa.c
index 10a3a64..59c198f 100644
--- a/src/nv50_exa.c
+++ b/src/nv50_exa.c
@@ -431,6 +431,26 @@ NV50EXAUploadSIFC(const char *src, int src_pitch,
return TRUE;
}
+/* Compat defines for pre 1.7 xservers. */
+#ifndef PICT_a2b10g10r10
+#define PICT_a2b10g10r10 PICT_FORMAT(32, PICT_TYPE_ABGR, 2, 10, 10, 10)
+#endif
+#ifndef PICT_x2b10g10r10
+#define PICT_x2b10g10r10 PICT_FORMAT(32, PICT_TYPE_ABGR, 0, 10, 10, 10)
+#endif
+#ifndef PICT_a2r10g10b10
+#define PICT_a2r10g10b10 PICT_FORMAT(32, PICT_TYPE_ARGB, 2, 10, 10, 10)
+#endif
+#ifndef PICT_x2r10g10b10
+#define PICT_x2r10g10b10 PICT_FORMAT(32, PICT_TYPE_ARGB, 0, 10, 10, 10)
+#endif
+#ifndef PICT_b8g8r8a8
+#define PICT_b8g8r8a8 PIXMAN_FORMAT(32,PIXMAN_TYPE_BGRA,8,8,8,8)
+#endif
+#ifndef PICT_b8g8r8x8
+#define PICT_b8g8r8x8 PIXMAN_FORMAT(32,PIXMAN_TYPE_BGRA,0,8,8,8)
+#endif
+
static Bool
NV50EXACheckRenderTarget(PicturePtr ppict)
{