[Libva] [PATCH intel-driver 11/13] vebox: use Y-tiling for internal VEBOX surfaces.
Gwenole Beauchesne
gb.devel at gmail.com
Wed Aug 27 04:50:36 PDT 2014
Always use Y-tiling in native surface format for performance reasons.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
src/gen75_picture_process.c | 2 +-
src/gen75_vpp_vebox.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gen75_picture_process.c b/src/gen75_picture_process.c
index 6978d4b..f79ef2c 100644
--- a/src/gen75_picture_process.c
+++ b/src/gen75_picture_process.c
@@ -156,7 +156,7 @@ gen75_proc_picture(VADriverContextP ctx,
}
if (!obj_dst_surf->bo) {
- unsigned int is_tiled = 0;
+ unsigned int is_tiled = 1;
unsigned int fourcc = VA_FOURCC_NV12;
int sampling = SUBSAMPLE_YUV420;
i965_check_alloc_surface_bo(ctx, obj_dst_surf, is_tiled, fourcc, sampling);
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index 7e37d9c..9d400d9 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -886,7 +886,7 @@ gen75_vebox_ensure_surfaces_storage(VADriverContextP ctx,
else {
input_fourcc = VA_FOURCC_NV12;
input_sampling = SUBSAMPLE_YUV420;
- input_tiling = 0;
+ input_tiling = 1;
status = i965_check_alloc_surface_bo(ctx, input_obj_surface,
input_tiling, input_fourcc, input_sampling);
if (status != VA_STATUS_SUCCESS)
@@ -908,7 +908,7 @@ gen75_vebox_ensure_surfaces_storage(VADriverContextP ctx,
else {
output_fourcc = VA_FOURCC_NV12;
output_sampling = SUBSAMPLE_YUV420;
- output_tiling = 0;
+ output_tiling = 1;
status = i965_check_alloc_surface_bo(ctx, output_obj_surface,
output_tiling, output_fourcc, output_sampling);
if (status != VA_STATUS_SUCCESS)
--
1.7.9.5
More information about the Libva
mailing list