clover: Enable cl_khr_fp64 for devices that support doubles v4
authorTom Stellard <thomas.stellard@amd.com>
Wed, 2 Jul 2014 19:42:43 +0000 (15:42 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 5 Mar 2015 14:07:37 +0000 (14:07 +0000)
commitc97e902a1a69892147e7649581951747f03afaee
treec874a49de762e6142105e09f239e64034b003267
parent8d8ca64c28170ec7e9ffa01638bcf8fd30a96088
clover: Enable cl_khr_fp64 for devices that support doubles v4

v2:
  - Report correct values for CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE
    and CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE.
  - Only define cl_khr_fp64 if the extension is supported.
  - Remove trailing space from extension string.
  - Rename device query function from cl_khr_fp64() to
    has_doubles().

v3:
  - Return 0 for device::doubled_fp_confg() when doubles aren't
    supported.

v4:
  - Remove device query for double fp_config.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/device.cpp
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/clover/core/device.hpp