diff options
author | Alan Hourihane <[email protected]> | 2005-01-10 19:44:59 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2005-01-10 19:44:59 +0000 |
commit | 9db66a3f9f745267d7ed20f1d6fde0272bd37949 (patch) | |
tree | 621013433dc4fe56108ca97ee049168577c09d76 /src/mesa/drivers/dri/unichrome/via_context.c | |
parent | eaf2b170fffbd573ca8482a7dfa30af24f39a4a1 (diff) |
Fallback on PolygonStipple for CLE266 hardware.
Only upload stencil configuration when a stencil buffer exists.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_context.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index dde78c2dc90..ee7f7a079af 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -54,7 +54,6 @@ #include "via_tris.h" #include "via_ioctl.h" #include "via_fb.h" -#include "via_regs.h" #include <stdio.h> #include "macros.h" @@ -380,9 +379,8 @@ viaCreateContext(const __GLcontextModes *mesaVis, assert(!mesaVis->haveStencilBuffer); vmesa->have_hw_stencil = GL_FALSE; vmesa->depth_max = (GLfloat)0xffffffff; - vmesa->depth_clear_mask = 0; - vmesa->ClearDepth = 0xffffffff; vmesa->depth_clear_mask = 0xf << 28; + vmesa->ClearDepth = 0xffffffff; vmesa->polygon_offset_scale = 2.0 / vmesa->depth_max; break; default: |