projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc83f6b
)
glsl: Fix off-by-one error setting max_array_access for non-constant indexing
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 24 Mar 2011 23:50:23 +0000
(16:50 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 25 Mar 2011 18:28:07 +0000
(11:28 -0700)
NOTE: This is a candidate for the stable branches.
src/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index cdb16fd492bfffeba4f978a388c82f0d100bf5ce..a1c76e834affada1b85244f6d89d7fabfcc498d6 100644
(file)
--- a/
src/glsl/ast_to_hir.cpp
+++ b/
src/glsl/ast_to_hir.cpp
@@
-1577,7
+1577,7
@@
ast_expression::hir(exec_list *instructions,
*/
ir_variable *v = array->whole_variable_referenced();
if (v != NULL)
- v->max_array_access = array->type->array_size();
+ v->max_array_access = array->type->array_size()
- 1
;
}
}