From 8bebe59e2041c692bacb7f19cb4ef23b50f5dcaf Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Wed, 22 Jan 2014 17:15:26 -0800 Subject: [PATCH] Fix vec4 abs() generating duplicat labels. --- tgt-vvp/eval_vec4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tgt-vvp/eval_vec4.c b/tgt-vvp/eval_vec4.c index ee9ce19a1..355505311 100644 --- a/tgt-vvp/eval_vec4.c +++ b/tgt-vvp/eval_vec4.c @@ -709,6 +709,7 @@ static void draw_unary_vec4(ivl_expr_t expr, int stuff_ok_flag) fprintf(vvp_out, " %%pushi/vec4 1, 0, %u;\n", ivl_expr_width(sub)); fprintf(vvp_out, " %%add;\n"); fprintf(vvp_out, "T_%u.%u ;\n", thread_count, local_count); + local_count += 1; break; case 'v': /* Cast real to vec4 */