nir: Make sure to set the texsrc type in nir drawpixels/bitmap lowering.
authorEric Anholt <eric@anholt.net>
Thu, 3 Nov 2016 23:28:49 +0000 (16:28 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 01:42:58 +0000 (18:42 -0700)
commit49936364e4c48e318b1ef3f09785b0e669a0c11b
treecfbb014c6155516327743900e641c7922334b160
parent572a95212673888d72f1ec68b9eed660bab0b5d7
nir: Make sure to set the texsrc type in nir drawpixels/bitmap lowering.

We were leaving an undefined value since the ralloc zeroing changes.
Fixes nir_validate() failures on vc4.

v2: Fix the color-index case of drawpixels as well.

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