summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mga/mga_xmesa.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2005-05-30 03:32:52 +0000
committerEric Anholt <anholt@FreeBSD.org>2005-05-30 03:32:52 +0000
commit0936eeb456e005535b976fd22eed1a54157edfaa (patch)
tree67921700a5a1962be61ec28dac64f5317cf99c5b /src/mesa/drivers/dri/mga/mga_xmesa.c
parentf2149a7a66f251da1cf55eca27d58dd651881757 (diff)
Add the no_rast debug option, which I used in some testing.
Diffstat (limited to 'src/mesa/drivers/dri/mga/mga_xmesa.c')
-rw-r--r--src/mesa/drivers/dri/mga/mga_xmesa.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c
index d32934b06b..aa4cfe5ccd 100644
--- a/src/mesa/drivers/dri/mga/mga_xmesa.c
+++ b/src/mesa/drivers/dri/mga/mga_xmesa.c
@@ -85,8 +85,11 @@ DRI_CONF_BEGIN
DRI_CONF_ARB_VERTEX_PROGRAM(true)
DRI_CONF_NV_VERTEX_PROGRAM(true)
DRI_CONF_SECTION_END
+ DRI_CONF_SECTION_DEBUG
+ DRI_CONF_NO_RAST(false)
+ DRI_CONF_SECTION_END
DRI_CONF_END;
-static const GLuint __driNConfigOptions = 5;
+static const GLuint __driNConfigOptions = 6;
#ifdef USE_NEW_INTERFACE
static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
@@ -640,6 +643,11 @@ mgaCreateContext( const __GLcontextModes *mesaVis,
(*mmesa->get_ust)( & mmesa->swap_ust );
+ if (driQueryOptionb(&mmesa->optionCache, "no_rast")) {
+ fprintf(stderr, "disabling 3D acceleration\n");
+ FALLBACK(mmesa->glCtx, MGA_FALLBACK_DISABLE, 1);
+ }
+
return GL_TRUE;
}