summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-09-05 00:43:34 +0200
committerMarek Olšák <[email protected]>2010-09-05 00:44:52 +0200
commit6dc71d6aa5262ee3fcb79c713f2d91121db79533 (patch)
tree2175d958044337b33c50ffc4d00c53689114f247 /src/mesa/drivers
parent20bf5037d6006329b362fe501cc8a3594a0cab24 (diff)
r300/compiler: fix the instruction limit in vertex shaders
Broken with commit d774b0c710bb7d833d17bd12f5151a0176baad96. Reported by Chris Rankin.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
index 4076825b483..08785716db5 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
@@ -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;
}