gen6_vc1_surface->luma_scale = 0;
gen6_vc1_surface->luma_shift = 0;
+ /*
+ * The Direct MV buffer is scalable with frame height, but
+ * does not scale with frame width as the hardware assumes
+ * that frame width is fixed at 128 MBs.
+ */
+
if (gen6_vc1_surface->dmv == NULL) {
gen6_vc1_surface->dmv = dri_bo_alloc(i965->intel.bufmgr,
"direct mv w/r buffer",
- 128 * height_in_mbs * 64, /* scalable with frame height */
+ 128 * height_in_mbs * 64,
0x1000);
}
}
else
gen7_vc1_surface->picture_type_top = picture_type;
+ /*
+ * The Direct MV buffer is scalable with frame height, but
+ * does not scale with frame width as the hardware assumes
+ * that frame width is fixed at 128 MBs.
+ */
+
if (gen7_vc1_surface->dmv_top == NULL) {
height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
else
gen7_vc1_surface->picture_type_top = picture_type;
+ /*
+ * The Direct MV buffer is scalable with frame height, but
+ * does not scale with frame width as the hardware assumes
+ * that frame width is fixed at 128 MBs.
+ */
+
if (gen7_vc1_surface->dmv_top == NULL) {
height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,
else
gen7_vc1_surface->picture_type_top = picture_type;
+ /*
+ * The Direct MV buffer is scalable with frame height, but
+ * does not scale with frame width as the hardware assumes
+ * that frame width is fixed at 128 MBs.
+ */
+
if (gen7_vc1_surface->dmv_top == NULL) {
height_in_mbs = ALIGN(obj_surface->orig_height, 16) / 16;
gen7_vc1_surface->dmv_top = dri_bo_alloc(i965->intel.bufmgr,