projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3943d7f
)
fix issue with i915tex advertising visuals it can't support
author
Dave Airlie
<airlied@linux.ie>
Sat, 30 Dec 2006 23:01:17 +0000
(10:01 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Sat, 30 Dec 2006 23:01:17 +0000
(10:01 +1100)
This may not be the proper way to fix this but it does work easily.
src/mesa/drivers/dri/i915tex/intel_screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915tex/intel_screen.c
b/src/mesa/drivers/dri/i915tex/intel_screen.c
index 9bbfabbb8c36e1b5fb03e4f840a974ec9828febf..efa1b014a61dd659efce4b642892a84b38f589dd 100644
(file)
--- a/
src/mesa/drivers/dri/i915tex/intel_screen.c
+++ b/
src/mesa/drivers/dri/i915tex/intel_screen.c
@@
-737,6
+737,9
@@
intelFillInModes(unsigned pixel_bits, unsigned depth_bits,
*/
stencil_bits_array[0] = 0;
stencil_bits_array[1] = 0;
+ if (depth_bits == 24)
+ stencil_bits_array[1] = (stencil_bits == 0) ? 8 : stencil_bits;
+
stencil_bits_array[2] = (stencil_bits == 0) ? 8 : stencil_bits;
depth_buffer_factor = ((depth_bits != 0) || (stencil_bits != 0)) ? 3 : 1;