Re: [Mesa-dev] [PATCH 18/23] glsl: Constify ir_instruction::equals

2015-03-21 Thread Francisco Jerez
Ian Romanick i...@freedesktop.org writes: From: Ian Romanick ian.d.roman...@intel.com The casts to remove const from ir are ugly. The alternative was to add const versions of all the as_foo functions, and I just couldn't get up the motivation to do that. Wouldn't the alternative be roughly

[Mesa-dev] [PATCH 18/23] glsl: Constify ir_instruction::equals

2015-03-20 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com The casts to remove const from ir are ugly. The alternative was to add const versions of all the as_foo functions, and I just couldn't get up the motivation to do that. If there's a third option that is better, I would love to hear about it. :)