Mesa (master): aco: Fix signedness compare warning.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 22 10:28:39 UTC 2020


Module: Mesa
Branch: master
Commit: 1c9ecb21237a24675d0ab001ef61efa70385399d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c9ecb21237a24675d0ab001ef61efa70385399d

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Tue Jan 21 15:34:23 2020 +0100

aco: Fix signedness compare warning.

Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3483>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3483>

---

 src/amd/compiler/aco_insert_exec_mask.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp
index bbbab1a35fd..2cfd029bdc4 100644
--- a/src/amd/compiler/aco_insert_exec_mask.cpp
+++ b/src/amd/compiler/aco_insert_exec_mask.cpp
@@ -732,7 +732,7 @@ void process_instructions(exec_ctx& ctx, Block* block,
          int num;
          Temp cond, exit_cond;
          if (instr->operands[0].isConstant()) {
-            assert(instr->operands[0].constantValue() == -1);
+            assert(instr->operands[0].constantValue() == -1u);
             /* transition to exact and set exec to zero */
             Temp old_exec = ctx.info[block->index].exec.back().first;
             Temp new_exec = bld.tmp(bld.lm);



More information about the mesa-commit mailing list