diff options
author | Brian Paul <[email protected]> | 2009-12-31 14:46:15 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-31 14:46:15 -0700 |
commit | 41450b03a8e8e0f94f8eefc6880d32e9b0ef6f6d (patch) | |
tree | 7ee85c856ee85d56ec9de0e2836333c6f6860e85 /src/gallium/drivers/softpipe/sp_clear.c | |
parent | c0b4fb06b8b570b1999a0849797d3cb77f6ee5cd (diff) |
softpipe: implement conditional rendering
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_clear.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_clear.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_clear.c b/src/gallium/drivers/softpipe/sp_clear.c index f98087deb8c..5f130453c39 100644 --- a/src/gallium/drivers/softpipe/sp_clear.c +++ b/src/gallium/drivers/softpipe/sp_clear.c @@ -36,6 +36,7 @@ #include "util/u_pack_color.h" #include "sp_clear.h" #include "sp_context.h" +#include "sp_query.h" #include "sp_tile_cache.h" @@ -55,6 +56,9 @@ softpipe_clear(struct pipe_context *pipe, unsigned buffers, const float *rgba, if (softpipe->no_rast) return; + if (!softpipe_check_render_cond(softpipe)) + return; + #if 0 softpipe_update_derived(softpipe); /* not needed?? */ #endif |