From d638f6a0bbc7df246700ed78c11837af6e6c6246 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jun 2005 07:44:52 +0000 Subject: Add no_rast option. --- src/mesa/drivers/dri/tdfx/tdfx_context.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/dri/tdfx/tdfx_context.c') diff --git a/src/mesa/drivers/dri/tdfx/tdfx_context.c b/src/mesa/drivers/dri/tdfx/tdfx_context.c index 654ada5980..12e35d7c2b 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_context.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_context.c @@ -62,9 +62,6 @@ #include "utils.h" -PUBLIC const char __driConfigOptions[] = { 0 }; -const GLuint __driNConfigOptions = 0; - /** * Common extension strings exported by all cards */ @@ -155,7 +152,6 @@ static const struct tnl_pipeline_stage *tdfx_pipeline[] = { 0, }; - GLboolean tdfxCreateContext( const __GLcontextModes *mesaVis, __DRIcontextPrivate *driContextPriv, void *sharedContextPrivate ) @@ -221,6 +217,10 @@ GLboolean tdfxCreateContext( const __GLcontextModes *mesaVis, fxMesa->new_state = ~0; fxMesa->dirty = ~0; + /* Parse configuration files */ + driParseConfigFiles (&fxMesa->optionCache, &fxScreen->optionCache, + fxMesa->driScreen->myNum, "tdfx"); + /* NOTE: This must be here before any Glide calls! */ if (!tdfxInitGlide( fxMesa )) { FREE(fxMesa); @@ -320,6 +320,11 @@ GLboolean tdfxCreateContext( const __GLcontextModes *mesaVis, tdfxInitVB( ctx ); tdfxInitState( fxMesa ); + if (driQueryOptionb(&fxMesa->optionCache, "no_rast")) { + fprintf(stderr, "disabling 3D acceleration\n"); + FALLBACK(fxMesa, TDFX_FALLBACK_DISABLE, 1); + } + return GL_TRUE; } -- cgit v1.2.3