diff options
author | Eric Anholt <[email protected]> | 2020-02-04 15:12:18 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2020-02-27 21:59:31 -0800 |
commit | b9773631d3e79e2310ed0eb274b4dd9426205066 (patch) | |
tree | 9c236d34cdbda55615e14bf001046dd8741c2e3a | |
parent | 2976ae2717a7a4fb1494f4adf92e1972528d24fd (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3607>
-rw-r--r-- | src/amd/compiler/aco_insert_exec_mask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Pseudo_instruction> phi{create_instruction<Pseudo_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; } |