nir: Pick just the channels we want for bitmap and drawpixels lowering.
authorEric Anholt <eric@anholt.net>
Wed, 8 Mar 2017 23:20:31 +0000 (15:20 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 2 May 2017 17:24:40 +0000 (10:24 -0700)
commitfba6559a1e76a22135b14490fdf5a6f1de1ae272
tree3c0c75f5b78da28eb14e1637d18f20fce77a18cc
parent6ef1bd4fa57b36efc7919773fd26c36fd43d2ea9
nir: Pick just the channels we want for bitmap and drawpixels lowering.

NIR now validates that SSA references use the same number of channels as
are in the SSA value.

v2: Reword commit message, since the commit didn't land before the
    validation change did.

Fixes: 370d68babcbb ("nir/validate: Validate that bit sizes and components always match")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v1)
Cc: <mesa-stable@lists.freedesktop.org>
src/compiler/nir/nir_lower_bitmap.c
src/compiler/nir/nir_lower_drawpixels.c