r600_add_gpr_array(ctx->shader,
ctx->file_offset[TGSI_FILE_TEMPORARY] +
d->Range.First,
- d->Range.Last - d->Range.First + 1, 0b1111);
+ d->Range.Last - d->Range.First + 1, 0x0F);
}
}
break;
r600_add_gpr_array(shader, ctx.file_offset[TGSI_FILE_INPUT],
ctx.file_offset[TGSI_FILE_OUTPUT] -
ctx.file_offset[TGSI_FILE_INPUT],
- 0b1111);
+ 0x0F);
}
if (ctx.info.indirect_files & (1 << TGSI_FILE_OUTPUT)) {
r600_add_gpr_array(shader, ctx.file_offset[TGSI_FILE_OUTPUT],
ctx.file_offset[TGSI_FILE_TEMPORARY] -
ctx.file_offset[TGSI_FILE_OUTPUT],
- 0b1111);
+ 0x0F);
}
}
unsigned mask = 0;
unsigned slot_flags = alu_slots(op_ptr);
if (slot_flags & AF_V)
- mask = 0b01111;
+ mask = 0x0F;
if (!is_cayman() && (slot_flags & AF_S))
- mask |= 0b10000;
+ mask |= 0x10;
return mask;
}
#if SB_NO_ARRAY_INFO
- sh->add_gpr_array(0, pshader->bc.ngpr, 0b1111);
+ sh->add_gpr_array(0, pshader->bc.ngpr, 0x0F);
#else
}
} else {
- sh->add_gpr_array(0, pshader->bc.ngpr, 0b1111);
+ sh->add_gpr_array(0, pshader->bc.ngpr, 0x0F);
}
}
if (sh->target == TARGET_VS)
- sh->add_input(0, 1, 0b1111);
+ sh->add_input(0, 1, 0x0F);
bool ps_interp = ctx.hw_class >= HW_CLASS_EVERGREEN
&& sh->target == TARGET_PS;
for (unsigned i = 0; i < pshader->ninput; ++i) {
r600_shader_io & in = pshader->input[i];
bool preloaded = sh->target == TARGET_PS && !(ps_interp && in.spi_sid);
- sh->add_input(in.gpr, preloaded, /*in.write_mask*/ 0b1111);
+ sh->add_input(in.gpr, preloaded, /*in.write_mask*/ 0x0F);
if (ps_interp && in.spi_sid) {
if (in.interpolate == TGSI_INTERPOLATE_LINEAR ||
in.interpolate == TGSI_INTERPOLATE_COLOR)
unsigned gpr = 0;
while (mask) {
- sh->add_input(gpr, true, mask & 0b1111);
+ sh->add_input(gpr, true, mask & 0x0F);
++gpr;
mask >>= 4;
}
regbits rb(ctx.alu_temp_gprs);
unsigned chan_count[4] = {};
- unsigned allowed_chans = 0b1111;
+ unsigned allowed_chans = 0x0F;
for (vvec::iterator I = vv.begin(), E = vv.end(); I != E; ++I) {
value *v = *I;
has_mova(), uses_ar(), has_predset(), has_kill(),
updates_exec_mask(), chan_count(), interp_param(), next_id() {
- available_slots = sh.get_ctx().has_trans ? 0b11111 : 0b01111;
+ available_slots = sh.get_ctx().has_trans ? 0x1F : 0x0F;
}
inline
has_predset = false;
has_kill = false;
updates_exec_mask = false;
- available_slots = sh.get_ctx().has_trans ? 0b11111 : 0b01111;
+ available_slots = sh.get_ctx().has_trans ? 0x1F : 0x0F;
interp_param = 0;
chan_count[0] = 0;
if (d) {
slot = d->get_final_chan();
a->bc.dst_chan = slot;
- allowed_slots &= (1 << slot) | 0b10000;
+ allowed_slots &= (1 << slot) | 0x10;
} else {
if (a->bc.op_ptr->flags & AF_MOVA) {
if (a->bc.slot_flags & AF_V)
// FIXME workaround for some problems with MULADD in trans slot on r700,
// (is it really needed on r600?)
if (a->bc.op == ALU_OP3_MULADD && !ctx.is_egcm()) {
- allowed_slots &= 0b01111;
+ allowed_slots &= 0x0F;
}
if (!allowed_slots) {