summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-02-13 17:38:41 +0000
committerIan Romanick <[email protected]>2004-02-13 17:38:41 +0000
commit659dce40e2e914e7d897b98716ca0596b4f2bf75 (patch)
tree6d2129b299480e72f24465bd3fe3d2b52f5c03a1 /src/mesa/drivers/dri
parent9ad80a475dad36532e5d0533487b9d5a584ca13b (diff)
Minor tweaks to get the fbconfig list returned by __driCreateNewScreen
to pass through filter_modes (in libGL) properly.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r200/r200_screen.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_screen.c b/src/mesa/drivers/dri/r200/r200_screen.c
index 8d4e0e556bc..1e1d679a578 100644
--- a/src/mesa/drivers/dri/r200/r200_screen.c
+++ b/src/mesa/drivers/dri/r200/r200_screen.c
@@ -122,12 +122,12 @@ static __GLcontextModes * fill_in_modes( __GLcontextModes * modes,
{
static const uint8_t bits[2][4] = {
{ 5, 6, 5, 0 },
- { 8, 8, 8, 0 }
+ { 8, 8, 8, 8 }
};
static const uint32_t masks[2][4] = {
{ 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000 },
- { 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000 }
+ { 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000 }
};
unsigned i;
@@ -146,12 +146,12 @@ static __GLcontextModes * fill_in_modes( __GLcontextModes * modes,
modes->blueMask = masks[index][2];
modes->alphaMask = masks[index][3];
modes->rgbBits = modes->redBits + modes->greenBits
- + modes->blueBits;
+ + modes->blueBits + modes->alphaBits;
modes->accumRedBits = 16 * j;
modes->accumGreenBits = 16 * j;
modes->accumBlueBits = 16 * j;
- modes->accumAlphaBits = 0;
+ modes->accumAlphaBits = 16 * j;
modes->visualRating = (j == 0) ? GLX_NONE : GLX_SLOW_CONFIG;
modes->stencilBits = stencil_bits;
@@ -205,6 +205,7 @@ r200FillInModes( unsigned pixel_bits, unsigned depth_bits,
{ 0, 0 }
};
+ depth_buffer_modes[0][0] = depth_bits;
depth_buffer_modes[1][0] = depth_bits;
depth_buffer_modes[1][1] = stencil_bits;