diff options
author | Eric Anholt <[email protected]> | 2016-11-03 16:28:49 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-11-03 18:42:58 -0700 |
commit | 49936364e4c48e318b1ef3f09785b0e669a0c11b (patch) | |
tree | cfbb014c6155516327743900e641c7922334b160 /src/compiler/nir/nir_lower_bitmap.c | |
parent | 572a95212673888d72f1ec68b9eed660bab0b5d7 (diff) |
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 <[email protected]> (v1)
Diffstat (limited to 'src/compiler/nir/nir_lower_bitmap.c')
-rw-r--r-- | src/compiler/nir/nir_lower_bitmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_bitmap.c b/src/compiler/nir/nir_lower_bitmap.c index fefe53cbd81..f08fb9b9c34 100644 --- a/src/compiler/nir/nir_lower_bitmap.c +++ b/src/compiler/nir/nir_lower_bitmap.c @@ -95,6 +95,7 @@ lower_bitmap(nir_shader *shader, nir_builder *b, tex->sampler_index = options->sampler; tex->texture_index = options->sampler; tex->dest_type = nir_type_float; + tex->src[0].src_type = nir_tex_src_coord; tex->src[0].src = nir_src_for_ssa(texcoord); nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, NULL); |