clover/device: Move device_version into core and add device_clc_version
authorAaron Watry <awatry@gmail.com>
Sat, 22 Jul 2017 02:17:50 +0000 (21:17 -0500)
committerAaron Watry <awatry@gmail.com>
Sun, 6 Aug 2017 00:50:30 +0000 (19:50 -0500)
commit293b3e0a3f73ef85b446259dc9422932e0b8ff49
tree886c4fdfb1b3706686f0641f71a75994e87bc51a
parent36a1b61321561634c6b243cf876c347fef73dfa4
clover/device: Move device_version into core and add device_clc_version

The device version is the maximum CL version that the device supports.

device_version and device_clc_version are not necessarily the same for
devices that support CL 1.0, but have a 1.1 compiler and the necessary
extensions.

Eventually, this will be based on the features/extensions of the actual
device, but for now move it a bit closer to its eventual destination.

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesey <jan.vesely@rutgers.edu>
src/gallium/state_trackers/clover/api/device.cpp
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/clover/core/device.hpp