r300/compiler: fix the instruction limit in vertex shaders

Broken with commit d774b0c710.

Reported by Chris Rankin.
This commit is contained in:
Marek Olšák
2010-09-05 00:43:34 +02:00
parent 20bf5037d6
commit 6dc71d6aa5
@@ -503,7 +503,7 @@ static void translate_vertex_program(struct radeon_compiler *c, void *user)
}
}
if (compiler->code->length >= c->max_alu_insts) {
if (compiler->code->length >= c->max_alu_insts * 4) {
rc_error(&compiler->Base, "Vertex program has too many instructions\n");
return;
}