{
struct i965_driver_data *i965 = i965_driver_data(ctx);
struct gen6_vc1_surface *gen6_vc1_surface = obj_surface->private_data;
- int height_in_mbs = ALIGN(pic_param->coded_height, 16) / 16;
+ int height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
obj_surface->free_private_data = gen6_mfd_free_vc1_surface;
gen7_vc1_surface->picture_type_top = picture_type;
if (gen7_vc1_surface->dmv_top == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 16) / 16;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,
if (pic_param->sequence_fields.bits.interlace &&
gen7_vc1_surface->dmv_bottom == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 32) / 32;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 32) / 32;
gen7_vc1_surface->dmv_bottom = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,
gen7_vc1_surface->picture_type_top = picture_type;
if (gen7_vc1_surface->dmv_top == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 16) / 16;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,
if (pic_param->sequence_fields.bits.interlace &&
gen7_vc1_surface->dmv_bottom == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 32) / 32;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 32) / 32;
gen7_vc1_surface->dmv_bottom = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,
gen7_vc1_surface->picture_type_top = picture_type;
if (gen7_vc1_surface->dmv_top == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 16) / 16;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,
if (pic_param->sequence_fields.bits.interlace &&
gen7_vc1_surface->dmv_bottom == NULL) {
- height_in_mbs = ALIGN(pic_param->coded_height, 32) / 32;
+ height_in_mbs = ALIGN(obj_surface->orig_height, 32) / 32;
gen7_vc1_surface->dmv_bottom = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
128 * height_in_mbs * 64,