[Beignet] [PATCH] Enable support for two-component 16-bit planes
Mark Thompson
sw at jkqxz.net
Sat Feb 11 13:49:35 UTC 2017
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
More information about the Beignet
mailing list