mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
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:

committed by
sys_ocldev

parent
a19d5bca8a
commit
910617c329
@ -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;
|
||||
|
@ -65,7 +65,8 @@ const RuntimeCapabilityTable ICLLP::capabilityTable{
|
||||
false, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable ICLLP::workaroundTable = {};
|
||||
|
@ -64,7 +64,8 @@ const RuntimeCapabilityTable LKF::capabilityTable{
|
||||
false, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
false, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable LKF::workaroundTable = {};
|
||||
|
@ -69,7 +69,8 @@ const RuntimeCapabilityTable BDW::capabilityTable{
|
||||
true, // isCore
|
||||
false, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable BDW::workaroundTable = {};
|
||||
|
@ -66,7 +66,8 @@ const RuntimeCapabilityTable BXT::capabilityTable{
|
||||
false, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable BXT::workaroundTable = {};
|
||||
|
@ -61,7 +61,8 @@ const RuntimeCapabilityTable CFL::capabilityTable{
|
||||
true, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable CFL::workaroundTable = {};
|
||||
|
@ -61,7 +61,8 @@ const RuntimeCapabilityTable GLK::capabilityTable{
|
||||
false, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable GLK::workaroundTable = {};
|
||||
|
@ -61,7 +61,8 @@ const RuntimeCapabilityTable KBL::capabilityTable{
|
||||
true, // isCore
|
||||
true, // sourceLevelDebuggerSupported
|
||||
true, // supportsVme
|
||||
false // supportCacheFlushAfterWalker
|
||||
false, // supportCacheFlushAfterWalker
|
||||
true // supportsImages
|
||||
};
|
||||
|
||||
WorkaroundTable KBL::workaroundTable = {};
|
||||
|
@ -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 = {};
|
||||
|
@ -54,6 +54,7 @@ struct RuntimeCapabilityTable {
|
||||
bool sourceLevelDebuggerSupported;
|
||||
bool supportsVme;
|
||||
bool supportCacheFlushAfterWalker;
|
||||
bool supportsImages;
|
||||
};
|
||||
|
||||
struct HardwareCapabilities {
|
||||
|
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user