[1/9] ac: fix a typo in ac_build_wg_scan_bottom

Submitted by Marek Olšák on June 4, 2019, 12:02 a.m.

Details

Message ID 20190604000258.9143-1-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Marek Olšák June 4, 2019, 12:02 a.m.
From: Marek Olšák <marek.olsak@amd.com>

Cc: 19.1 <mesa-stable@lists.freedesktop.org>
---
 src/amd/common/ac_llvm_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index d0e11141b81..79058f53b4e 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -4320,21 +4320,21 @@  ac_build_wg_scan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan *ws)
 	bool enable_inclusive = ws->enable_inclusive;
 	bool enable_exclusive = ws->enable_exclusive;
 	ws->enable_inclusive = false;
 	ws->enable_exclusive = ws->enable_exclusive || enable_inclusive;
 	ac_build_wg_wavescan_bottom(ctx, ws);
 	ws->enable_inclusive = enable_inclusive;
 	ws->enable_exclusive = enable_exclusive;
 
 	/* 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);
 }
 
 /**
  * A scan that reduces per-thread values across an entire workgroup.
  *
  * The caller must ensure that all lanes are active when this code runs
  * (WWM is insufficient!), because there is an implied barrier.
  */