case MRF:
case ATTR:
this->regs_written =
- DIV_ROUND_UP(MAX2(dst.width * dst.stride, 1) * type_sz(dst.type), 32);
+ DIV_ROUND_UP(MAX2(exec_size * dst.stride, 1) * type_sz(dst.type), 32);
break;
case BAD_FILE:
this->regs_written = 0;
fs_inst::is_partial_write() const
{
return ((this->predicate && this->opcode != BRW_OPCODE_SEL) ||
- (this->dst.width * type_sz(this->dst.type)) < 32 ||
+ (this->exec_size * type_sz(this->dst.type)) < 32 ||
!this->dst.is_contiguous());
}
if (src[arg].stride == 0) {
return 1;
} else {
- int size = components * src[arg].width * type_sz(src[arg].type);
+ int size = components * this->exec_size * type_sz(src[arg].type);
return DIV_ROUND_UP(size * src[arg].stride, 32);
}
case MRF: