OSDN Git Service

softpipe: (trivial) honor render_condition_enabled for clear_rt/clear_ds
authorRoland Scheidegger <sroland@vmware.com>
Mon, 29 Aug 2016 16:15:08 +0000 (18:15 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 29 Aug 2016 16:15:08 +0000 (18:15 +0200)
src/gallium/drivers/softpipe/sp_surface.c

index 643b060..3908411 100644 (file)
@@ -102,7 +102,7 @@ softpipe_clear_render_target(struct pipe_context *pipe,
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
 
-   if (!softpipe_check_render_cond(softpipe))
+   if (render_condition_enabled && !softpipe_check_render_cond(softpipe))
       return;
 
    util_clear_render_target(pipe, dst, color,
@@ -122,7 +122,7 @@ softpipe_clear_depth_stencil(struct pipe_context *pipe,
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
 
-   if (!softpipe_check_render_cond(softpipe))
+   if (render_condition_enabled && !softpipe_check_render_cond(softpipe))
       return;
 
    util_clear_depth_stencil(pipe, dst, clear_flags,