m_inst_mode(0),
m_resource_id(rid)
{
- memset(m_offset, 0, sizeof(m_offset));
+ memset(m_coord_offset, 0, sizeof(m_coord_offset));
m_src.add_use(this);
}
TexInstr::set_offset(unsigned index, int32_t val)
{
assert(index < 3);
- m_offset[index] = val;
+ m_coord_offset[index] = val;
}
int
TexInstr::get_offset(unsigned index) const
{
assert(index < 3);
- return m_offset[index] << 1;
+ return m_coord_offset[index] << 1;
}
void
return false;
for (int i = 0; i < 3; ++i) {
- if (m_offset[i] != lhs.m_offset[i])
+ if (m_coord_offset[i] != lhs.m_coord_offset[i])
return false;
}
return m_inst_mode == lhs.m_inst_mode && resource_base() == lhs.resource_base() &&
if (resource_offset())
os << " SO:" << *resource_offset();
- if (m_offset[0])
- os << " OX:" << m_offset[0];
- if (m_offset[1])
- os << " OY:" << m_offset[1];
- if (m_offset[2])
- os << " OZ:" << m_offset[2];
+ if (m_coord_offset[0])
+ os << " OX:" << m_coord_offset[0];
+ if (m_coord_offset[1])
+ os << " OY:" << m_coord_offset[1];
+ if (m_coord_offset[2])
+ os << " OZ:" << m_coord_offset[2];
if (m_inst_mode || is_gather(m_opcode))
os << " MODE:" << m_inst_mode;