From: Eric Anholt Date: Tue, 4 Feb 2020 23:12:18 +0000 (-0800) Subject: aco: Fix signed-vs-unsigned warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9773631d3e79e2310ed0eb274b4dd9426205066;p=mesa.git aco: Fix signed-vs-unsigned warning. The previous instance of this comparision was 1u to avoid the warning, fix this one too. Fixes: dba71de5c636 ("aco: only create parallelcopy to restore exec at loop exit if needed") Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp index 37a994cd4df..527d63627e0 100644 --- a/src/amd/compiler/aco_insert_exec_mask.cpp +++ b/src/amd/compiler/aco_insert_exec_mask.cpp @@ -526,7 +526,7 @@ unsigned add_coupling_code(exec_ctx& ctx, Block* block, /* create phi for loop footer */ aco_ptr phi{create_instruction(aco_opcode::p_linear_phi, Format::PSEUDO, preds.size(), 1)}; phi->definitions[0] = bld.def(bld.lm); - if (k == info.num_exec_masks - 1) { + if (k == info.num_exec_masks - 1u) { phi->definitions[0].setFixed(exec); need_parallelcopy = false; }