diff options
author | Roland Scheidegger <sroland@vmware.com> | 2014-05-29 01:22:11 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2014-05-31 22:05:14 +0200 |
commit | c90b5884bd914da3529728df6f374e6adbf00d1e (patch) | |
tree | 956257bc80918619f1d1202d3b1b7a7327e58155 /src/gallium/drivers/llvmpipe/lp_surface.c | |
parent | f49e201df95b4a46e4fd4702a6d8e6fc07657bd9 (diff) | |
download | external_mesa3d-c90b5884bd914da3529728df6f374e6adbf00d1e.zip external_mesa3d-c90b5884bd914da3529728df6f374e6adbf00d1e.tar.gz external_mesa3d-c90b5884bd914da3529728df6f374e6adbf00d1e.tar.bz2 |
llvmpipe: honor the render_condition_enable bit in blits.
This fixes piglit nv_conditional_render-blitframebuffer.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_surface.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c index ac8ee26..09ca39d 100644 --- a/src/gallium/drivers/llvmpipe/lp_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_surface.c @@ -180,6 +180,9 @@ static void lp_blit(struct pipe_context *pipe, struct llvmpipe_context *lp = llvmpipe_context(pipe); struct pipe_blit_info info = *blit_info; + if (blit_info->render_condition_enable && !llvmpipe_check_render_cond(lp)) + return; + if (info.src.resource->nr_samples > 1 && info.dst.resource->nr_samples <= 1 && !util_format_is_depth_or_stencil(info.src.resource->format) && |