summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-02-27 16:13:01 -0800
committerMarge Bot <[email protected]>2020-02-28 16:53:41 +0000
commit8cb9f79413105a8eea98eaf70725cc1e28ae041c (patch)
tree0fc37c5330ca8d1bc63b76fbba02c22d7b7e282b /src/freedreno
parentac705edd82996b4176de6a991db38e76a11625a7 (diff)
freedreno/ir3: add assert
Catch problems earlier when inputs are not setup correctly. Signed-off-by: Rob Clark <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_compiler_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index a8b691a15d7..01f0985da62 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -1540,6 +1540,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr)
* nir_variable to figure out what it is.
*/
dst[i] = ctx->inputs[inloc];
+ compile_assert(ctx, dst[i]);
}
}
} else {