nir: Fix crash in nir_lower_drawpixels.
authorEric Anholt <eric@anholt.net>
Fri, 19 Aug 2016 22:38:08 +0000 (15:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 22 Aug 2016 18:52:27 +0000 (11:52 -0700)
commit3ef1853f7d75eb5235dc1a425374b67c42a4eb65
tree80cd9072055e6ca1dda147d68ddfc1f52586158b
parent0a8ff1681b4149b50956791c5b080ab5753447ad
nir: Fix crash in nir_lower_drawpixels.

Generally you'd see the gl_Color reference first and get some cursor set.
However, in piglit draw-pixel-with-texture we're now seeing the TexCoord
dereferenced first.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_lower_drawpixels.c