additional wrapper updates, bug 4468

This commit is contained in:
Brian Paul
2005-09-19 20:12:32 +00:00
parent a01cb26a90
commit b3aefd1cfb
26 changed files with 227 additions and 109 deletions

View File

@@ -350,16 +350,16 @@ static struct ureg get_temp( struct texenv_fragment_program *p )
/* First try and reuse temps which have been used already:
*/
bit = ffs( ~p->temp_in_use & p->alu_temps );
bit = _mesa_ffs( ~p->temp_in_use & p->alu_temps );
/* Then any unused temporary:
*/
if (!bit)
bit = ffs( ~p->temp_in_use );
bit = _mesa_ffs( ~p->temp_in_use );
if (!bit) {
_mesa_problem(NULL, "%s: out of temporaries\n", __FILE__);
exit(1);
_mesa_exit(1);
}
if (bit > p->program->Base.NumTemporaries)
@@ -378,16 +378,16 @@ static struct ureg get_tex_temp( struct texenv_fragment_program *p )
* ~p->temps_output isn't necessary, but will keep it there for
* now:
*/
bit = ffs( ~p->temp_in_use & ~p->alu_temps & ~p->temps_output );
bit = _mesa_ffs( ~p->temp_in_use & ~p->alu_temps & ~p->temps_output );
/* Then any unused temporary:
*/
if (!bit)
bit = ffs( ~p->temp_in_use );
bit = _mesa_ffs( ~p->temp_in_use );
if (!bit) {
_mesa_problem(NULL, "%s: out of temporaries\n", __FILE__);
exit(1);
_mesa_exit(1);
}
if (bit > p->program->Base.NumTemporaries)