pan/midgard: Set xyzx swizzle for load_compute_arg

Probably harmless but the w component doesn't appear valid so let's
match the blob... one less bit to be nervous about.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
This commit is contained in:
Alyssa Rosenzweig 2020-02-12 08:39:29 -05:00
parent f0ee55ad2a
commit d3747fb1eb
1 changed files with 1 additions and 0 deletions

View File

@ -1481,6 +1481,7 @@ emit_compute_builtin(compiler_context *ctx, nir_intrinsic_instr *instr)
unsigned reg = nir_dest_index(ctx, &instr->dest);
midgard_instruction ins = m_ld_compute_id(reg, 0);
ins.mask = mask_of(3);
ins.swizzle[0][3] = COMPONENT_X; /* xyzx */
ins.load_store.arg_1 = compute_builtin_arg(instr->intrinsic);
emit_mir_instruction(ctx, ins);
}