[Libva] [PATCH] decoder: h264: only allocate tiled surfaces for Gen6+.

Gwenole Beauchesne gb.devel at gmail.com
Wed Jun 4 02:21:44 PDT 2014


Don't allocate tiled surfaces on Ironlake platforms and earlier.

This is a regression from 6d76944.

Reported-by: Haihao Xiang <haihao.xiang at intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
 src/i965_decoder_utils.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/i965_decoder_utils.c b/src/i965_decoder_utils.c
index 9eaa75f..db8fe17 100644
--- a/src/i965_decoder_utils.c
+++ b/src/i965_decoder_utils.c
@@ -222,9 +222,11 @@ avc_ensure_surface_bo(
 
     /* (Re-)allocate the underlying surface buffer store, if necessary */
     if (!obj_surface->bo || obj_surface->fourcc != hw_fourcc) {
+        struct i965_driver_data * const i965 = i965_driver_data(ctx);
+
         i965_destroy_surface_storage(obj_surface);
-        va_status = i965_check_alloc_surface_bo(ctx, obj_surface, 1,
-            hw_fourcc, subsample);
+        va_status = i965_check_alloc_surface_bo(ctx, obj_surface,
+            i965->codec_info->has_tiled_surface, hw_fourcc, subsample);
         if (va_status != VA_STATUS_SUCCESS)
             return va_status;
     }
-- 
1.8.3.2



More information about the Libva mailing list