[Libva] [Libva-intel-driver][PATCH 1/3] Add one field to store the expected VA_FORMAT for surface
Zhao Yakui
yakui.zhao at intel.com
Mon Aug 24 22:33:57 PDT 2015
On 08/25/2015 01:25 PM, Xiang, Haihao wrote:
> LGTM.
>
Thanks for the review
Now the patch is pushed.
Thanks.
Yakui
> Thanks
> Haihao
>
>> The VA_FORMAT is also used to derive the corresponding layout of
>> VA SURFACE.
>>
>> Signed-off-by: Zhao Yakui<yakui.zhao at intel.com>
>> ---
>> src/i965_drv_video.c | 1 +
>> src/i965_drv_video.h | 1 +
>> 2 files changed, 2 insertions(+)
>>
>> diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
>> index 4ba87f8..4059666 100644
>> --- a/src/i965_drv_video.c
>> +++ b/src/i965_drv_video.c
>> @@ -1288,6 +1288,7 @@ i965_CreateSurfaces2(
>> obj_surface->height = ALIGN(height, i965->codec_info->min_linear_hpitch);
>> obj_surface->flags = SURFACE_REFERENCED;
>> obj_surface->fourcc = 0;
>> + obj_surface->expected_format = format;
>> obj_surface->bo = NULL;
>> obj_surface->locked_image_id = VA_INVALID_ID;
>> obj_surface->derived_image_id = VA_INVALID_ID;
>> diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h
>> index 188cecf..65e86ed 100644
>> --- a/src/i965_drv_video.h
>> +++ b/src/i965_drv_video.h
>> @@ -268,6 +268,7 @@ struct object_surface
>> int flags;
>> unsigned int fourcc;
>> dri_bo *bo;
>> + unsigned int expected_format;
>> VAImageID locked_image_id;
>> VAImageID derived_image_id;
>> void (*free_private_data)(void **data);
>
>
More information about the Libva
mailing list