summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Carnecky <tom@dbservice.com>2008-06-15 14:27:16 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-30 11:29:13 -0700
commit42fb06f3f14fbec070350cf48361be4a0be0af04 (patch)
treef2417541385506130307fd5b51682f8eddff8fb2
parent1e90c82161789d1fd50b79db50edb7860b934639 (diff)
Reorder visuals reported by the intel driver
The root window visual can not be changed. Neither at runtime nor through the configuration file. The xserver simply selects the first one that matches the class (usually TrueColor). I need a root window visual with stencil buffer because my compiz plugin uses the it for some operations. This patch reorders the visuals that the 3D driver reports and puts the one with stencil (and depth) bits as first.
-rw-r--r--src/i830_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 57fb0a47..d38fef1f 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -386,7 +386,7 @@ I830InitVisualConfigs(ScreenPtr pScreen)
i = 0;
for (accum = 0; accum <= 1; accum++) {
- for (depth = 0; depth <= 1; depth++) { /* and stencil */
+ for (depth = 1; depth >= 0; depth--) { /* and stencil */
for (db = 1; db >= 0; db--) {
pConfigs[i].vid = -1;
pConfigs[i].class = -1;