summaryrefslogtreecommitdiff
path: root/src/cl_device_id.c
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2017-03-10 01:30:33 +0800
committerYang Rong <rong.r.yang@intel.com>2017-03-13 16:56:34 +0800
commit20fd72f6b2d178bdabf76159a84f7514e0fd3f75 (patch)
treefbd6b742bfc8d0d76be3daa17167c745690efdfa /src/cl_device_id.c
parentc777c714d1149c1b35b2cb044748377425f424c5 (diff)
add extension intel_planar_yuv.
create a w* (3/2*h) size bo for the whole CL_NV12_INTEL format surface, and the y surface (format CL_R) share the first w * h part, uv surface (format CL_RG) share the left w * 1/2h part; set correct bo offset for uv surface per different platforms. v2: add extension define in libocl; fix error check. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_device_id.c')
-rw-r--r--src/cl_device_id.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cl_device_id.c b/src/cl_device_id.c
index d4f4208e..50ed0d99 100644
--- a/src/cl_device_id.c
+++ b/src/cl_device_id.c
@@ -1075,10 +1075,12 @@ cl_get_device_info(cl_device_id device,
src_size = sizeof(device->image_max_array_size);
break;
case CL_DEVICE_IMAGE2D_MAX_WIDTH:
+ case CL_DEVICE_PLANAR_YUV_MAX_WIDTH_INTEL:
src_ptr = &device->image2d_max_width;
src_size = sizeof(device->image2d_max_width);
break;
case CL_DEVICE_IMAGE2D_MAX_HEIGHT:
+ case CL_DEVICE_PLANAR_YUV_MAX_HEIGHT_INTEL:
src_ptr = &device->image2d_max_height;
src_size = sizeof(device->image2d_max_height);
break;