Reviewed-by: Wind Yuan <feng.y...@intel.com>
Tested-by: Wind Yuan <feng.y...@intel.com>

>-----Original Message-----
>From: libva-boun...@lists.freedesktop.org
>[mailto:libva-boun...@lists.freedesktop.org] On Behalf Of Zhao Yakui
>Sent: Friday, March 14, 2014 3:21 PM
>To: libva@lists.freedesktop.org
>Subject: [Libva] [PATCH Libva-intel-driver 2/4] Export the surface attribute
>based on YV16 for VPP on Gen7+
>
>Signed-off-by: Zhao Yakui <yakui.z...@intel.com>
>---
> 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
>Libva@lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/libva
_______________________________________________
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to