aco: Fix signedness compare warning.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 21 Jan 2020 14:34:23 +0000 (15:34 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Wed, 22 Jan 2020 10:09:17 +0000 (11:09 +0100)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@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

index bbbab1a35fda924938165c4f6085466ea978bd19..2cfd029bdc4b52f03ce335fdf9d9b10cec84bee6 100644 (file)
@@ -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);