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

index 643c416..784db7f 100644 (file)
@@ -195,7 +195,7 @@ llvmpipe_clear_render_target(struct pipe_context *pipe,
 {
    struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
 
-   if (!llvmpipe_check_render_cond(llvmpipe))
+   if (render_condition_enabled && !llvmpipe_check_render_cond(llvmpipe))
       return;
 
    util_clear_render_target(pipe, dst, color,
@@ -215,7 +215,7 @@ llvmpipe_clear_depth_stencil(struct pipe_context *pipe,
 {
    struct llvmpipe_context *llvmpipe = llvmpipe_context(pipe);
 
-   if (!llvmpipe_check_render_cond(llvmpipe))
+   if (render_condition_enabled && !llvmpipe_check_render_cond(llvmpipe))
       return;
 
    util_clear_depth_stencil(pipe, dst, clear_flags,