diff options
author | carpalis <jerome.borsboom@carpalis.nl> | 2017-12-06 12:02:32 +0100 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-05 14:57:31 +0800 |
commit | 5a27fbb679ee9c2923d5810d56adad5a4cb806d5 (patch) | |
tree | 7e0e984da9235c925b08d42e8386841bc82079cc /src/gen7_mfd.c | |
parent | f62d601d46f494571686ad6607de795073b0b304 (diff) | |
download | libva-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.c | 6 |
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, |