From 09c7c439a1c25a2069fae2a579405d2d8037034d Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 8 Oct 2017 13:55:55 +0100 Subject: [PATCH] Add support for vec4 darray initialisation from an array pattern. This was just a missing case label in tgt-vvp. (cherry picked from commit 1aeaafa96c29ed0db35bc7b0d37da0578fc95111) --- tgt-vvp/eval_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tgt-vvp/eval_object.c b/tgt-vvp/eval_object.c index fb6240d17..2bcd1500e 100644 --- a/tgt-vvp/eval_object.c +++ b/tgt-vvp/eval_object.c @@ -82,6 +82,7 @@ static int eval_darray_new(ivl_expr_t ex) unsigned idx; switch (ivl_type_base(element_type)) { case IVL_VT_BOOL: + case IVL_VT_LOGIC: for (idx = 0 ; idx < ivl_expr_parms(init_expr) ; idx += 1) { draw_eval_vec4(ivl_expr_parm(init_expr,idx)); fprintf(vvp_out, " %%ix/load 3, %u, 0;\n", idx);