[Mesa-dev] [PATCH] ttn: add missing writemask on store_output
Kenneth Graunke
kenneth at whitecape.org
Wed Jan 13 22:10:06 PST 2016
On Wednesday, January 13, 2016 6:40:59 PM PST Rob Clark wrote:
> From: Rob Clark <robclark at freedesktop.org>
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> ---
> src/gallium/auxiliary/nir/tgsi_to_nir.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c
> b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 46c9297..e127174 100644
> --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
> +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
> @@ -1908,6 +1908,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);
> }
Oops...sorry :(
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20160113/eef09336/attachment-0001.sig>
More information about the mesa-dev
mailing list