forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Xv driver

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> spu-medialib
View previous topic :: View next topic  
Author Message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Mon Oct 22, 2007 4:42 am    Post subject: Xv driver Reply with quote

So i eventually started to think of all the people using X

And started to poke around in Xv.
I cant belive im doing this Xv is painful for me.

Anyhow i have gotten to the stage where i at least have something registered in X when i start it up.

Please not that we are still only using spu's here and that everything below is just empty at this point of time.

If there are any X or Xv experts out there willing to help let us know.

To be continued

Code:

X-Video Extension version 2.2
screen #0
  Adaptor #0: "SPU Video Acelleration Layer"
    number of ports: 1
    port base: 60
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x22
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
    number of attributes: 4
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -64 to 63)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range 0 to 31)
              client settable attribute
              client gettable attribute (current value is 16)
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client gettable attribute (current value is 1)
    maximum XvImage size: 1920 x 1080
    Number of image formats: 4
      id: 0x32595559 (2YUY)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x59565955 (YVYU)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (21VY)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (024I)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3

        type: YUV (planar)

_________________
Don't do it alone.
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Thu Oct 25, 2007 1:21 pm    Post subject: Reply with quote

Added the Xv driver to svn working on making it user friendly to install.

Disclaimer:
This is very very experimental but i got it working for 1080p playback with X running without making a complete mess out of everything..

scaling also seems to work

If it doesnt update properly after fullscreen press f a couple of more times in lets say mplayer.
using the mouse can cuse it to lock up etc etc etc..

You might have to kill -9 X :) if it gets stuck.

You will not be able to run this driver yet w/o loads of knowledge about these kind of things as i have not yet fixed the install guideline.


To be found here:
http://svn.ps2dev.org/listing.php?repname=ps3ware&path=%2Ftrunk%2Fxf86-video-spu%2F&rev=0&sc=0

requires spu-medialib libspe2 and pthreads.
_________________
Don't do it alone.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Nov 02, 2007 3:51 am    Post subject: Reply with quote

Hi unsolo,

I got the driver compiled but if I'm adding it as spu_fbdev_drv into the xorg.conf X can't start.
Could you post me your device section of your xorg.conf?
Thanks.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Nov 02, 2007 3:57 am    Post subject: Reply with quote

got it. ubuntu is using a different path for the drivers.
however, X stops with a backtrace.
I added spu_fbdev into the xorg device section:

Section "Device"
Identifier "Generic Video Card"
Driver "spu_fbdev"
Option "UseFBDev" "true"
EndSection

startx output:

root@localhost:/etc/X11# startx
xauth: creating new authority file /home/birdman/.serverauth.23599

X: warning; process set to priority -1 instead of requested priority 0

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Linux Ubuntu (xorg-server 2:1.3.0.0.dfsg-12ubuntu8)
Current Operating System: Linux localhost 2.6.22-14-cell #1 SMP Sun Oct 14 23:42:29 GMT 2007 ppc64
Build Date: 29 September 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov 1 17:56:41 2007
(==) Using config file: "/etc/X11/xorg.conf"
(EE) AIGLX: Screen 0 is not DRI capable
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

Backtrace:
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Fri Nov 02, 2007 7:46 pm    Post subject: Reply with quote

I think this driver also has a 32 bit issue tho..

Section "Device"
Identifier "Videocard0"
Driver "spu_fbdev"
Option "ShadowFB" "false"
EndSection
_________________
Don't do it alone.
Back to top
View user's profile Send private message
toxicer



Joined: 18 Apr 2007
Posts: 17

PostPosted: Fri Nov 02, 2007 9:59 pm    Post subject: Reply with quote

So would it make more sense compiling it iwth 64bit?
Back to top
View user's profile Send private message
jonathan



Joined: 21 Sep 2007
Posts: 23
Location: Tasmania, Australia

PostPosted: Mon Mar 03, 2008 1:03 pm    Post subject: Reply with quote

32bit works for me.

For some reason, my xorg-server didn't like the _ in the driver name (kept looking for spufbdev), and renaming the driver to spufbdev_drv.so didn't work as the entry point is derived from the file name, so I replaced all spu_fb with spufb (and SPU_FB with SPUFB) in spu_fbdev.c

Also, I fixed the spelling of 'Acceleration' in spu_video.c so xvinfo output is nicer ;)
Back to top
View user's profile Send private message
jonathan



Joined: 21 Sep 2007
Posts: 23
Location: Tasmania, Australia

PostPosted: Mon Mar 03, 2008 1:12 pm    Post subject: Reply with quote

Also, xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Image Processed\n"); in spu_video.c results in a lot of noise in /var/log/Xorg.0.log
Back to top
View user's profile Send private message
unsolo



Joined: 16 Apr 2007
Posts: 155
Location: OSLO Norway

PostPosted: Mon Mar 03, 2008 11:42 pm    Post subject: Reply with quote

Thanks did you commit it as well ?
if not please supply a patch

thanks :)
_________________
Don't do it alone.
Back to top
View user's profile Send private message
zefie



Joined: 12 Feb 2008
Posts: 6

PostPosted: Thu May 15, 2008 5:57 pm    Post subject: Reply with quote

This is a nice driver but i wish when it crashed it was as simple as X locking up or crashing. Instead the entire framebuffer locks up, as well as all USB input devices. Keyboard and mouse refuse to respond (even pressing numlock does nothing (no light on or off)). System will gracefully shutdown from the power button on PS3 though, but I wonder what could cause this driver to be killing the USB input as well.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> spu-medialib All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group