From 4ee638cd7826e8a4bed76f51c7b73395a2fcdbbc Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 25 Jul 2019 15:30:09 +0200 Subject: [PATCH] softpipe: Don't draw when rasterizer_discard is set Fixes: dEQP-GLES3.functional.rasterizer_discard.basic.write_depth_points dEQP-GLES3.functional.rasterizer_discard.basic.write_stencil_points dEQP-GLES3.functional.rasterizer_discard.fbo.write_depth_points dEQP-GLES3.functional.rasterizer_discard.fbo.write_stencil_points dEQP-GLES3.functional.rasterizer_discard.scissor.write_depth_points dEQP-GLES3.functional.rasterizer_discard.scissor.write_stencil_points Signed-off-by: Gert Wollny Reviewed-by: Roland Scheidegger --- src/gallium/drivers/softpipe/sp_draw_arrays.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/softpipe/sp_draw_arrays.c b/src/gallium/drivers/softpipe/sp_draw_arrays.c index 91427348a25..f0313beb178 100644 --- a/src/gallium/drivers/softpipe/sp_draw_arrays.c +++ b/src/gallium/drivers/softpipe/sp_draw_arrays.c @@ -69,6 +69,9 @@ softpipe_draw_vbo(struct pipe_context *pipe, if (!softpipe_check_render_cond(sp)) return; + if (sp->rasterizer && sp->rasterizer->rasterizer_discard) + return; + if (info->indirect) { util_draw_indirect(pipe, info); return; -- 2.30.2