projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8b5fb
)
glsl: fix off by one in register index assertion
author
Brian Paul
<brianp@vmware.com>
Mon, 22 Nov 2010 22:06:47 +0000
(15:06 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 23 Nov 2010 22:52:42 +0000
(15:52 -0700)
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 98da90d359ad0bfddaea2bb51e3feb3a523bb612..4f263add7a4b71cccde08204e82f03bd4c67409a 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-2239,7
+2239,7
@@
mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
struct prog_src_register mesa_reg;
mesa_reg.File = reg.file;
- assert(reg.index < (1 << INST_INDEX_BITS)
- 1
);
+ assert(reg.index < (1 << INST_INDEX_BITS));
mesa_reg.Index = reg.index;
mesa_reg.Swizzle = reg.swizzle;
mesa_reg.RelAddr = reg.reladdr != NULL;