[Beignet] [PATCH] Enable support for two-component 16-bit planes
Yang, Rong R
rong.r.yang at intel.com
Tue Feb 14 05:55:01 UTC 2017
LGTM, pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Mark Thompson
> Sent: Saturday, February 11, 2017 21:50
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] [PATCH] Enable support for two-component 16-bit planes
>
> This is needed to support the chroma plane of P010 surfaces being mapped
> from VAAPI.
>
> Signed-off-by: Mark Thompson <sw at jkqxz.net>
> ---
> On 01/01/17 13:46, Mark Thompson wrote:
> > ...
>
> Ping.
>
>
> src/cl_image.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/cl_image.c b/src/cl_image.c index d0593044..5ff459a0 100644
> --- a/src/cl_image.c
> +++ b/src/cl_image.c
> @@ -144,7 +144,9 @@ cl_image_get_intel_format(const cl_image_format
> *fmt)
> case CL_RG:
> switch (type) {
> case CL_UNORM_INT8: return I965_SURFACEFORMAT_R8G8_UNORM;
> + case CL_UNORM_INT16: return
> I965_SURFACEFORMAT_R16G16_UNORM;
> case CL_UNSIGNED_INT8: return I965_SURFACEFORMAT_R8G8_UINT;
> + case CL_UNSIGNED_INT16: return
> I965_SURFACEFORMAT_R16G16_UINT;
> default: return INTEL_UNSUPPORTED_FORMAT;
> };
> #if 0
> --
> 2.11.0
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list