Mesa (mesa_7_7_branch): st/xorg: enable yv12 for xv

Zack Rusin zack at kemper.freedesktop.org
Thu Dec 10 10:07:44 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 690d888416909f0449e6ebbfa46f18079b68b1bd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=690d888416909f0449e6ebbfa46f18079b68b1bd

Author: Zack Rusin <zackr at vmware.com>
Date:   Wed Nov 18 12:06:32 2009 -0500

st/xorg: enable yv12 for xv

---

 src/gallium/state_trackers/xorg/xorg_xv.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c
index b3315dc..fdc1cdb 100644
--- a/src/gallium/state_trackers/xorg/xorg_xv.c
+++ b/src/gallium/state_trackers/xorg/xorg_xv.c
@@ -73,10 +73,11 @@ static XF86VideoEncodingRec DummyEncoding[1] = {
    }
 };
 
-#define NUM_IMAGES 2
+#define NUM_IMAGES 3
 static XF86ImageRec Images[NUM_IMAGES] = {
    XVIMAGE_UYVY,
    XVIMAGE_YUY2,
+   XVIMAGE_YV12,
 };
 
 struct xorg_xv_port_priv {
@@ -532,6 +533,7 @@ put_image(ScrnInfoPtr pScrn,
    switch (id) {
    case FOURCC_UYVY:
    case FOURCC_YUY2:
+   case FOURCC_YV12:
    default:
       srcPitch = width << 1;
       break;
@@ -580,6 +582,7 @@ query_image_attributes(ScrnInfoPtr pScrn,
    switch (id) {
    case FOURCC_UYVY:
    case FOURCC_YUY2:
+   case FOURCC_YV12:
    default:
       size = *w << 1;
       if (pitches)



More information about the mesa-commit mailing list