aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author[email protected] <[email protected]>2016-08-09 19:38:32 +0200
committerRob Clark <[email protected]>2016-08-13 09:37:41 -0400
commita49fb4ab2d5b062a418e930dc46cb2c79380852e (patch)
tree03cd27e7475ffea3f2c0a3b8e2648ff3c787b224 /src
parent78ba262d004989c43b0a9e76c84b71bb16d4b333 (diff)
freedreno/a2xx: add missing casts to silence notices
Signed-off-by: Francesco Ansanelli <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/ir-a2xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
index 2b62b3ae23c..163c2820384 100644
--- a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
+++ b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
@@ -403,7 +403,7 @@ static int instr_emit_alu(struct ir2_instruction *instr, uint32_t *dwords,
assert((src2_reg->flags & IR2_REG_EXPORT) == 0);
assert(!src2_reg->swizzle || (strlen(src2_reg->swizzle) == 4));
- if (instr->alu.vector_opc == ~0) {
+ if (instr->alu.vector_opc == (instr_vector_opc_t)~0) {
alu->vector_opc = MAXv;
alu->vector_write_mask = 0;
} else {
@@ -431,7 +431,7 @@ static int instr_emit_alu(struct ir2_instruction *instr, uint32_t *dwords,
alu->vector_clamp = instr->alu.vector_clamp;
alu->scalar_clamp = instr->alu.scalar_clamp;
- if (instr->alu.scalar_opc != ~0) {
+ if (instr->alu.scalar_opc != (instr_scalar_opc_t)~0) {
struct ir2_register *sdst_reg = instr->regs[reg++];
reg_update_stats(sdst_reg, info, true);