X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fllvmpipe%2Flp_clear.c;h=0b37347a967c3e0d8a18323fda3cdf97f34d8c47;hb=4445e170bee23a3607ece0e010adef7058ac6a11;hp=be2fce1307ccaa159a169263228cbc5bcde545a8;hpb=6dd284f7c8fac22f64c13fdf9909094f5ec59086;p=mesa.git diff --git a/src/gallium/drivers/llvmpipe/lp_clear.c b/src/gallium/drivers/llvmpipe/lp_clear.c index be2fce1307c..0b37347a967 100644 --- a/src/gallium/drivers/llvmpipe/lp_clear.c +++ b/src/gallium/drivers/llvmpipe/lp_clear.c @@ -36,6 +36,7 @@ #include "lp_clear.h" #include "lp_context.h" #include "lp_setup.h" +#include "lp_query.h" #include "lp_debug.h" @@ -55,6 +56,9 @@ llvmpipe_clear(struct pipe_context *pipe, if (llvmpipe->no_rast) return; + if (!llvmpipe_check_render_cond(llvmpipe)) + return; + if (LP_PERF & PERF_NO_DEPTH) buffers &= ~PIPE_CLEAR_DEPTHSTENCIL;