On Mon, Jul 21, 2014 at 2:04 PM, Ian Romanick <i...@freedesktop.org> wrote: > From: Ian Romanick <ian.d.roman...@intel.com> > > Just a few lines earlier we may have wrapped the index expression with > ir_unop_i2u expression. Whenever that happens, as_constant will return > NULL, and that almost always happens.
Are you saying that since we just passed array_index to i2u we know it must be a constant? I can follow that much, but I don't see anything that really makes sure this is a constant. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev