Module: Mesa
Branch: master
Commit: 6dc71d6aa5262ee3fcb79c713f2d91121db79533
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6dc71d6aa5262ee3fcb79c713f2d91121db79533

Author: Marek Olšák <[email protected]>
Date:   Sun Sep  5 00:43:34 2010 +0200

r300/compiler: fix the instruction limit in vertex shaders

Broken with commit d774b0c710bb7d833d17bd12f5151a0176baad96.

Reported by Chris Rankin.

---

 src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c |    2 +-
 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 4076825..0878571 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;
                }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to