From: Rob Clark Date: Fri, 28 Feb 2020 00:13:01 +0000 (-0800) Subject: freedreno/ir3: add assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cb9f79413105a8eea98eaf70725cc1e28ae041c;p=mesa.git freedreno/ir3: add assert Catch problems earlier when inputs are not setup correctly. Signed-off-by: Rob Clark Tested-by: Marge Bot Part-of: --- 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 {