passing --enable-debug should actually be useful. there are numerous #ifdefs
throughout the server to enable a whole ton of stuff -- the most common is DEBUG
and NDEBUG, plus all the EXA fallback debugging. for the drivers, there's stuff
like RADEON_DEBUG too.
it would be nice if the defines were all DEBUG or XORG_DEBUG or something, so
--enable-debug could just add -DDEBUG to cflags.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Is this really just asking for someone to search and replace all #ifdef FOO_DEBUG with #ifdef DEBUG, or is there something more nuanced here?
the reason why all these debugs exist is AFAICT that most developers only want them for a specific subsystem. Once you enable everything, there's a lot of noise in the log file.
Something more nuanced would be nice. A simple solution could still be that DEBUG enables whatever local debug there is. This allows developers to manually enable bits without having the whole spew.
Or we standardise the debug output that it's easier to grep on the prefix.