DGA Myths

Maybe this should be added to the FAQ.

1q) Does DGA require root?
1a) Yes. It either requires being root, having permissions to access /dev/mem,
having the application in question owned by root and have the setuid
bit set in the permissions. (Being root, being able to do stuff usually
only root can, or setting an application setuid root are all major security
risks are not recommended.)

2q) Does being able to use OpenGL acceleration have anything to do with DGA?
2a) No, OpenGL acceleration is managed by DRI/DRM, while DGA is managed by X
itself, and thus does not use the same access/permissions methods.

3a) Is glSDL (OpenGL accelerated blitting architecture for SDL) faster than
SDL? Is software rendering in Mesa faster than 2D blitting?
3b) Yes and no. glSDL is only faster if you have OpenGL hardware acceleration
and your 3D accelerator can handle the load. Software rendering Mesa is
not faster than simple blitting via the X11 driver (or any other 2D
driver.)

4a) Do Nvidia binary drivers support DGA?
4b) Yes, please see Question 1 if you are having problems.

5a) Does DRI/DRM manage DGA, or any other method of 2D framebuffer access?
5b) No, it doesnt.

6a) I can’t get hardware surfaces using X11, what is wrong?
6b) Hardware surfaces can only be aquired using direct framebuffer access,
like with DGA. If you cannot get hardware surfaces, then you will be given
software surfaces automatically.–
Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030116/fa638faa/attachment.pgp

I might add that other drivers besides those from NVidia and ATi support
DGA. The standard XFree86 drivers do for many cards…On Thu, 2003-01-16 at 12:35, Patrick McFarland wrote:

4a) Do Nvidia binary drivers support DGA?
4b) Yes, please see Question 1 if you are having problems.

I added that question specifically because everyone else makes real drivers
(read as: not shitty binary ones.) that support DGA as they are suppost to.
Its just that the majority of nvidia users have … issues.On 16-Jan-2003, Shawn wrote:

On Thu, 2003-01-16 at 12:35, Patrick McFarland wrote:

4a) Do Nvidia binary drivers support DGA?
4b) Yes, please see Question 1 if you are having problems.

I might add that other drivers besides those from NVidia and ATi support
DGA. The standard XFree86 drivers do for many cards…


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989

This is really a bit frightening, because I have an NForce board, and
have tried running dga as root with SDL_VIDEODRIVER=dga, and it just
doesn’t work. However, I can’t complain because the 2d blts go
suprisingly fast, even the ones from System memory to video memory.

By the way, I thought that GLX was the X interface to GL that allowed X
to be accelerated on boards that supported opengl, and this was the
method by which my blits weren’t taking too much time. The only reason,
I make this assumption is that if I use a Frame Buffer, instead of X,
things go very very badly.
RobertOn Thu, 2003-01-16 at 19:39, Patrick McFarland wrote:

On 16-Jan-2003, Shawn wrote:

On Thu, 2003-01-16 at 12:35, Patrick McFarland wrote:

4a) Do Nvidia binary drivers support DGA?
4b) Yes, please see Question 1 if you are having problems.

I might add that other drivers besides those from NVidia and ATi support
DGA. The standard XFree86 drivers do for many cards…

I added that question specifically because everyone else makes real drivers
(read as: not shitty binary ones.) that support DGA as they are suppost to.
Its just that the majority of nvidia users have … issues.


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989


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

Probably it would be useful to have a link to this
article in the FAQ?

http://www.linuxjournal.com/article.php?sid=4083--

regards,
Pallav.


There are two ways to write error-free programs; only the third one works.


| |
|Pallav Nawani |
|Sasken Communication Technologies Ltd. |
|Domlur, Bangalore. |
|_______________________________________________________________|

Dnia 2003.01.16 19:35 Patrick McFarland napisa?(a):

Maybe this should be added to the FAQ.

1q) Does DGA require root?
1a) Yes. It either requires being root, having permissions to access
/dev/mem, having the application in question owned by root
and have the setuid bit set in the permissions.
(Being root, being able to do stuff usually only root can,
or setting an application setuid root are
all major security risks are not recommended.)

OK.

What ( where ) should be done in : SDL, X , KERNEL, to fix it ?

I think that best solution will be when we can set access to DGA in
XFConfig file like to DRI.

Rafal----------------------------------------------------------------------
Poczta nowych mozliwosci >>> http://link.interia.pl/f16bc

Actually, its the fault of DGA and its intergration with X. X already has root
(its required for it to work) and it should have DGA piggy back on X to access
the framebuffer. Also, you cant set access to DGA. (atleast with linux, other
systems, like bsd, have more specialized access systems.) /dev/mem cannot be
restricted just to access video memory unless its built into DGA itself.
(read as: massive design flaw.)On 17-Jan-2003, Rafa? Bursig wrote:

Dnia 2003.01.16 19:35 Patrick McFarland napisa?(a):

Maybe this should be added to the FAQ.

1q) Does DGA require root?
1a) Yes. It either requires being root, having permissions to access
/dev/mem, having the application in question owned by root
and have the setuid bit set in the permissions.
(Being root, being able to do stuff usually only root can,
or setting an application setuid root are
all major security risks are not recommended.)

OK.

What ( where ) should be done in : SDL, X , KERNEL, to fix it ?

I think that best solution will be when we can set access to DGA in
XFConfig file like to DRI.


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030117/3fc2457c/attachment.pgp