- lp_setup_clear( llvmpipe->setup, rgba, depth, stencil, buffers );
+ if (!llvmpipe_check_render_cond(llvmpipe))
+ return;
+
+ if (LP_PERF & PERF_NO_DEPTH)
+ buffers &= ~PIPE_CLEAR_DEPTHSTENCIL;
+
+ lp_setup_clear( llvmpipe->setup, color->f, depth, stencil, buffers );