freedreno/ir3: add assert

Catch problems earlier when inputs are not setup correctly.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
This commit is contained in:
Rob Clark
2020-02-27 16:13:01 -08:00
committed by Marge Bot
parent ac705edd82
commit 8cb9f79413
+1
View File
@@ -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 {