mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
mesa/program: Constify find_variable_storage
Also clean up an old whitespace blooper. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
22128e30f3
commit
1bdf65f743
1 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue