v3d: add debug assert
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 23 Sep 2019 09:14:52 +0000 (11:14 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 16 Dec 2019 07:42:37 +0000 (08:42 +0100)
While lowering vpm outputs we look for the NIR variables matching
particular store output instructions and we expect to find a match,
so assert on that.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/broadcom/compiler/v3d_nir_lower_io.c

index ee9b29d0f2d4e5249d24e473dfc9b74150bdfd09..3145c560a140ebe75787664876953d95f4fca9bd 100644 (file)
@@ -127,6 +127,7 @@ v3d_nir_lower_vpm_output(struct v3d_compile *c, nir_builder *b,
                 }
                 var = scan_var;
         }
                 }
                 var = scan_var;
         }
+        assert(var);
 
         /* Save off the components of the position for the setup of VPM inputs
          * read by fixed function HW.
 
         /* Save off the components of the position for the setup of VPM inputs
          * read by fixed function HW.