From 8cb9f79413105a8eea98eaf70725cc1e28ae041c Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 27 Feb 2020 16:13:01 -0800 Subject: [PATCH] freedreno/ir3: add assert Catch problems earlier when inputs are not setup correctly. Signed-off-by: Rob Clark Tested-by: Marge Bot Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.30.2