summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-04-10 09:19:10 +1000
committerDave Airlie <[email protected]>2020-04-15 14:26:24 +1000
commit30ef6f5137a5a6e9c0b08640a44e30e1aba14270 (patch)
treed47ffc59adf641ff0904dcf531442691383dc395
parentdc261cdd4238038c91f9fe4232fad7b5a20050d7 (diff)
draw/cull: run pipeline for culled points.
This just appears to be missing: Fixes: KHR-GL45.cull_distance.functional Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_validate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_validate.c b/src/gallium/auxiliary/draw/draw_pipe_validate.c
index 846cd4db39e..a013c2ef640 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_validate.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_validate.c
@@ -100,6 +100,9 @@ draw_need_pipeline(const struct draw_context *draw,
/* point sprites */
if (rasterizer->sprite_coord_enable && draw->pipeline.point_sprite)
return TRUE;
+
+ if (draw_current_shader_num_written_culldistances(draw))
+ return TRUE;
}
else if (reduced_prim == PIPE_PRIM_TRIANGLES) {
/* polygon stipple */