From: Kenneth Graunke Date: Sat, 10 Nov 2018 01:35:29 +0000 (-0800) Subject: iris: only clip lower if there's something to clip against X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=983e2ae7d297cb07c29c361efffea8b634783048;p=mesa.git iris: only clip lower if there's something to clip against --- 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; }