summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-01-13 18:39:56 -0500
committerRob Clark <robclark@freedesktop.org>2016-01-16 13:35:44 -0500
commit6f0377d65180febf622318c10f7a9190fac22f3b (patch)
tree41abde6ccfa6af4d0f9b7e7d05937211ea421d9e /src
parent683794fd608688b4228941a4d662ad2e9311863b (diff)
downloadexternal_mesa3d-6f0377d65180febf622318c10f7a9190fac22f3b.zip
external_mesa3d-6f0377d65180febf622318c10f7a9190fac22f3b.tar.gz
external_mesa3d-6f0377d65180febf622318c10f7a9190fac22f3b.tar.bz2
ttn: add missing writemask on store_output
Signed-off-by: Rob Clark <robclark@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 7c57759..9b19448 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -1932,6 +1932,7 @@ ttn_add_output_stores(struct ttn_compile *c)
store->src[0].reg.reg = c->output_regs[loc].reg;
store->src[0].reg.base_offset = c->output_regs[loc].offset;
store->const_index[0] = loc;
+ store->const_index[1] = 0xf; /* writemask */
store->src[1] = nir_src_for_ssa(nir_imm_int(b, 0));
nir_builder_instr_insert(b, &store->instr);
}