Mesa (master): draw/cull: run pipeline for culled points.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 15 04:49:32 UTC 2020
Module: Mesa
Branch: master
Commit: 30ef6f5137a5a6e9c0b08640a44e30e1aba14270
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30ef6f5137a5a6e9c0b08640a44e30e1aba14270
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Apr 10 09:19:10 2020 +1000
draw/cull: run pipeline for culled points.
This just appears to be missing:
Fixes:
KHR-GL45.cull_distance.functional
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
---
src/gallium/auxiliary/draw/draw_pipe_validate.c | 3 +++
1 file changed, 3 insertions(+)
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 */
More information about the mesa-commit
mailing list