ac: fix a typo in ac_build_wg_scan_bottom
authorMarek Olšák <marek.olsak@amd.com>
Wed, 22 May 2019 22:23:27 +0000 (18:23 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Jun 2019 22:53:46 +0000 (18:53 -0400)
Cc: 19.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_llvm_build.c

index b4d7eb0d0e3f40b5ae6bb8dc8d7160d8c834058e..b9866d26d2304cd63f23f5670cfe3b0f7b1003ab 100644 (file)
@@ -4327,7 +4327,7 @@ ac_build_wg_scan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan *ws)
 
        /* ws->result_reduce is already the correct value */
        if (ws->enable_inclusive)
-               ws->result_inclusive = ac_build_alu_op(ctx, ws->result_exclusive, ws->src, ws->op);
+               ws->result_inclusive = ac_build_alu_op(ctx, ws->result_inclusive, ws->src, ws->op);
        if (ws->enable_exclusive)
                ws->result_exclusive = ac_build_alu_op(ctx, ws->result_exclusive, ws->extra, ws->op);
 }