diff options
author | Richard Li <[email protected]> | 2009-07-02 12:08:57 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2009-07-02 12:08:57 -0400 |
commit | bb429803e08231f5ee5fab25383be62b1952bd45 (patch) | |
tree | 033f825c603fd13b36f79f68a0d6a33bcfc84712 /src/mesa/drivers/dri | |
parent | c571395e5d768b46bef511d89af641d55cd2ad98 (diff) |
r6xx/r7xx: Better fix for fragment temps
This doesn't waste as many in generic cases.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_fragprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c index 66070a7eec8..44de2aebee6 100644 --- a/src/mesa/drivers/dri/r600/r700_fragprog.c +++ b/src/mesa/drivers/dri/r600/r700_fragprog.c @@ -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); |