All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] nouveau: Add support for XvMC acceleration
       [not found]   ` <4E6B977B.8040402@gmail.com>
@ 2011-09-10 22:54     ` Marcin Slusarz
  2011-09-13 13:52       ` Marcin Slusarz
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Slusarz @ 2011-09-10 22:54 UTC (permalink / raw)
  To: Maarten Lankhorst; +Cc: mesa-dev, nouveau

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.slusarz@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] nouveau: Add support for XvMC acceleration
  2011-09-10 22:54     ` [PATCH v2] nouveau: Add support for XvMC acceleration Marcin Slusarz
@ 2011-09-13 13:52       ` Marcin Slusarz
       [not found]         ` <20110913135255.GA6051-OI9uyE9O0yo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Slusarz @ 2011-09-13 13:52 UTC (permalink / raw)
  To: Maarten Lankhorst, Ben Skeggs; +Cc: mesa-dev, nouveau

On Sun, Sep 11, 2011 at 12:54:20AM +0200, Marcin Slusarz wrote:
> 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.
> 

With commit f626d99edf17a1d3203b257f6fe6993229ea6866 in mesa OSD in mplayer
works (Yeah! ;). I've submitted patch for mplayer to disable OSD instead of
crashing.

Ben, can you review and push patch in the previous mail? (xv: support AI44/IA44)
Thanks.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] xv: add support for AI44/IA44
       [not found]         ` <20110913135255.GA6051-OI9uyE9O0yo@public.gmane.org>
@ 2011-10-08 17:43           ` Marcin Slusarz
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Slusarz @ 2011-10-08 17:43 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Marcin Slusarz <marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Sat, 10 Sep 2011 23:14:53 +0200
Subject: [PATCH] xv: support AI44/IA44

It's needed for osd in mplayer's xvmc output.
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-08 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4E6B180B.1070401@gmail.com>
     [not found] ` <CAMmP6nczOaGwXbuaNEc-nrTw7kvGdjOr-6+qbWTMqm9s_UkpMA@mail.gmail.com>
     [not found]   ` <4E6B977B.8040402@gmail.com>
2011-09-10 22:54     ` [PATCH v2] nouveau: Add support for XvMC acceleration Marcin Slusarz
2011-09-13 13:52       ` Marcin Slusarz
     [not found]         ` <20110913135255.GA6051-OI9uyE9O0yo@public.gmane.org>
2011-10-08 17:43           ` [PATCH] xv: add support for AI44/IA44 Marcin Slusarz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.