diff options
author | Gert Wollny <[email protected]> | 2019-07-25 15:30:09 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-07-29 15:47:34 +0200 |
commit | 4ee638cd7826e8a4bed76f51c7b73395a2fcdbbc (patch) | |
tree | 42d8974db066f84b3d73592954b64c4a12c244c0 /src/gallium | |
parent | 45ac0dfad4f614dda4c9e42ac5c3479096a16f9b (diff) |
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 <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_draw_arrays.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |