From 87fec9cba500a6aff47b7c0367c7663b4938404f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 12 Dec 2016 15:25:24 -0600 Subject: [PATCH] Fix Image.format GetInfo --- pyopencl/cffi_cl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index 7a2b42e8..45a0ab01 100644 --- a/pyopencl/cffi_cl.py +++ b/pyopencl/cffi_cl.py @@ -179,6 +179,9 @@ def _generic_info_to_python(info): elif type_ == 'cl_device_topology_amd*': ret = DeviceTopologyAmd( value.pcie.bus, value.pcie.device, value.pcie.function) + elif type_ == 'cl_image_format*': + ret = ImageFormat(value.image_channel_order, + value.image_channel_data_type) elif type_.startswith('char*['): ret = list(map(_ffi_pystr, value)) _lib.free_pointer_array(info.value, len(value)) -- GitLab