From e2df3d01afaa6919b82962a087056f517bb94193 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Sat, 28 Feb 2004 13:25:25 +0000 Subject: Only print message about disabling HW TCL if the chip supports it in the first place, and make the message a bit clearer. + Remove some extraneous whitespace. --- src/mesa/drivers/dri/radeon/radeon_context.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/dri/radeon') diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index c68bab5f342..0424ffc84ab 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -440,12 +440,14 @@ radeonCreateContext( const __GLcontextModes *glVisual, tcl_mode = driQueryOptioni(&rmesa->optionCache, "tcl_mode"); if (driQueryOptionb(&rmesa->optionCache, "no_rast")) { fprintf(stderr, "disabling 3D acceleration\n"); - FALLBACK(rmesa, RADEON_FALLBACK_DISABLE, 1); + FALLBACK(rmesa, RADEON_FALLBACK_DISABLE, 1); } else if (tcl_mode == DRI_CONF_TCL_SW || !(rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL)) { - rmesa->radeonScreen->chipset &= ~RADEON_CHIPSET_TCL; - fprintf(stderr, "disabling TCL support\n"); - TCL_FALLBACK(rmesa->glCtx, RADEON_TCL_FALLBACK_TCL_DISABLE, 1); + if (rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL) { + rmesa->radeonScreen->chipset &= ~RADEON_CHIPSET_TCL; + fprintf(stderr, "Disabling HW TCL support\n"); + } + TCL_FALLBACK(rmesa->glCtx, RADEON_TCL_FALLBACK_TCL_DISABLE, 1); } if (rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL) { -- cgit v1.2.3