From: Dave Airlie Date: Thu, 9 Apr 2020 23:19:10 +0000 (+1000) Subject: draw/cull: run pipeline for culled points. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30ef6f5137a5a6e9c0b08640a44e30e1aba14270;p=mesa.git draw/cull: run pipeline for culled points. This just appears to be missing: Fixes: KHR-GL45.cull_distance.functional Reviewed-by: Roland Scheidegger Part-of: --- 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 */