OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d10006e
)
R6xx/R7xx: Fix number of temps used in fragment program
author
Alex Deucher
<alexdeucher@gmail.com>
Wed, 1 Jul 2009 15:10:10 +0000
(11:10 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Wed, 1 Jul 2009 15:10:10 +0000
(11:10 -0400)
Spotted by Cooper. This gets hello, aargb, smooth, etc.
working.
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
0eea256
..
66070a7
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 : ui;
+ ui =
(ui < unNumOfReg)
? unNumOfReg : ui;
SETfield(r700->ps.SQ_PGM_RESOURCES_PS.u32All, ui, NUM_GPRS_shift, NUM_GPRS_mask);