r600/sfn: Fix RING instruction assembly emission
authorGert Wollny <gert.wollny@collabora.com>
Wed, 6 May 2020 21:50:38 +0000 (23:50 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 07:52:13 +0000 (07:52 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>

src/gallium/drivers/r600/sfn/sfn_ir_to_assembly.cpp

index 358d1c8f830640e532c9f44de95c00ab7f51e053..8197e01dda4f80029f9fc81641d687008d0da9d5 100644 (file)
@@ -619,8 +619,8 @@ bool AssemblyFromShaderLegacyImpl::emit_memringwrite(const MemRingOutIntruction&
 
    output.gpr = instr.gpr().sel();
    output.type = instr.type();
-   output.elem_size = instr.ncomp();
-   output.comp_mask = 0xF;
+   output.elem_size = 3;
+   output.comp_mask = 0xf;
    output.burst_count = 1;
    output.op = instr.op();
    if (instr.type() == mem_write_ind || instr.type() == mem_write_ind_ack) {