diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py index 7a2b42e8e0c9c3f60af60c02d3c33663012c9e6f..45a0ab01f927fd8b4d298f3c0b0b8ef6482875c7 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))