From 983e2ae7d297cb07c29c361efffea8b634783048 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 9 Nov 2018 17:35:29 -0800 Subject: [PATCH] iris: only clip lower if there's something to clip against --- src/gallium/drivers/iris/iris_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index b1ed0077893..d5e92a56523 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2973,7 +2973,8 @@ iris_populate_vs_key(const struct iris_context *ice, iris_populate_sampler_key(ice, &key->tex); - if (info->clip_distance_array_size == 0) + if (info->clip_distance_array_size == 0 && + (info->outputs_written & (VARYING_BIT_POS | VARYING_BIT_CLIP_VERTEX))) key->nr_userclip_plane_consts = cso_rast->num_clip_plane_consts; } -- 2.30.2