Skip to content

Commit

Permalink
Fix Image.format GetInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 12, 2016
1 parent 58896e2 commit 87fec9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyopencl/cffi_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def create_inst(val):
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))
Expand Down

0 comments on commit 87fec9c

Please sign in to comment.