summaryrefslogtreecommitdiff
path: root/src/gen7_mfd.c
diff options
context:
space:
mode:
authorcarpalis <jerome.borsboom@carpalis.nl>2017-12-06 12:02:32 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2018-01-05 14:57:31 +0800
commit5a27fbb679ee9c2923d5810d56adad5a4cb806d5 (patch)
tree7e0e984da9235c925b08d42e8386841bc82079cc /src/gen7_mfd.c
parentf62d601d46f494571686ad6607de795073b0b304 (diff)
downloadlibva-intel-driver-5a27fbb679ee9c2923d5810d56adad5a4cb806d5.tar.gz
genX_mfd: add comment on dmv buffer scaling
Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
Diffstat (limited to 'src/gen7_mfd.c')
-rw-r--r--src/gen7_mfd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 77c1a5a0..bc126770 100644
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -1284,6 +1284,12 @@ gen7_mfd_init_vc1_surface(VADriverContextP ctx,
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,