nir: fix clip/cull_distance_array_size in nir_lower_clip_cull_distance_arrays
authorMarek Olšák <marek.olsak@amd.com>
Fri, 13 Mar 2020 21:54:35 +0000 (17:54 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 19 Mar 2020 05:47:28 +0000 (01:47 -0400)
commit3c03718fd7813b9023c286101d4f972aa3390de9
tree284ee1e9fcd9b16b03eb0eb8615199606eec5957
parent73812999d92ed9812993f22a8807895d670fa4b8
nir: fix clip/cull_distance_array_size in nir_lower_clip_cull_distance_arrays

This fixes a GPU hang on radeonsi.

It only works if optimizations have already been run.

Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4194>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4194>
src/compiler/nir/nir_lower_clip_cull_distance_arrays.c