SDL fullscreen bug?

For some time now I noticed a weird thing when using some SDL programs
fullscreen. I am the happy owner of a matrox G200 8 MB videocard and have
X 4.03, with a current version of the DRI-CVS (although a clean X4.0.3 gives
the same problem).
The problem is that when I try to play a video fullscreen (with gtv, or
aviplay), or any other action that tries to to YUV scaling full screen, I
see almost half of the screen filled with my movie, while the other half is
a very nice blue color. The movie is scaled to use only half of the screen
(and therefore looks very silly;)
I tried to use DGA with sdl, but although it does not have the problem, it
is much less stable and I do not like to be root just to watch movies.
Also maximizing the window does work, which is kind of funny, because now
the video is playing at almost the same size as it would be if it was
fullscreen.

I asked on the X expert list what could be the problem, but some1 told
me to disable DRI, which may help, but is not what I want to do:) Nor does
it seem to be that this is the best solution.

I guessed it is a memory problem and that my video memory is used for 3D, if
this is the case, is it not possible to share this memory if no 3D app is
running? Anyway, I hope someone can explain the problem and hopefully
a way is found to overcome it. Ill add a few lines of my XFree86.log that I
think are meaningful.

If more info is needed just ask,
thanks in advance,
Danny

(II) MGA(0): [drm] Added 128 65536 byte DMA buffers
(II) MGA(0): [drm] Registers handle = 0xdf800000
(II) MGA(0): [drm] Status handle = 0xc90bc000
(II) MGA(0): [agp] Status page mapped at 0x40021000
(II) MGA(0): visual configs initialized
(II) MGA(0): Memory manager initialized to (0,0) (800,1202)
(II) MGA(0): Largest offscreen area available: 800 x 602
(II) MGA(0): Reserved back buffer at offset 0x1d6000
(II) MGA(0): Reserved depth buffer at offset 0x2c1000
(II) MGA(0): Reserved 4432 kb for textures at offset 0x3ac000
(**) MGA(0): DPMS enabled
(II) MGA(0): Using overlay video
(0): X context handle = 0x00000001
(0): [drm] installed DRM signal handler
(0): [DRI] installation complete
(II) MGA(0): [drm] Mapped 128 DMA buffers
(II) MGA(0): Direct rendering enabled

For some time now I noticed a weird thing when using some SDL programs
fullscreen. I am the happy owner of a matrox G200 8 MB videocard and have
X 4.03, with a current version of the DRI-CVS (although a clean X4.0.3 gives
the same problem).
The problem is that when I try to play a video fullscreen (with gtv, or
aviplay), or any other action that tries to to YUV scaling full screen, I
see almost half of the screen filled with my movie, while the other half is
a very nice blue color. The movie is scaled to use only half of the screen
(and therefore looks very silly;)

I have actually seen similar effects with the movie for SimCity3000 on my
laptop (which has XF4.0.3 as well). It didn’t really bug me, though, because I
didn’t want the movies or music from that game taking up space on my laptop’s
HDD :wink:

I guessed it is a memory problem and that my video memory is used for 3D, if
this is the case, is it not possible to share this memory if no 3D app is
running? Anyway, I hope someone can explain the problem and hopefully
a way is found to overcome it. Ill add a few lines of my XFree86.log that I
think are meaningful.

I would be very interrested if this is a bug… I am planning on using
full-screen DRI video playback in an upcoming game of mine. Anyone else seen
this?On Tue, 10 Apr 2001, you wrote:


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >

I am seeing a similar-ish bug with X 3.3 and the SVGA driver powering an S3
Virge, where my 8bpp program (which uses an SW buffer and blits that to
whatever screen it can get) runs entirely fine in 8bpp windowed and
fullscreen, 16bit windowed and fullscreen and 24bit windowed, but in 24bit
fullscreen the bottom half of the display is entirely blank. Could that be
related?

-Thomas

Hmmm, funny. I normally use 16 bit, and I do not think
switching to fullscreen changes to 24 bit. But I will try
with different bitsperpixels to see if it matters.

Danny

Thomas Harte wrote:> I am seeing a similar-ish bug with X 3.3 and the SVGA driver powering an S3

Virge, where my 8bpp program (which uses an SW buffer and blits that to
whatever screen it can get) runs entirely fine in 8bpp windowed and
fullscreen, 16bit windowed and fullscreen and 24bit windowed, but in 24bit
fullscreen the bottom half of the display is entirely blank. Could that be
related?

-Thomas