mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
r6xx/r7xx: Better fix for fragment temps
This doesn't waste as many in generic cases.
This commit is contained in:
parent
c571395e5d
commit
bb429803e0
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx)
|
|||
|
||||
ui = (r700->SPI_PS_IN_CONTROL_0.u32All & NUM_INTERP_mask) / (1 << NUM_INTERP_shift);
|
||||
|
||||
ui = (ui < unNumOfReg) ? unNumOfReg : ui;
|
||||
ui = ui ? ui : unNumOfReg;
|
||||
|
||||
SETfield(r700->ps.SQ_PGM_RESOURCES_PS.u32All, ui, NUM_GPRS_shift, NUM_GPRS_mask);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue