nir/lower_clip_cull: Fix an incorrect assert
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Feb 2019 15:53:30 +0000 (09:53 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Feb 2019 18:05:12 +0000 (12:05 -0600)
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 <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_lower_clip_cull_distance_arrays.c

index d98ffa695968eb53348845438e331c37b8b1898b..70578d6f3fd3631b64143c2ea57cb67f767a675b 100644 (file)
@@ -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;