nir/clip_disable: try for better no-op
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 2 Sep 2020 14:09:21 +0000 (10:09 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Nov 2020 21:32:27 +0000 (21:32 +0000)
commit5e43ba39e112e702b8f8060101870acbd8163b79
treeacd3db5a93797d85f22d8f123c6b73b3bb99813c
parent1d23a88c6eb7502ea38e3e9d1a28b7df49c78e29
nir/clip_disable: try for better no-op

we can just check the bits using clip_distance_array_size here to simplify
everything and more easily determine if we need to be running this pass

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6563>
src/compiler/nir/nir_lower_clip_disable.c