On Sat, Sep 10, 2011 at 06:59:39PM +0200, Maarten Lankhorst wrote:
> Hey ★,
> 
> On 09/10/2011 06:28 PM, ★ Emeric wrote:
> > Hi Maarten,
> > I tried the v2 patch with my good old geforce 8600M GS, and it worked well.
> > The CPU usage seems a little higher than usual, I'd said 60% instead of 40%
> > for a 720p video, but I'll try with a higher bitrate video and without
> > building with debug parameters to see if I can found a performance gain.
> > The only problem is that I cannot seek through the video without an segfault
> > on that error "X11 error: BadAccess (attempt to access private resource
> > denied)", I attached a gdb backtrace. It appears to be related to the
> > drawing of the mplayer OSD.
> >
> That's either a bug in mplayer or in the state tracker. What's oy and ox
> set to at the time of the crash? and where does xvimage->data point to :)
> 
This is a bug in xf86-video-nouveau actually, and it leads to memory corruption
in mplayer.

Patch below fixes it, but OSD still doesn't work.

---
From 00f7986291b86db9a09c1651eb4450c69761fe27 Mon Sep 17 00:00:00 2001
From: Marcin Slusarz <marcin.slus...@gmail.com>
Date: Sat, 10 Sep 2011 23:14:53 +0200
Subject: [PATCH] xv: support AI44/IA44

---
 src/nouveau_xv.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index 30753fa..5a5337c 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -1426,7 +1426,15 @@ NVQueryImageAttributes(ScrnInfoPtr pScrn, int id,
                        pitches[0] = size; // 4*width
                size *= *h; // 4*width*height
                break;
+       case FOURCC_AI44:
+       case FOURCC_IA44:
+               size = *w; // width
+               if (pitches)
+                       pitches[0] = size; // width
+               size *= *h; // width*height
+               break;
        default:
+               xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Unknown colorspace: 
%x\n", id);
                *w = *h = size = 0;
                break;
        }
-- 
1.7.6.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to