Don't expose mipmaps on 1.2 devices

Change-Id: Id7949266f29ef06ae71c88725298822055ca7c13
This commit is contained in:
Chodor, Jaroslaw
2018-04-13 11:17:55 +02:00
parent 1504d89571
commit d516cd6edc
3 changed files with 20 additions and 4 deletions

View File

@@ -123,6 +123,10 @@ void Device::initializeCaps() {
deviceInfo.independentForwardProgress = false;
}
if (enabledClVersion >= 20) {
deviceExtensions += "cl_khr_mipmap_image cl_khr_mipmap_image_writes ";
}
if (hwInfo.capabilityTable.ftrSupportsFP64) {
deviceExtensions += "cl_khr_fp64 ";
}

View File

@@ -46,9 +46,7 @@ const char *deviceExtensionsList = "cl_khr_3d_image_writes "
"cl_intel_device_side_avc_motion_estimation "
"cl_khr_priority_hints "
"cl_khr_throttle_hints "
"cl_khr_create_command_queue "
"cl_khr_mipmap_image "
"cl_khr_mipmap_image_writes ";
"cl_khr_create_command_queue ";
std::string getExtensionsList(const HardwareInfo &hwInfo) {
std::string allExtensionsList;