[Mesa-dev] [PATCH] targets/xvmc-nouveau: enable XvMC on nv30
Christoph Bumiller
e0425955 at student.tuwien.ac.at
Tue Jan 8 09:28:44 PST 2013
On 08.01.2013 18:06, Matt Turner wrote:
> On Tue, Jan 8, 2013 at 5:00 AM, Andreas Boll <andreas.boll.dev at gmail.com> wrote:
>> From: Arvind R <arvino55 at gmail.com>
>>
>> applications cannot load libXvMC.so due to nv30_screen_create being undefined.
>> This patch fixes that. And MPlayer successfully uses XvMC for
>> video-out on GeForce 9400GT
I'd say you could either hook up nv30 for hw decoding (preferred, shader
decoding won't work for reasons mentioned in irc log; if you have an
nv43+ to test, I don't), or add e.g. a -DEXCLUDE_NV30 to the build and
wrap the reference to nv30_screen_create in #ifdefs.
That would save space; but I think someone wants to turn the nv30,50,c0
parts into shared objects anyway in which case saving space isn't an
argument anymore ...
Also, I doubt shader decoding works properly on any of the nv drivers ...
>> Log:
>> vo_xvmc: Using Xv Adaptor #0 (Nouveau GeForce 8/9 Textured Video)
>> vo_xvmc: Port 63 grabed
>> vo_xvmc: Allocated Direct Context
>> vo_xvmc: data_blocks allocated
>> vo_xvmc: mv_blocks allocated
>> vo_xvmc: Motion Compensation context allocated - 8 surfaces
>> vo_xvmc: idct=1 unsigned_intra=0
>> vo_xvmc: looking for OSD support
>> Subpicture id 0x34344149
>> vo_xvmc: OSD support by backend rendering (fast)
>> vo_xvmc: Please send feedback to confirm that it works,otherwise send bugreport
>> [VD_FFMPEG] XVMC-accelerated MPEG-2.
>>
>> vo_xvmc: OSD support by backend rendering (fast)
>> vo_xvmc: Please send feedback to confirm that it works,otherwise send bugreport
>> [VD_FFMPEG] XVMC-accelerated MPEG-2.
>>
>> NOTE: This is a candidate for the 9.0 branch.
>>
>> Signed-off-by: Arvind R. <arvino55 at gmail.com>
>> Signed-off-by: Andreas Boll <andreas.boll.dev at gmail.com>
>> ---
>>
>> Patch found on http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2012-December/071265.html
>>
>> src/gallium/targets/xvmc-nouveau/Makefile | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/src/gallium/targets/xvmc-nouveau/Makefile b/src/gallium/targets/xvmc-nouveau/Makefile
>> index f81f409..c9525a4 100644
>> --- a/src/gallium/targets/xvmc-nouveau/Makefile
>> +++ b/src/gallium/targets/xvmc-nouveau/Makefile
>> @@ -5,6 +5,7 @@ LIBBASENAME = XvMCnouveau
>>
>> PIPE_DRIVERS = \
>> $(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
>> + $(TOP)/src/gallium/drivers/nv30/libnv30.a \
>> $(TOP)/src/gallium/drivers/nv50/libnv50.a \
>> $(TOP)/src/gallium/drivers/nvc0/libnvc0.a \
>> $(TOP)/src/gallium/drivers/nouveau/libnouveau.a \
>> --
>> 1.7.10.4
> Does it actually work on nv30 though? :)
>
> I ran into this and asked on IRC a few months ago. Attached is the conversation.
>
> Since libnv30 includes support for nv40, I guess it should be included
> in the build. Maybe something more needs to be done to disable nv30
> support though?
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list