r5xx: We update max_temp_idx now, so no need to hard-code it.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 6 May 2008 19:42:40 +0000 (12:42 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 6 May 2008 19:42:40 +0000 (12:42 -0700)
This roughly doubles the speed of glxgears (GINAB) by allowing
more pixels to run concurrently.

src/mesa/drivers/dri/r300/r500_fragprog.c

index 9ad081e9b898cdc14b107d0b03a3399d6b4b89e3..b91cc273fd3c02eacadf7090853371f776e4cfd8 100644 (file)
@@ -619,7 +619,7 @@ static void init_program(r300ContextPtr r300, struct r500_fragment_program *fp)
        fp->cur_node = 0;
        fp->first_node_has_tex = 0;
        fp->const_nr = 0;
-       fp->max_temp_idx = 64;
+       fp->max_temp_idx = 0;
        fp->node[0].alu_end = -1;
        fp->node[0].tex_end = -1;