fix the parameters of register region

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
This commit is contained in:
Xiang, Haihao 2011-03-01 16:43:02 +08:00 committed by Damien Lespiau
parent 85da7b9e8a
commit e7f4dc6e39

View File

@ -2410,6 +2410,12 @@ static void reset_instruction_src_region(struct brw_instruction *instr,
} else {
width = (1 << instr->header.execution_size) / horiz_stride;
vert_stride = horiz_stride * width;
if (get_type_size(src->reg_type) * (width + src->subreg_nr) > 32) {
horiz_stride = 0;
width = 1;
vert_stride = 0;
}
}
}