aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-09-23 11:14:52 +0200
committerIago Toral Quiroga <[email protected]>2019-12-16 08:42:37 +0100
commitd6b0786a380b95ce9305535c0012454f2f7055a0 (patch)
tree528b0c9afede67188d824d651258de4e74325908 /src/broadcom/compiler
parent6e68f743953d79f2beb2ac1fc34331f016d1b7c7 (diff)
v3d: add debug assert
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 <[email protected]>
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r--src/broadcom/compiler/v3d_nir_lower_io.c1
1 files changed, 1 insertions, 0 deletions
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.