Skip to content
Snippets Groups Projects
Commit 87fec9cb authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix Image.format GetInfo

parent 58896e20
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment