mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 12:00:12 +01:00
freedreno/a2xx: add missing casts to silence notices
Signed-off-by: Francesco Ansanelli <francians@gmail.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
78ba262d00
commit
a49fb4ab2d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue