On Fri, 7 Mar 2003, Ian Romanick wrote:

>>      I was looking at the source for the radeon driver and noticed that the
>> depth buffer is always set to 32 bits if a 24 bpp color depth is
>> selected.  Is this a hardware limitation, or might it be possible to
>> change it to 16 bpp?
>
>There's two ways to do this.  One would be to add an option to the X 
>server to select the depth-buffer size.  Look in 
>programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c for how options 
>(like "AGPSize") are handled.  Basically, you'd add an entry like
>
>       { OPTION_DEPTH_SIZE, "DepthBits", OPTV_INTEGER, {0}, FALSE },

One of the following would be more consistent with option naming:

{ OPTION_DEPTH_SIZE, "DepthSize", OPTV_INTEGER, {0}, FALSE },

{ OPTION_DEPTH_BUFFER_SIZE, "DepthBufferSize", OPTV_INTEGER, {0}, FALSE },

Just a suggestion.


-- 
Mike A. Harris     ftp://people.redhat.com/mharris
OS Systems Engineer - XFree86 maintainer - Red Hat



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to