From: Jason Ekstrand Date: Sat, 5 Sep 2015 01:47:56 +0000 (-0700) Subject: nir/spirv/glsl450: Use the correct write mask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d5dafd779550391c2313e82e6630d7a93cf9530;p=mesa.git nir/spirv/glsl450: Use the correct write mask --- diff --git a/src/glsl/nir/spirv_glsl450_to_nir.c b/src/glsl/nir/spirv_glsl450_to_nir.c index 8bfa16e6d2f..60bd597820c 100644 --- a/src/glsl/nir/spirv_glsl450_to_nir.c +++ b/src/glsl/nir/spirv_glsl450_to_nir.c @@ -150,6 +150,7 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint, nir_alu_instr *instr = nir_alu_instr_create(b->shader, op); nir_ssa_dest_init(&instr->instr, &instr->dest.dest, glsl_get_vector_elements(val->ssa->type), val->name); + instr->dest.write_mask = (1 << instr->dest.dest.ssa.num_components) - 1; val->ssa->def = &instr->dest.dest.ssa; for (unsigned i = 0; i < nir_op_infos[op].num_inputs; i++)