nir/lower_clip_cull: Fix an incorrect assert

Copy+paste error.  It was supposed to test cull and not clip.

Fixes: 4e69fba534 "nir: Rewrite lower_clip_cull_distance_arrays..."
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109717
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit f98fd9d15a)
This commit is contained in:
Jason Ekstrand 2019-02-21 09:53:30 -06:00 committed by Dylan Baker
parent 49dad5e8fe
commit c0509143ab

View file

@ -94,7 +94,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;