summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-13 09:41:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-13 09:40:27 +0100
commit0e726b85ca6013ae9dc51391aaa309203352b61e (patch)
treeae5b1709f30edc6a168bd616ff6058b2f77a757a
parent9f54107f866a25cf670f81f7c52b8c108728c6a5 (diff)
i915: Add a2r10g10b10 format and friends
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i915_render.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/i915_render.c b/src/i915_render.c
index 6ce72563..be89b55f 100644
--- a/src/i915_render.c
+++ b/src/i915_render.c
@@ -79,16 +79,18 @@ static struct blendinfo i915_blend_op[] = {
};
static struct formatinfo i915_tex_formats[] = {
+ {PICT_a8, MAPSURF_8BIT | MT_8BIT_A8},
{PICT_a8r8g8b8, MAPSURF_32BIT | MT_32BIT_ARGB8888},
{PICT_x8r8g8b8, MAPSURF_32BIT | MT_32BIT_XRGB8888},
{PICT_a8b8g8r8, MAPSURF_32BIT | MT_32BIT_ABGR8888},
{PICT_x8b8g8r8, MAPSURF_32BIT | MT_32BIT_XBGR8888},
+ {PICT_a2r10g10b10, MAPSURF_32BIT | MT_32BIT_ARGB2101010},
+ {PICT_a2b10g10r10, MAPSURF_32BIT | MT_32BIT_ABGR2101010},
{PICT_r5g6b5, MAPSURF_16BIT | MT_16BIT_RGB565},
{PICT_a1r5g5b5, MAPSURF_16BIT | MT_16BIT_ARGB1555},
{PICT_x1r5g5b5, MAPSURF_16BIT | MT_16BIT_ARGB1555},
{PICT_a4r4g4b4, MAPSURF_16BIT | MT_16BIT_ARGB4444},
{PICT_x4r4g4b4, MAPSURF_16BIT | MT_16BIT_ARGB4444},
- {PICT_a8, MAPSURF_8BIT | MT_8BIT_A8},
};
static uint32_t i915_get_blend_cntl(int op, PicturePtr mask,
@@ -156,6 +158,10 @@ static Bool i915_get_dest_format(PicturePtr dest_picture, uint32_t * dst_format)
case PICT_x1r5g5b5:
*dst_format = COLR_BUF_ARGB1555;
break;
+ case PICT_a2r10g10b10:
+ case PICT_x2r10g10b10:
+ *dst_format = COLR_BUF_ARGB2AAA;
+ break;
case PICT_a8:
*dst_format = COLR_BUF_8BIT;
break;