diff options
author | Marek Olšák <[email protected]> | 2010-09-01 00:56:57 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-09-04 18:56:20 +0200 |
commit | 313e95f0c792580f6051fedb67e65838405c88f8 (patch) | |
tree | 44c9071b100303f58fe371302de9cbcc6293a27d /src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c | |
parent | a0fb406d9fd2bcd040f70ba639cc8342c0a92c6d (diff) |
r300/compiler: add new compiler parameter max_alu_insts
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c index f82d0f1e62d..96c5d6fda9f 100644 --- a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c +++ b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c @@ -107,12 +107,11 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c) debug_program_log(c, "before compilation"); - if (c->Base.is_r500){ - rc_unroll_loops(&c->Base, R500_PFS_MAX_INST); + if (c->Base.is_r500) { + rc_unroll_loops(&c->Base); debug_program_log(c, "after unroll loops"); - } - else{ - rc_transform_loops(&c->Base, -1); + } else { + rc_transform_loops(&c->Base); debug_program_log(c, "after transform loops"); rc_emulate_branches(&c->Base); @@ -165,7 +164,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c) debug_program_log(c, "after deadcode"); if (!c->Base.is_r500) { - rc_emulate_loops(&c->Base, R300_PFS_MAX_ALU_INST); + rc_emulate_loops(&c->Base); debug_program_log(c, "after emulate loops"); } |