projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c571395
)
r6xx/r7xx: Better fix for fragment temps
author
Richard Li
<RichardZ.Li@amd.com>
Thu, 2 Jul 2009 16:08:57 +0000
(12:08 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Thu, 2 Jul 2009 16:08:57 +0000
(12:08 -0400)
This doesn't waste as many in generic cases.
src/mesa/drivers/dri/r600/r700_fragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_fragprog.c
b/src/mesa/drivers/dri/r600/r700_fragprog.c
index 66070a7eec818e3381a553e2adb4db72d3a637a7..44de2aebee693c1014f8fd9bbd12a51258af7792 100644
(file)
--- 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);