diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-23 21:07:12 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-23 21:07:12 +0000 |
commit | cf20f8cc3f92fcc6441b55a793bcede0d83a2a69 (patch) | |
tree | 4cb5aff95a598c34debe0828d753d53591d66f01 /src/mesa/drivers/dri/unichrome/via_screen.c | |
parent | 537f42e24042292a34048a2e48844fbe4e9267e0 (diff) |
updates from Erdi Chen
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_screen.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_screen.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_screen.c b/src/mesa/drivers/dri/unichrome/via_screen.c index 1f30e54451..e0f64cf94d 100644 --- a/src/mesa/drivers/dri/unichrome/via_screen.c +++ b/src/mesa/drivers/dri/unichrome/via_screen.c @@ -22,7 +22,6 @@ * DEALINGS IN THE SOFTWARE. */ -/*#include <X11/Xlibint.h> _SOLO*/ #include <stdio.h> #include "utils.h" @@ -38,6 +37,7 @@ #include "via_tris.h" #include "via_ioctl.h" #include "via_screen.h" +#include "via_fb.h" #include "via_dri.h" extern viaContextPtr current_mesa; @@ -91,6 +91,8 @@ viaInitDriver(__DRIscreenPrivate *sPriv) #ifndef _SOLO viaScreen->drixinerama = gDRIPriv->drixinerama; #endif + /*=* John Sheng [2003.12.9] Tuxracer & VQ *=*/ + viaScreen->VQEnable = gDRIPriv->VQEnable; #ifdef DEBUG if (VIA_DEBUG) { fprintf(stderr, "deviceID = %08x\n", viaScreen->deviceID); @@ -175,7 +177,6 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv, #ifdef DEBUG if (VIA_DEBUG) fprintf(stderr, "%s - in\n", __FUNCTION__); #endif -#if 0 /*=* John Sheng [2003.7.2] for visual config & patch viewperf *=*/ if (mesaVis->depthBits == 32 && vmesa->depthBits == 16) { vmesa->depthBits = mesaVis->depthBits; @@ -189,15 +190,10 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv, return GL_FALSE; } - mesaVis->depthBits = 16; + ((__GLcontextModes*)mesaVis)->depthBits = 16; /* XXX : sure you want to change read-only data? */ } -#endif if (isPixmap) { -#ifdef _SOLO - ASSERT(0); - return GL_FALSE; /* not implemented */ -#else driDrawPriv->driverPrivate = (void *) _mesa_create_framebuffer(mesaVis, GL_FALSE, /* software depth buffer? */ @@ -210,7 +206,6 @@ viaCreateBuffer(__DRIscreenPrivate *driScrnPriv, if (VIA_DEBUG) fprintf(stderr, "%s - out\n", __FUNCTION__); #endif return (driDrawPriv->driverPrivate != NULL); -#endif } else { driDrawPriv->driverPrivate = (void *) |