diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2012-01-18 11:27:10 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-01-18 11:27:10 +0800 |
commit | f7eedfab0bd3584af274ca1cbee56252ab046326 (patch) | |
tree | f7dd9eaaa3d61aaec9130ad6367264641afe293e /src/i965_media_mpeg2.c | |
parent | 5d4899bbd0ab05bc72c832e239b2e1ccca40da1a (diff) |
Fix graphics memory allocation for VA surface
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_media_mpeg2.c')
-rw-r--r-- | src/i965_media_mpeg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_media_mpeg2.c b/src/i965_media_mpeg2.c index 1d87d9b..9278ab7 100644 --- a/src/i965_media_mpeg2.c +++ b/src/i965_media_mpeg2.c @@ -514,7 +514,7 @@ i965_media_mpeg2_surface_setup(VADriverContextP ctx, int w = obj_surface->width; int h = obj_surface->height; - i965_check_alloc_surface_bo(ctx, obj_surface, 0, VA_FOURCC('I','4','2','0')); + i965_check_alloc_surface_bo(ctx, obj_surface, 0, VA_FOURCC('I','4','2','0'), SUBSAMPLE_YUV420); if (picture_structure == MPEG_FRAME) { i965_media_mpeg2_surface_state(ctx, base_index + 0, obj_surface, |