diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2004-10-08 23:03:38 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2004-10-08 23:03:38 +0000 |
commit | ea6f4f6079de8f35b6e3d597525d958bcedc7bad (patch) | |
tree | 54524daf86b78d8495b5150284dd371d48928e34 /src/mesa/drivers/dri/r128/r128_context.c | |
parent | b4d269f35f0f0e0c87793a319a77f571a54a5a47 (diff) |
Add fallback debugging (R128_DEBUG=fall) output, and set DO_DEBUG=1 by default
so that we can use the env var to get output. Add a no_rast driconf option to
force software fallbacks.
Diffstat (limited to 'src/mesa/drivers/dri/r128/r128_context.c')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_context.c b/src/mesa/drivers/dri/r128/r128_context.c index 2b0363d292..287f041a81 100644 --- a/src/mesa/drivers/dri/r128/r128_context.c +++ b/src/mesa/drivers/dri/r128/r128_context.c @@ -89,6 +89,7 @@ static const struct dri_debug_control debug_control[] = { "2d", DEBUG_VERBOSE_2D }, { "sync", DEBUG_ALWAYS_SYNC }, { "api", DEBUG_VERBOSE_API }, + { "fall", DEBUG_VERBOSE_FALL }, { NULL, 0 } }; @@ -258,6 +259,11 @@ GLboolean r128CreateContext( const __GLcontextModes *glVisual, debug_control ); #endif + if (driQueryOptionb(&rmesa->optionCache, "no_rast")) { + fprintf(stderr, "disabling 3D acceleration\n"); + FALLBACK(rmesa, R128_FALLBACK_DISABLE, 1); + } + return GL_TRUE; } |