r300/compiler: fix the instruction limit in vertex shaders
Broken with commit d774b0c710.
Reported by Chris Rankin.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user