r300: move fallback warnings inside fallback debugging

random output is bad
This commit is contained in:
Dave Airlie 2009-07-12 21:35:59 +10:00
parent dfecf217fa
commit f030e2ba17

View 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;