diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-02-12 08:39:29 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-02-16 09:16:48 -0500 |
commit | d3747fb1ebbb1c3d6f62abaf92b100f7f52d0f6b (patch) | |
tree | 52aca6a869afbd179f841e75a0a0f7cf64beb93f /src/panfrost/midgard | |
parent | f0ee55ad2a4e63cce88c9d68bfdf7d1c0e7e88b0 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index c0334081574..8aa54bfb0a2 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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); } |