r300/compiler: remove a redundant parameter in rc_pair_regalloc

This commit is contained in:
Marek Olšák 2010-09-01 01:55:26 +02:00
parent f0ae99252a
commit 9a9aa7daa8
3 changed files with 4 additions and 3 deletions

View File

@ -210,7 +210,7 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
debug_program_log(c, "after pair scheduling");
rc_pair_regalloc(c, c->Base.max_temp_regs);
rc_pair_regalloc(c);
if (c->Base.Error)
return;

View File

@ -292,8 +292,9 @@ static void alloc_input(void * data, unsigned int input, unsigned int hwreg)
}
void rc_pair_regalloc(struct r300_fragment_program_compiler *c, unsigned maxtemps)
void rc_pair_regalloc(struct r300_fragment_program_compiler *c)
{
unsigned maxtemps = c->Base.max_temp_regs;
struct regalloc_state s;
memset(&s, 0, sizeof(s));

View File

@ -120,7 +120,7 @@ struct radeon_pair_handler;
void rc_pair_translate(struct r300_fragment_program_compiler *c);
void rc_pair_schedule(struct r300_fragment_program_compiler *c);
void rc_pair_regalloc(struct r300_fragment_program_compiler *c, unsigned maxtemps);
void rc_pair_regalloc(struct r300_fragment_program_compiler *c);
/*@}*/
#endif /* __RADEON_PROGRAM_PAIR_H_ */