projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44cb5b5
)
mesa: move code after decl
author
brian
<brian@cvp965.(none)>
Sat, 7 Nov 2009 15:18:03 +0000
(08:18 -0700)
committer
brian
<brian@cvp965.(none)>
Sat, 7 Nov 2009 15:18:07 +0000
(08:18 -0700)
Fixes bug 24967.
src/mesa/shader/prog_optimize.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_optimize.c
b/src/mesa/shader/prog_optimize.c
index 94d3dce6ea7360143e804ff09aafb49a35d0c1db..8638754e243e88dc3825edb5ad024182052ad4d5 100644
(file)
--- a/
src/mesa/shader/prog_optimize.c
+++ b/
src/mesa/shader/prog_optimize.c
@@
-249,8
+249,9
@@
_mesa_remove_dead_code(struct gl_program *prog)
for (j = 0; j < numSrc; j++) {
if (inst->SrcReg[j].File == PROGRAM_TEMPORARY) {
const GLuint index = inst->SrcReg[j].Index;
+ GLuint read_mask;
ASSERT(index < MAX_PROGRAM_TEMPS);
-
int
read_mask = get_src_arg_mask(inst, j);
+ read_mask = get_src_arg_mask(inst, j);
if (inst->SrcReg[j].RelAddr) {
if (dbg)