[Mesa-dev] [PATCH 03/16] glsl: Use constant_expression_value instead of as_constant

Matt Turner mattst88 at gmail.com
Mon Jul 21 15:39:25 PDT 2014


On Mon, Jul 21, 2014 at 2:04 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at 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.


More information about the mesa-dev mailing list