How can i tell if i have gotten a true HWSurface

my code as following .I have test it on my box. It can
work.

SDL_Init(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode(800, 600, 24,SDL_HWSURFACE);
overlay = SDL_CreateYUVOverlay ( mywidth , height ,
SDL_YV12_OVERLAY , screen);

After these codes , how can I tell what I get is a
true hardware overlay ? I know even hardware overlay
cannot work ,SDL still works with software overlay
instead of hardware .
Moreover, what cards can be supported by SDL and what
can not ?__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world’s greatest free email!
http://mail.yahoo.com/

I’m guessing you’re running this under X11, in which case if you’ll kindly read
the FAQ or mail archive, you’ll see that several people have asked this
question in the past few months. Basically, it has nothing to do with ‘SDL
supporting cards.’ It has everything to do with what OS you’re running an SDL
program under. If you’re using Windows, chances are you’ll get a hardware
surface, if you’re using DGA, you’ll get a HWSURFACE, but if you’re using X11,
due to X11’s architecture, you’ll only get a SWSURFACE. This is not SDL’s
fault.

-EvilTypeGuyOn Wed, Mar 06, 2002 at 01:25:58AM -0800, tony Tong wrote:

my code as following .I have test it on my box. It can
work.

SDL_Init(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode(800, 600, 24,SDL_HWSURFACE);
overlay = SDL_CreateYUVOverlay ( mywidth , height ,
SDL_YV12_OVERLAY , screen);

After these codes , how can I tell what I get is a
true hardware overlay ? I know even hardware overlay
cannot work ,SDL still works with software overlay
instead of hardware .
Moreover, what cards can be supported by SDL and what
can not ?

I just realized that I made it sound like DGA was not something that was used
under X, obviously this is not the case :slight_smile: Basically, there’s only a few video
targets where you’ll get a HWSURFACE consistently, I honestly don’t know what
all of those are, and there’s been certain situations reported on the list where
one was expected and due to a particular driver behavior, they didn’t get one

-EvilTypeGuyOn Wed, Mar 06, 2002 at 08:53:48AM -0600, EvilTypeGuy wrote:

On Wed, Mar 06, 2002 at 01:25:58AM -0800, tony Tong wrote:
I’m guessing you’re running this under X11, in which case if you’ll kindly read
the FAQ or mail archive, you’ll see that several people have asked this
question in the past few months. Basically, it has nothing to do with ‘SDL
supporting cards.’ It has everything to do with what OS you’re running an SDL
program under. If you’re using Windows, chances are you’ll get a hardware
surface, if you’re using DGA, you’ll get a HWSURFACE, but if you’re using X11,
due to X11’s architecture, you’ll only get a SWSURFACE. This is not SDL’s
fault.