No hardware surfaces in SDL

I have already asked this over at nVidia, so please spare me the:

“This is a driver issue, dumbass” response.
Thanks in advanced.

I’ve got this problem, and I’ve had it for a while (actually 2 problems,
but I think they are related)
The first is with SDL, and yes I’ve already asked over at #sdl on
openprojects.net.

I’ve go a Gforce4 MX 440, and the drivers seem to be installed right
(they are in the right place, I can run and compile GL/GLx programs),
however cannot seem to get a hardware surface or hardware accelerated
drawing.

Here is what SDL reports as being available:

Flag: Hardare Surface Available: hw_available = 0
Flag: Window Manager Available: wm_available = 1with antialiasing turned
on everything is super slow (even the most basic AA)with antialiasing
turned on everything is super slow (even the most basic AA)
Flag: Accelerated Hardware Blits: blit_hw = 0
Flag: Accelerated Hardware Blits with Colorkey: blit_hw_CC = 0
Flag: Accelerated Hardware Blits with Alpha: blit_hw_A = 0
Flag: Accelerated Software Blits: blit_sw = 0
Flag: Accelerated Software Blits with Colorkey: blit_sw_CC = 0
Flag: Accelerated Software Blits with Alpha: blit_sw_A = 0
Flag: Accelerated color fill: blit_fill = 0
Video Memory: video_mem = 0K (but I’ve got 64mb of ddr)

Here’s the code that provides the above information:

PHP:

/* This code falls under the GPL v2.0 /
/
© 2002 Aristoi Daneel /
/
aristoidaneel@yahoo.com /
/
remove /
/
NO WARRANTY /
/
builds nicely with :

  • gcc -o SDL_videoInfo SDL_videoInfo.c -ggdb -Wall sdl-config --cflags --libs */

#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>

#define THE_MEANING_OF_LIFE 42

void Quit(int returnCode)
{
SDL_Quit();
if(returnCode != THE_MEANING_OF_LIFE)
exit(returnCode);
fprintf(stdout,“I have been given the Meaning of Life\n”);
}

int main(int argc, char *argv[])
{
const SDL_VideoInfo *videoInfo;
SDL_Surface *frameBuffer;

/* initialize SDL
* exit on error */
if(SDL_Init(SDL_INIT_VIDEO) != 0)
{
fprintf(stderr, “Video Initialization failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}
if((frameBuffer = SDL_SetVideoMode(640,480, 0, SDL_ANYFORMAT)) == NULL)
{
fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
Quit(1);
}

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

fprintf(stdout, “Flag: Hardare Surface Available:
hw_available = %d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available:
wm_available = %d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits:
blit_hw = %d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits:
blit_sw = %d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill:
blit_fill = %d\n”, videoInfo->blit_fill);

fprintf(stdout, “Video Memory:
video_mem = %dK\n”, videoInfo->video_mem);

/* now try to force the issue */
if((frameBuffer = SDL_SetVideoMode(640,480,0, SDL_HWSURFACE |
SDL_HWPALETTE | SDL_HWACCEL)) == NULL)
{
fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
Quit(1);
}

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

frpintf(stdout, “\n\n Attempt to set HW video results:\n”);
fprintf(stdout, “Flag: Hardare Surface Available:
hw_available = %d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available:
wm_available = %d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits:
blit_hw = %d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits:
blit_sw = %d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill:
blit_fill = %d\n”, videoInfo->blit_fill);

fprintf(stdout, “Video Memory:
video_mem = %dK\n”, videoInfo->video_mem);

Quit(THE_MEANING_OF_LIFE); /* exit gracefully */
return 0;

}

and here is my XF86config stuff

PHP:

Section “Module”

 SubSection  "extmod"

 EndSubSection

 Load       "glx"

 Load        "type1"

 Load        "freetype"

EndSection

Section “Device”

 Identifier  "MyVideoCard"

 Driver      "nvidia"

 Option "NvAGP" "1"

 Option "NoLogo" "1"

 Option "DigitalVibrance" "0"

 Option "CursorShadow" "1"

EndSection

** SYSTEM INFO **
all the DRI and DRM stuff in the kernel is off

here’s some other stuff

NVdriver 3123 (GLX too)
kernel: 2.4.19 (compiled from source)
XFree86: 4.2.0 (precompiled binary)
gcc: 2.59.3
libSDL: 1.2.3 - 1.2.5

he hardware is:
AMD Athlon 1700
256MB DDR
MSI nForce mainboard
AGP 4x Chaintech Gforce4 mx 440 64MB DDR

** END SYSTEM INFO **

second problem: (related i think)
X starts sooo slow.
Between when I run startx to the nvidia logo screen is a time of about
50 sec

my XFree86.0.log is attached as a texfile

And these problems started showing up as soon as my nVidia card was
installed (with the drivers) and not before with my old video card (ATI
rage 128)

Note that X works just fine otherwise, the only other graphical problem
i can find is blender runs really really slow
both precompiled blender publisher and open source version compiled on
my system blender creator

WineX runs peachy for the most part, and my loki games seem to run well,
although Descent3 (loki port) runs at a measly 35fps

but all the OpenGL stuff for xscreensaver run keen. (compiled on my system)

any ideas anybody?

Thanks for reading this and helping out.
confused geek
Aristoi Daneel
aristoidaneel@yahoo.com__________________
Hello, I’m your mind.
Sorry I haven’t been around much, but I’m easily distracted by shiny
objects.
–The Tick

Samuel wrote:

/* now try to force the issue */
if((frameBuffer = SDL_SetVideoMode(640,480,0, SDL_HWSURFACE |
SDL_HWPALETTE | SDL_HWACCEL)) == NULL)

Neither my docs or the ones at
http://sdldoc.csn.ul.ie/sdlsetvideomode.php report SDL_HWACCEL as being
one of the valid flag parameters to SetVideoMode. (Several flags that
are valid for surfaces are not documented as being valid for
SetVideoMode.) This is either an oversight in the docs, or an error in
your code, and may or may not make a difference.–
Kylotan
http://pages.eidosnet.co.uk/kylotan

kylotan: try
man SDL_Surface, you’ll find SDL_HWACCEL listed thereOn Saturday 23 November 2002 06:35 am, Kylotan wrote:

Samuel wrote:

/* now try to force the issue */
if((frameBuffer = SDL_SetVideoMode(640,480,0, SDL_HWSURFACE |
SDL_HWPALETTE | SDL_HWACCEL)) == NULL)

Neither my docs or the ones at
http://sdldoc.csn.ul.ie/sdlsetvideomode.php report SDL_HWACCEL as being
one of the valid flag parameters to SetVideoMode. (Several flags that
are valid for surfaces are not documented as being valid for
SetVideoMode.) This is either an oversight in the docs, or an error in
your code, and may or may not make a difference.

taxtropel ango wrote:

kylotan: try
man SDL_Surface, you’ll find SDL_HWACCEL listed there

That’s not the point… this is a call to SetVideoMode and the docs for
that explicitly list a different subset of flags.–
Kylotan
http://pages.eidosnet.co.uk/kylotan

Are you sure you’re editing, and showing us, the right XF86config? You
didn’t mention what distro you’re using, but I know in some there is a a
file called something like XF86config-4. The reason I bring it up is
you give this device section:

Section "Device"
Identifier "MyVideoCard"
Driver "nvidia"
Option “NvAGP” "1"
Option “NoLogo” “1”

Note “NoLogo” is set to 1. And then you say:

second problem: (related i think)
X starts sooo slow.
Between when I run startx to the nvidia logo screen is a time of
about 50 sec

If this XF86config file was being used, then the logo would not be shown…

Hope this helps,

Anthony Lewis

Samuel wrote:> I have already asked this over at nVidia, so please spare me the:

“This is a driver issue, dumbass” response.
Thanks in advanced.

I’ve got this problem, and I’ve had it for a while (actually 2
problems, but I think they are related)
The first is with SDL, and yes I’ve already asked over at #sdl on
openprojects.net.

I’ve go a Gforce4 MX 440, and the drivers seem to be installed right
(they are in the right place, I can run and compile GL/GLx programs),
however cannot seem to get a hardware surface or hardware accelerated
drawing.

Here is what SDL reports as being available:

Flag: Hardare Surface Available: hw_available = 0
Flag: Window Manager Available: wm_available = 1with antialiasing
turned on everything is super slow (even the most basic AA)with
antialiasing turned on everything is super slow (even the most basic AA)
Flag: Accelerated Hardware Blits: blit_hw = 0
Flag: Accelerated Hardware Blits with Colorkey: blit_hw_CC = 0
Flag: Accelerated Hardware Blits with Alpha: blit_hw_A = 0
Flag: Accelerated Software Blits: blit_sw = 0
Flag: Accelerated Software Blits with Colorkey: blit_sw_CC = 0
Flag: Accelerated Software Blits with Alpha: blit_sw_A = 0
Flag: Accelerated color fill: blit_fill = 0
Video Memory: video_mem = 0K (but I’ve got 64mb of ddr)

Here’s the code that provides the above information:

PHP:

/* This code falls under the GPL v2.0 /
/
© 2002 Aristoi Daneel /
/
aristoidaneel@yahoo.com /
/
remove /
/
NO WARRANTY /
/
builds nicely with :

  • gcc -o SDL_videoInfo SDL_videoInfo.c -ggdb -Wall sdl-config --cflags --libs */

#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>

#define THE_MEANING_OF_LIFE 42

void Quit(int returnCode)
{
SDL_Quit();
if(returnCode != THE_MEANING_OF_LIFE)
exit(returnCode);
fprintf(stdout,“I have been given the Meaning of Life\n”);
}

int main(int argc, char *argv[])
{
const SDL_VideoInfo *videoInfo;
SDL_Surface *frameBuffer;

/* initialize SDL

  • exit on error */
    if(SDL_Init(SDL_INIT_VIDEO) != 0)
    {
    fprintf(stderr, “Video Initialization failed:\n\t%s\n”,
    SDL_GetError());
    fprintf(stderr,“Dying…AARRGGHH!..\n”);
    Quit(1);
    }
    if((frameBuffer = SDL_SetVideoMode(640,480, 0, SDL_ANYFORMAT)) == NULL)
    {
    fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
    Quit(1);
    }

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

fprintf(stdout, “Flag: Hardare Surface Available: hw_available =
%d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available: wm_available =
%d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits: blit_hw =
%d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits: blit_sw =
%d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill: blit_fill = %d\n”,
videoInfo->blit_fill);

fprintf(stdout, “Video Memory: video_mem = %dK\n”,
videoInfo->video_mem);

/* now try to force the issue */
if((frameBuffer = SDL_SetVideoMode(640,480,0, SDL_HWSURFACE |
SDL_HWPALETTE | SDL_HWACCEL)) == NULL)
{
fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
Quit(1);
}

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

frpintf(stdout, “\n\n Attempt to set HW video results:\n”);
fprintf(stdout, “Flag: Hardare Surface Available: hw_available =
%d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available: wm_available =
%d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits: blit_hw =
%d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits: blit_sw =
%d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill: blit_fill = %d\n”,
videoInfo->blit_fill);

fprintf(stdout, “Video Memory: video_mem = %dK\n”,
videoInfo->video_mem);

Quit(THE_MEANING_OF_LIFE); /* exit gracefully */
return 0;

}

and here is my XF86config stuff

PHP:

Section “Module”

SubSection  "extmod"

EndSubSection

Load       "glx"

Load        "type1"

Load        "freetype"

EndSection

Section “Device”

Identifier  "MyVideoCard"

Driver      "nvidia"

Option "NvAGP" "1"

Option "NoLogo" "1"

Option "DigitalVibrance" "0"

Option "CursorShadow" "1"

EndSection

** SYSTEM INFO **
all the DRI and DRM stuff in the kernel is off

here’s some other stuff

NVdriver 3123 (GLX too)
kernel: 2.4.19 (compiled from source)
XFree86: 4.2.0 (precompiled binary)
gcc: 2.59.3
libSDL: 1.2.3 - 1.2.5

he hardware is:
AMD Athlon 1700
256MB DDR
MSI nForce mainboard
AGP 4x Chaintech Gforce4 mx 440 64MB DDR

** END SYSTEM INFO **

second problem: (related i think)
X starts sooo slow.
Between when I run startx to the nvidia logo screen is a time of about
50 sec

my XFree86.0.log is attached as a texfile

And these problems started showing up as soon as my nVidia card was
installed (with the drivers) and not before with my old video card
(ATI rage 128)

Note that X works just fine otherwise, the only other graphical
problem i can find is blender runs really really slow
both precompiled blender publisher and open source version compiled on
my system blender creator

WineX runs peachy for the most part, and my loki games seem to run
well, although Descent3 (loki port) runs at a measly 35fps

but all the OpenGL stuff for xscreensaver run keen. (compiled on my
system)

any ideas anybody?

Thanks for reading this and helping out.
confused geek
Aristoi Daneel
aristoidaneel@yahoo.com


Hello, I’m your mind.
Sorry I haven’t been around much, but I’m easily distracted by shiny
objects.
–The Tick


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

Well NoLogo wants True as argument not number. The True can be omited
altogether ie just Option “NoLogo”. Thus it gives the logo.

I think the main reason for this no HWacceleration is the fact that X11
doesn’t have it. For HW acceleration in Linux you need to use DGA, FBuffer of
OpenGL.On Saturday 23 November 2002 19:19, Anthony Lewis wrote:

Are you sure you’re editing, and showing us, the right XF86config? You
didn’t mention what distro you’re using, but I know in some there is a a
file called something like XF86config-4. The reason I bring it up is

you give this device section:

Section "Device"
Identifier "MyVideoCard"
Driver "nvidia"
Option “NvAGP” "1"
Option “NoLogo” “1”

Note “NoLogo” is set to 1. And then you say:

second problem: (related i think)
X starts sooo slow.
Between when I run startx to the nvidia logo screen is a time of

about 50 sec

If this XF86config file was being used, then the logo would not be shown…

I’ve got this problem, and I’ve had it for a while (actually 2 problems,
but I think they are related)
The first is with SDL, and yes I’ve already asked over at #sdl on
openprojects.net.

I’ve go a Gforce4 MX 440, and the drivers seem to be installed right
(they are in the right place, I can run and compile GL/GLx programs),
however cannot seem to get a hardware surface or hardware accelerated
drawing.

Here is what SDL reports as being available:

Flag: Hardare Surface Available: hw_available = 0

This is in the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=2#20

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Dear Samuel,

I guess I can help, I had the same problem. The thing is that under XFree86
in case of Linux, the SDL program doesn’t get HW acceleration through
XFree86 because it doesn’t let the SDL user program to access the hardware
directly. So you have to use something like
Direct Graphics Access (dga)
define its environment variable in the start of program before initializing
SDL.

Hope this works,

Good Luck!

regards> ----- Original Message -----

From: samuel_emmett_bray@yahoo.com (Samuel E. Bray)
To:
Sent: Thursday, November 21, 2002 11:24 PM
Subject: [SDL] No hardware surfaces in SDL

I have already asked this over at nVidia, so please spare me the:

“This is a driver issue, dumbass” response.
Thanks in advanced.

I’ve got this problem, and I’ve had it for a while (actually 2 problems,
but I think they are related)
The first is with SDL, and yes I’ve already asked over at #sdl on
openprojects.net.

I’ve go a Gforce4 MX 440, and the drivers seem to be installed right
(they are in the right place, I can run and compile GL/GLx programs),
however cannot seem to get a hardware surface or hardware accelerated
drawing.

Here is what SDL reports as being available:

Flag: Hardare Surface Available: hw_available = 0
Flag: Window Manager Available: wm_available = 1with antialiasing turned
on everything is super slow (even the most basic AA)with antialiasing
turned on everything is super slow (even the most basic AA)
Flag: Accelerated Hardware Blits: blit_hw = 0
Flag: Accelerated Hardware Blits with Colorkey: blit_hw_CC = 0
Flag: Accelerated Hardware Blits with Alpha: blit_hw_A = 0
Flag: Accelerated Software Blits: blit_sw = 0
Flag: Accelerated Software Blits with Colorkey: blit_sw_CC = 0
Flag: Accelerated Software Blits with Alpha: blit_sw_A = 0
Flag: Accelerated color fill: blit_fill = 0
Video Memory: video_mem = 0K (but I’ve got 64mb of ddr)

Here’s the code that provides the above information:

PHP:

/* This code falls under the GPL v2.0 /
/
© 2002 Aristoi Daneel /
/
aristoidaneel@yahoo.com /
/
remove /
/
NO WARRANTY /
/
builds nicely with :

  • gcc -o SDL_videoInfo SDL_videoInfo.c -ggdb -Wall sdl-config --cflags --libs */

#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>

#define THE_MEANING_OF_LIFE 42

void Quit(int returnCode)
{
SDL_Quit();
if(returnCode != THE_MEANING_OF_LIFE)
exit(returnCode);
fprintf(stdout,“I have been given the Meaning of Life\n”);
}

int main(int argc, char *argv[])
{
const SDL_VideoInfo *videoInfo;
SDL_Surface *frameBuffer;

/* initialize SDL
* exit on error */
if(SDL_Init(SDL_INIT_VIDEO) != 0)
{
fprintf(stderr, “Video Initialization failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}
if((frameBuffer = SDL_SetVideoMode(640,480, 0, SDL_ANYFORMAT)) == NULL)
{
fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
Quit(1);
}

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

fprintf(stdout, “Flag: Hardare Surface Available:
hw_available = %d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available:
wm_available = %d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits:
blit_hw = %d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits:
blit_sw = %d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill:
blit_fill = %d\n”, videoInfo->blit_fill);

fprintf(stdout, “Video Memory:
video_mem = %dK\n”, videoInfo->video_mem);

/* now try to force the issue */
if((frameBuffer = SDL_SetVideoMode(640,480,0, SDL_HWSURFACE |
SDL_HWPALETTE | SDL_HWACCEL)) == NULL)
{
fprintf(stderr,“Unable to set video mode: %s\n”,SDL_GetError());
Quit(1);
}

/* Grab video info according to SDL /
/
Exit on error */
if(!(videoInfo = SDL_GetVideoInfo()))
{
fprintf(stderr,“Video query failed:\n\t%s\n”,
SDL_GetError());
fprintf(stderr,“Dying…AARRGGHH!..\n”);
Quit(1);
}

frpintf(stdout, “\n\n Attempt to set HW video results:\n”);
fprintf(stdout, “Flag: Hardare Surface Available:
hw_available = %d\n”, videoInfo->hw_available);

fprintf(stdout, “Flag: Window Manager Available:
wm_available = %d\n”, videoInfo->wm_available);

fprintf(stdout, “Flag: Accelerated Hardware Blits:
blit_hw = %d\n”, videoInfo->blit_hw);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Colorkey:
blit_hw_CC = %d\n”, videoInfo->blit_hw_CC);

fprintf(stdout, “Flag: Accelerated Hardware Blits with Alpha:
blit_hw_A = %d\n”, videoInfo->blit_hw_A);

fprintf(stdout, “Flag: Accelerated Software Blits:
blit_sw = %d\n”, videoInfo->blit_sw);

fprintf(stdout, “Flag: Accelerated Software Blits with Colorkey:
blit_sw_CC = %d\n”, videoInfo->blit_sw_CC);

fprintf(stdout, “Flag: Accelerated Software Blits with Alpha:
blit_sw_A = %d\n”, videoInfo->blit_sw_A);

fprintf(stdout, “Flag: Accelerated color fill:
blit_fill = %d\n”, videoInfo->blit_fill);

fprintf(stdout, “Video Memory:
video_mem = %dK\n”, videoInfo->video_mem);

Quit(THE_MEANING_OF_LIFE); /* exit gracefully */
return 0;

}

and here is my XF86config stuff

PHP:

Section “Module”

 SubSection  "extmod"

 EndSubSection

 Load       "glx"

 Load        "type1"

 Load        "freetype"

EndSection

Section “Device”

 Identifier  "MyVideoCard"

 Driver      "nvidia"

 Option "NvAGP" "1"

 Option "NoLogo" "1"

 Option "DigitalVibrance" "0"

 Option "CursorShadow" "1"

EndSection

** SYSTEM INFO **
all the DRI and DRM stuff in the kernel is off

here’s some other stuff

NVdriver 3123 (GLX too)
kernel: 2.4.19 (compiled from source)
XFree86: 4.2.0 (precompiled binary)
gcc: 2.59.3
libSDL: 1.2.3 - 1.2.5

he hardware is:
AMD Athlon 1700
256MB DDR
MSI nForce mainboard
AGP 4x Chaintech Gforce4 mx 440 64MB DDR

** END SYSTEM INFO **

second problem: (related i think)
X starts sooo slow.
Between when I run startx to the nvidia logo screen is a time of about
50 sec

my XFree86.0.log is attached as a texfile

And these problems started showing up as soon as my nVidia card was
installed (with the drivers) and not before with my old video card (ATI
rage 128)

Note that X works just fine otherwise, the only other graphical problem
i can find is blender runs really really slow
both precompiled blender publisher and open source version compiled on
my system blender creator

WineX runs peachy for the most part, and my loki games seem to run well,
although Descent3 (loki port) runs at a measly 35fps

but all the OpenGL stuff for xscreensaver run keen. (compiled on my
system)

any ideas anybody?

Thanks for reading this and helping out.
confused geek
Aristoi Daneel
aristoidaneel@yahoo.com


Hello, I’m your mind.
Sorry I haven’t been around much, but I’m easily distracted by shiny
objects.
–The Tick


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