DGA Segfault

Hi

I’m just trying to get my programme to use DGA with the XFree86 4.0.3 nv
driver so I can use a proper hardware SDL_Flip() and to speed up blitting. I
have run the dga test application that comes with X and it works fine, so I
assume dga is set up OK. Setting SDL_VIDEODRIVER=dga also works as I check
the video info settings before setting the video mode and that reports lots
of nice hardware goodies it can use :slight_smile: compared to the X11 software
everything :slight_smile:

However, my programme crashes with the standard SDL Parachute SEGFAULT signal
handler when I issue the SDL_SetVideoMode function as below:

screen=SDL_SetVideoMode(800,600, 16, SDL_FULLSCREEN | SDL_HWSURFACE |
SDL_DOUBLEBUF );

Have I forgotten anything? I run the application as root and AFAIK that’s
all I need to do.

PS: Does smpeg use the vsync of DGA or does XVideo not use this?

Any comments would be greatly appreciated!

Thanks, Paul.

Hi

Fixed it, upgraded to 1.2.3. :slight_smile:

Paul.On Fri, 23 Nov 2001 14:56, you wrote:

Hi

I’m just trying to get my programme to use DGA with the XFree86 4.0.3 nv
driver so I can use a proper hardware SDL_Flip() and to speed up blitting.
I have run the dga test application that comes with X and it works fine, so
I assume dga is set up OK. Setting SDL_VIDEODRIVER=dga also works as I
check the video info settings before setting the video mode and that
reports lots of nice hardware goodies it can use :slight_smile: compared to the X11
software everything :slight_smile:

However, my programme crashes with the standard SDL Parachute SEGFAULT
signal handler when I issue the SDL_SetVideoMode function as below:

screen=SDL_SetVideoMode(800,600, 16, SDL_FULLSCREEN | SDL_HWSURFACE |
SDL_DOUBLEBUF );

Have I forgotten anything? I run the application as root and AFAIK that’s
all I need to do.

PS: Does smpeg use the vsync of DGA or does XVideo not use this?

Any comments would be greatly appreciated!

Thanks, Paul.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl