Add supportsImage flag to capability table

Resolves: NEO-3177

Change-Id: I7b21163187b570ea08cefe37572a3838072cb7bd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-07-01 11:29:15 +02:00
committed by sys_ocldev
parent a19d5bca8a
commit 910617c329
11 changed files with 20 additions and 9 deletions

View File

@ -288,7 +288,7 @@ void Device::initializeCaps() {
deviceInfo.localMemType = CL_LOCAL;
deviceInfo.localMemSize = hwInfo.capabilityTable.slmSize << 10;
deviceInfo.imageSupport = CL_TRUE;
deviceInfo.imageSupport = hwInfo.capabilityTable.supportsImages;
deviceInfo.image2DMaxWidth = 16384;
deviceInfo.image2DMaxHeight = 16384;
deviceInfo.image3DMaxWidth = this->hardwareCapabilities.image3DMaxWidth;

View File

@ -65,7 +65,8 @@ const RuntimeCapabilityTable ICLLP::capabilityTable{
false, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable ICLLP::workaroundTable = {};

View File

@ -64,7 +64,8 @@ const RuntimeCapabilityTable LKF::capabilityTable{
false, // isCore
true, // sourceLevelDebuggerSupported
false, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable LKF::workaroundTable = {};

View File

@ -69,7 +69,8 @@ const RuntimeCapabilityTable BDW::capabilityTable{
true, // isCore
false, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable BDW::workaroundTable = {};

View File

@ -66,7 +66,8 @@ const RuntimeCapabilityTable BXT::capabilityTable{
false, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable BXT::workaroundTable = {};

View File

@ -61,7 +61,8 @@ const RuntimeCapabilityTable CFL::capabilityTable{
true, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable CFL::workaroundTable = {};

View File

@ -61,7 +61,8 @@ const RuntimeCapabilityTable GLK::capabilityTable{
false, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable GLK::workaroundTable = {};

View File

@ -61,7 +61,8 @@ const RuntimeCapabilityTable KBL::capabilityTable{
true, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable KBL::workaroundTable = {};

View File

@ -69,7 +69,8 @@ const RuntimeCapabilityTable SKL::capabilityTable{
true, // isCore
true, // sourceLevelDebuggerSupported
true, // supportsVme
false // supportCacheFlushAfterWalker
false, // supportCacheFlushAfterWalker
true // supportsImages
};
WorkaroundTable SKL::workaroundTable = {};
FeatureTable SKL::featureTable = {};

View File

@ -54,6 +54,7 @@ struct RuntimeCapabilityTable {
bool sourceLevelDebuggerSupported;
bool supportsVme;
bool supportCacheFlushAfterWalker;
bool supportsImages;
};
struct HardwareCapabilities {

View File

@ -343,6 +343,8 @@ int main(int argc, char **argv) {
device.workaroundTable = workaroundTable;
device.capabilityTable = hardwareInfo->capabilityTable;
device.capabilityTable.supportsImages = true;
binaryNameSuffix.append(familyName[device.platform.eRenderCoreFamily]);
binaryNameSuffix.append(getPlatformType(device));