aboutsummaryrefslogtreecommitdiff
path: root/src/psb_surface.c
diff options
context:
space:
mode:
authorSUN,Jing <jing.a.sun@intel.com>2013-03-14 15:31:57 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:06:16 -0700
commit0aea80e57df4e7d1d505d1874930f6d744c7d6f5 (patch)
treea84ed21965e873342ec80755ebe7b1110da5a38d /src/psb_surface.c
parente5655386814041bd0beda982ecfdce89bc65ed23 (diff)
downloadpsb_video-0aea80e57df4e7d1d505d1874930f6d744c7d6f5.tar.gz
Aligned source frames' stride to 64 bytes as
TopazHP required. BZ: 90758 Issue: TopazHP required source frames' stride to be aligned to 64 bytes. However, we hadn't always offered aligned surfaces to it. Solution: if an input width to vaCreateSurfaces was larger than 4096, made it align to 64 bytes, instead of the current 32. Change-Id: Iac4830b9b59c45f608248826c25ea4c97e6e99ea Signed-off-by: SUN,Jing <jing.a.sun@intel.com> Reviewed-on: http://android.intel.com:8080/96517 Reviewed-by: Shi, PingX <pingx.shi@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: Shi, PingX <pingx.shi@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'src/psb_surface.c')
-rw-r--r--src/psb_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psb_surface.c b/src/psb_surface.c
index de021e2..4727397 100644
--- a/src/psb_surface.c
+++ b/src/psb_surface.c
@@ -83,7 +83,7 @@ VAStatus psb_surface_create(psb_driver_data_p driver_data,
psb_surface->stride = 4096;
} else {
psb_surface->stride_mode = STRIDE_NA;
- psb_surface->stride = (width + 0x1f) & ~0x1f;
+ psb_surface->stride = (width + 0x3f) & ~0x3f;
}
psb_surface->luma_offset = 0;
@@ -128,7 +128,7 @@ VAStatus psb_surface_create(psb_driver_data_p driver_data,
psb_surface->stride = 4096;
} else {
psb_surface->stride_mode = STRIDE_NA;
- psb_surface->stride = (width + 0x1f) & ~0x1f;
+ psb_surface->stride = (width + 0x3f) & ~0x3f;
}
psb_surface->luma_offset = 0;