mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 22:00:26 +01:00
[965] Fix fp temp reg release code to not usually release all temps.
Also, use wrapped ffs() instead of native.
This commit is contained in:
parent
e9809a36aa
commit
3105bc1d88
1 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ static struct prog_dst_register dst_undef( void )
|
|||
|
||||
static struct prog_dst_register get_temp( struct brw_wm_compile *c )
|
||||
{
|
||||
int bit = ffs( ~c->fp_temp );
|
||||
int bit = _mesa_ffs( ~c->fp_temp );
|
||||
|
||||
if (!bit) {
|
||||
_mesa_printf("%s: out of temporaries\n", __FILE__);
|
||||
|
|
@ -158,7 +158,7 @@ static struct prog_dst_register get_temp( struct brw_wm_compile *c )
|
|||
|
||||
static void release_temp( struct brw_wm_compile *c, struct prog_dst_register temp )
|
||||
{
|
||||
c->fp_temp &= ~1<<(temp.Index + 1 - FIRST_INTERNAL_TEMP);
|
||||
c->fp_temp &= ~(1 << (temp.Index - FIRST_INTERNAL_TEMP));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue