r300: move fallback warnings inside fallback debugging
authorDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 11:35:59 +0000 (21:35 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 12 Jul 2009 11:37:47 +0000 (21:37 +1000)
random output is bad

src/mesa/drivers/dri/r300/r300_render.c

index 36c5ca74abb26d9f3aec3fc25b4c006338bd4570..08d67b73edcbb9581f3c4a7d63234469c196118f 100644 (file)
@@ -452,7 +452,8 @@ void r300SwitchFallback(GLcontext *ctx, uint32_t bit, GLboolean mode)
        
        if (mode) {
                if ((fallback_warn & bit) == 0) {
-                       _mesa_fprintf(stderr, "WARNING! Falling back to software for %s\n", getFallbackString(bit));
+                       if (RADEON_DEBUG & DEBUG_FALLBACKS)
+                               _mesa_fprintf(stderr, "WARNING! Falling back to software for %s\n", getFallbackString(bit));
                        fallback_warn |= bit;
                }
                rmesa->fallback |= bit;