projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
068c80c
)
Allow initializers of constant values to succeed.
author
Eric Anholt
<eric@anholt.net>
Thu, 1 Apr 2010 01:44:38 +0000
(15:44 -1000)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 2 Apr 2010 18:05:16 +0000
(11:05 -0700)
This regresses constFunc.frag, but that's just unexpectedly passing
because of the FINISHME just above.
ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/ast_to_hir.cpp
b/ast_to_hir.cpp
index 137abdaaa6c2149317a4102b18a4b80312894e5f..11000a8134623325bf75d0f406a3ca9ed845a70f 100644
(file)
--- a/
ast_to_hir.cpp
+++ b/
ast_to_hir.cpp
@@
-1441,8
+1441,12
@@
ast_declarator_list::hir(exec_list *instructions,
*/
if (!rhs->type->is_error()) {
+ bool temp = var->read_only;
+ if (this->type->qualifier.constant)
+ var->read_only = false;
(void) do_assignment(instructions, state, lhs, rhs,
this->get_location());
+ var->read_only = temp;
}
}