diff options
author | Konstantin Kharlamov <[email protected]> | 2017-12-29 08:32:31 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-17 14:47:37 -0400 |
commit | 3f8fa7716de8c9603e7c1ca5767c686fd8020b9f (patch) | |
tree | 5e43a6c18d51b3d8cac48c741e5e65db0c830865 /src/gallium/drivers/r600/r600_isa.c | |
parent | b674a1d3b9790fc0e118c0dbcc0b39767a313361 (diff) |
r600g: some -Wsign-compare fixes
Signed-off-by: Konstantin Kharlamov <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_isa.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_isa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_isa.c b/src/gallium/drivers/r600/r600_isa.c index 611b370bf58..57b0e044f9d 100644 --- a/src/gallium/drivers/r600/r600_isa.c +++ b/src/gallium/drivers/r600/r600_isa.c @@ -558,7 +558,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) { for (i = 0; i < ARRAY_SIZE(r600_alu_op_table); ++i) { const struct alu_op_info *op = &r600_alu_op_table[i]; - unsigned opc; + int opc; if (op->flags & AF_LDS || op->slots[isa->hw_class] == 0) continue; opc = op->opcode[isa->hw_class >> 1]; @@ -571,7 +571,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) { for (i = 0; i < ARRAY_SIZE(fetch_op_table); ++i) { const struct fetch_op_info *op = &fetch_op_table[i]; - unsigned opc = op->opcode[isa->hw_class]; + int opc = op->opcode[isa->hw_class]; if ((op->flags & FF_GDS) || ((opc & 0xFF) != opc)) continue; /* ignore GDS ops and INST_MOD versions for now */ isa->fetch_map[opc] = i + 1; @@ -579,7 +579,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) { for (i = 0; i < ARRAY_SIZE(cf_op_table); ++i) { const struct cf_op_info *op = &cf_op_table[i]; - unsigned opc = op->opcode[isa->hw_class]; + int opc = op->opcode[isa->hw_class]; if (opc == -1) continue; /* using offset for CF_ALU_xxx opcodes because they overlap with other |