X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsoftpipe%2Fsp_surface.c;h=3908411376d2b551c98639b38e8ef92e77c77662;hb=709905cbb683d5b0b9fdbb82c29165aba0149706;hp=643b0609e0305c22e547fdd759045a45f63a1118;hpb=a909210131494a6a131855d7d344b61b81fbf40e;p=mesa.git diff --git a/src/gallium/drivers/softpipe/sp_surface.c b/src/gallium/drivers/softpipe/sp_surface.c index 643b0609e03..3908411376d 100644 --- a/src/gallium/drivers/softpipe/sp_surface.c +++ b/src/gallium/drivers/softpipe/sp_surface.c @@ -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,