mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
i965: Unwrap some lines.
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
58fa9d47b5
commit
3048053908
4 changed files with 4 additions and 12 deletions
|
|
@ -417,10 +417,7 @@ fs_reg::fs_reg(uint8_t vf0, uint8_t vf1, uint8_t vf2, uint8_t vf3)
|
|||
init();
|
||||
this->file = IMM;
|
||||
this->type = BRW_REGISTER_TYPE_VF;
|
||||
this->ud = (vf0 << 0) |
|
||||
(vf1 << 8) |
|
||||
(vf2 << 16) |
|
||||
(vf3 << 24);
|
||||
this->ud = (vf0 << 0) | (vf1 << 8) | (vf2 << 16) | (vf3 << 24);
|
||||
}
|
||||
|
||||
fs_reg::fs_reg(struct brw_reg reg) :
|
||||
|
|
|
|||
|
|
@ -299,8 +299,7 @@ fs_visitor::opt_combine_constants()
|
|||
reg->reg = table.imm[i].reg;
|
||||
reg->subreg_offset = table.imm[i].subreg_offset;
|
||||
reg->stride = 0;
|
||||
reg->negate = signbit(reg->f) !=
|
||||
signbit(table.imm[i].val);
|
||||
reg->negate = signbit(reg->f) != signbit(table.imm[i].val);
|
||||
assert(fabsf(reg->f) == table.imm[i].val);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,10 +113,7 @@ src_reg::src_reg(uint8_t vf0, uint8_t vf1, uint8_t vf2, uint8_t vf3)
|
|||
|
||||
this->file = IMM;
|
||||
this->type = BRW_REGISTER_TYPE_VF;
|
||||
this->ud = (vf0 << 0) |
|
||||
(vf1 << 8) |
|
||||
(vf2 << 16) |
|
||||
(vf3 << 24);
|
||||
this->ud = (vf0 << 0) | (vf1 << 8) | (vf2 << 16) | (vf3 << 24);
|
||||
}
|
||||
|
||||
src_reg::src_reg(struct brw_reg reg) :
|
||||
|
|
|
|||
|
|
@ -147,8 +147,7 @@ try_constant_propagate(const struct brw_device_info *devinfo,
|
|||
}
|
||||
|
||||
if (value.type == BRW_REGISTER_TYPE_VF)
|
||||
value.ud = swizzle_vf_imm(value.ud,
|
||||
inst->src[arg].swizzle);
|
||||
value.ud = swizzle_vf_imm(value.ud, inst->src[arg].swizzle);
|
||||
|
||||
switch (inst->opcode) {
|
||||
case BRW_OPCODE_MOV:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue