From d6b0786a380b95ce9305535c0012454f2f7055a0 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 23 Sep 2019 11:14:52 +0200 Subject: [PATCH] v3d: add debug assert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/broadcom/compiler/v3d_nir_lower_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/broadcom/compiler/v3d_nir_lower_io.c b/src/broadcom/compiler/v3d_nir_lower_io.c index ee9b29d0f2d..3145c560a14 100644 --- a/src/broadcom/compiler/v3d_nir_lower_io.c +++ b/src/broadcom/compiler/v3d_nir_lower_io.c @@ -127,6 +127,7 @@ v3d_nir_lower_vpm_output(struct v3d_compile *c, nir_builder *b, } var = scan_var; } + assert(var); /* Save off the components of the position for the setup of VPM inputs * read by fixed function HW. -- 2.30.2