Don't allocate tiled surfaces on Ironlake platforms and earlier. This is a regression from 6d76944.
Reported-by: Haihao Xiang <haihao.xi...@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauche...@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 _______________________________________________ Libva mailing list Libva@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libva