Add support for vec4 darray initialisation from an array pattern.
This was just a missing case label in tgt-vvp.
This commit is contained in:
parent
8a36849fda
commit
1aeaafa96c
|
|
@ -82,6 +82,7 @@ static int eval_darray_new(ivl_expr_t ex)
|
||||||
unsigned idx;
|
unsigned idx;
|
||||||
switch (ivl_type_base(element_type)) {
|
switch (ivl_type_base(element_type)) {
|
||||||
case IVL_VT_BOOL:
|
case IVL_VT_BOOL:
|
||||||
|
case IVL_VT_LOGIC:
|
||||||
for (idx = 0 ; idx < ivl_expr_parms(init_expr) ; idx += 1) {
|
for (idx = 0 ; idx < ivl_expr_parms(init_expr) ; idx += 1) {
|
||||||
draw_eval_vec4(ivl_expr_parm(init_expr,idx));
|
draw_eval_vec4(ivl_expr_parm(init_expr,idx));
|
||||||
fprintf(vvp_out, " %%ix/load 3, %u, 0;\n", idx);
|
fprintf(vvp_out, " %%ix/load 3, %u, 0;\n", idx);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue