[SDL] Porting SDL to new hardware

Brian Gunn libsdl-gmane at gunnbr.org
Tue May 1 16:57:45 PDT 2007


Ryan C. Gordon <icculus <at> icculus.org> writes:

> First things first: SDL probably expects to have at least a 32-bit 
> linear address space.

Yeah, that's not a problem.  I've got a 32-bit processor with an MMU running
a full 2.6 Linux kernel.

> ...chances are ... it'll work out of the box...presuming that there's a video 
> API that already works with the system (like the fbcon driver in Linux, 
> etc).

Unfortunately there's not any video API that already works with this
hardware.  :(

I did manage to get it somewhat working, but I still don't understand
everything.  For instance, what does UpdateRects() do?  The only parameters are
an array of SDL_Rects() and the number of rects.  I've looked at a few of the
sample drivers and I still haven't figured out exactly what they do.  The windib
driver blits from an offscreen frame buffer to the display.  In my driver, I
tried doing a memcpy from the shadow pixels to the screen pixels (since I don't
have a blit between two SW buffers).  With the testsprite program, I get nothing
displayed.  With testpalette, I get a crash in the memcpy.  Am I on the right
track for what UpdateRects() is supposed to do?

Thanks!

Brian



More information about the SDL mailing list