From: Jason Ekstrand Date: Thu, 21 Feb 2019 15:53:30 +0000 (-0600) Subject: nir/lower_clip_cull: Fix an incorrect assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f98fd9d15a9a79ff1b41f1fce27bc285a20aa5bb;p=mesa.git nir/lower_clip_cull: Fix an incorrect assert Copy+paste error. It was supposed to test cull and not clip. Fixes: 4e69fba534e "nir: Rewrite lower_clip_cull_distance_arrays..." Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109717 Reviewed-by: Lionel Landwerlin --- diff --git a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c index d98ffa69596..70578d6f3fd 100644 --- a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c +++ b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c @@ -101,7 +101,7 @@ combine_clip_cull(nir_shader *nir, } if (cull) { - assert(clip->data.compact); + assert(cull->data.compact); cull->data.how_declared = nir_var_hidden; cull->data.location = VARYING_SLOT_CLIP_DIST0 + clip_array_size / 4; cull->data.location_frac = clip_array_size % 4;