[MPlayer-dev-eng] [PATCH] NetBSD sparc64 and vis

Jan Knutar jknutar at nic.fi
Sun Aug 26 12:34:09 CEST 2007


Hello

Currently on sparc64, the MPlayer configure sets -mcpu=v9, this fails 
after the new VIS stuff in swscale. v9 does not include the VIS 
extensions. -mcpu=ultrasparc does. See  
http://lists.mplayerhq.hu/pipermail/mplayer-users/2007-August/068604.html
for example of the errors. 

The old vis stuff in libavcodec/sparc is written in a different way that 
doesn't trigger this.

Attached is a patch that makes configure check the output of sysctl 
hw.model on netbsd sparc64, and if 'UltraSPARC' is found there, vis is 
enabled and -mcpu=ultrasparc is set. Vis is disabled if running on 
non-ultrasparc sparc64.

It's worth mentioning at this point that NetBSD doesn't run on any 
UltraSPARC III systems ( http://www.netbsd.org/ports/sparc64/ )
Fujitsu has a few v9 SPARCs, I don't know if these have VIS or not, and 
if it's relevant to NetBSD or not. Interestingly the Solaris-specific 
code in configure disables VIS on sun4v (T1 aka Niagara?).

I'm not sure if the default of -mcpu=v9 and enabled vis makes much sense 
at all for the other operating systems either.

Oh and did I mention that if you actually try to use the vis accelerated 
yuv2rgb, it ends up segfaulting? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netbsd-sparc64.patch
Type: text/x-diff
Size: 784 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070826/2cd2de41/attachment.patch>


More information about the MPlayer-dev-eng mailing list