summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-03-03 06:31:02 +0200
committerIan Romanick <[email protected]>2014-03-28 10:57:53 -0700
commit1bdf65f743f071d8f6aae487092b3cb79da17567 (patch)
tree4e83f223b0b16472b49c840a961cfcdbee5941b0 /src/mesa/program
parent22128e30f3b1fe927d94ccdc000a866b369491e4 (diff)
mesa/program: Constify find_variable_storage
Also clean up an old whitespace blooper. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 95987107f38..1ba9e432965 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -229,7 +229,7 @@ public:
int next_temp;
- variable_storage *find_variable_storage(ir_variable *var);
+ variable_storage *find_variable_storage(const ir_variable *var);
src_reg get_temp(const glsl_type *type);
void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr);
@@ -661,9 +661,8 @@ ir_to_mesa_visitor::get_temp(const glsl_type *type)
}
variable_storage *
-ir_to_mesa_visitor::find_variable_storage(ir_variable *var)
+ir_to_mesa_visitor::find_variable_storage(const ir_variable *var)
{
-
variable_storage *entry;
foreach_list(node, &this->variables) {