Re: [Mesa-dev] [PATCH 1/3] glsl: Make is_lvalue() and variable_referenced() const.

2011-08-05 Thread Kenneth Graunke
On 08/04/2011 06:55 PM, Chad Versace wrote: On 08/02/2011 05:38 PM, Paul Berry wrote: These functions don't modify the target instruction, so it makes sense to make them const. This allows these functions to be called from ir validation code (which uses const to ensure that it doesn't

Re: [Mesa-dev] [PATCH 1/3] glsl: Make is_lvalue() and variable_referenced() const.

2011-08-04 Thread Chad Versace
On 08/02/2011 05:38 PM, Paul Berry wrote: These functions don't modify the target instruction, so it makes sense to make them const. This allows these functions to be called from ir validation code (which uses const to ensure that it doesn't accidentally modify the IR being validated). ---