magenta wrote:

I basically see three camps in this discussion:

1. Users should be able to configure default behavior using configuration
files (which would be selected based on argv[0] or similar)

2. Users should be able to configure default behavior using environment
variables (which would be configured on a per-application basis using
wrapper scripts or a launcher program or similar)

3. Users should not be able to configure default behavior; applications
should specify all behavior explicitly if it matters, and expose this as an
application-level configuration option to the user

Personally, I'm torn between camps 1 and 3.
I'm squarely in camp 3 based on Allen's rationale and his experience.

Actually, I just thought of a solution which could possibly satisfy all
three camps: have a libGL wrapper library (loaded via LD_PRELOAD) which
overrides functionality as needed.  Want to force FSAA to be enabled?  Put
it into glXCreateContext().  Want to force GL_RGB8 when the application
chooses GL_RGB?  Do it in glTexImage().  Hey, if you want to force GL_RGB4
when the application chooses GL_RGB8, you could do that too!

Basically, I see no reason to put this configuration into the drivers
themselves, as it could easily be done using an LD_PRELOADed library.

The Chromium project has been doing this for a while. At SigGraph, I saw a demo of quake3 running in wire frame mode using this type of trick.

Let's strive to keep as much unneeded complexity as we can out of the drivers.

--
/\
Jens Owen / \/\ _
[EMAIL PROTECTED] / \ \ \ Steamboat Springs, Colorado



-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to