softpipe: Convert to comma-separated SOFTPIPE_DEBUG for debug options.
[mesa.git] / src / gallium / drivers / softpipe / sp_clear.c
index 300cbd077d9638a039a2a3af59f4ffaf479dc193..7ad4b0946be62777ccd82cfad12b3d2d533bc2c0 100644 (file)
@@ -37,6 +37,7 @@
 #include "util/u_surface.h"
 #include "sp_clear.h"
 #include "sp_context.h"
+#include "sp_screen.h"
 #include "sp_query.h"
 #include "sp_tile_cache.h"
 
@@ -57,7 +58,7 @@ softpipe_clear(struct pipe_context *pipe, unsigned buffers,
    uint64_t cv;
    uint i;
 
-   if (softpipe->no_rast)
+   if (unlikely(sp_debug & SP_DBG_NO_RAST))
       return;
 
    if (!softpipe_check_render_cond(softpipe))