Reviewed-by: Wind Yuan <[email protected]> Tested-by: Wind Yuan <[email protected]>
>-----Original Message----- >From: [email protected] >[mailto:[email protected]] On Behalf Of Zhao Yakui >Sent: Friday, March 14, 2014 3:21 PM >To: [email protected] >Subject: [Libva] [PATCH Libva-intel-driver 2/4] Export the surface attribute >based on YV16 for VPP on Gen7+ > >Signed-off-by: Zhao Yakui <[email protected]> >--- > src/i965_drv_video.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index >f306d91..14a0926 100755 >--- a/src/i965_drv_video.c >+++ b/src/i965_drv_video.c >@@ -4691,6 +4691,12 @@ i965_QuerySurfaceAttributes(VADriverContextP >ctx, > attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | >VA_SURFACE_ATTRIB_SETTABLE; > attribs[i].value.value.i = VA_FOURCC('R', 'G', 'B', 'X'); > i++; >+ >+ attribs[i].type = VASurfaceAttribPixelFormat; >+ attribs[i].value.type = VAGenericValueTypeInteger; >+ attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | >VA_SURFACE_ATTRIB_SETTABLE; >+ attribs[i].value.value.i = VA_FOURCC('Y', 'V', '1', '6'); >+ i++; > } > } > } else if (IS_GEN8(i965->intel.device_id)) { @@ -4801,6 +4807,12 @@ >i965_QuerySurfaceAttributes(VADriverContextP ctx, > attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | >VA_SURFACE_ATTRIB_SETTABLE; > attribs[i].value.value.i = VA_FOURCC('B', 'G', 'R', 'X'); > i++; >+ >+ attribs[i].type = VASurfaceAttribPixelFormat; >+ attribs[i].value.type = VAGenericValueTypeInteger; >+ attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | >VA_SURFACE_ATTRIB_SETTABLE; >+ attribs[i].value.value.i = VA_FOURCC('Y', 'V', '1', '6'); >+ i++; > } > } > } >-- >1.8.2-rc2 > >_______________________________________________ >Libva mailing list >[email protected] >http://lists.freedesktop.org/mailman/listinfo/libva _______________________________________________ Libva mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libva
