mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Check supportsMediaBlock capability in ocloc
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed9290e650
commit
86f63bb2ed
@@ -146,7 +146,7 @@ void ClDevice::initializeCaps() {
|
||||
if (supportsVme) {
|
||||
deviceExtensions += "cl_intel_spirv_device_side_avc_motion_estimation ";
|
||||
}
|
||||
if (hwHelper.isMediaBlockIOSupported(hwInfo)) {
|
||||
if (hwInfo.capabilityTable.supportsMediaBlock) {
|
||||
deviceExtensions += "cl_intel_spirv_media_block_io ";
|
||||
}
|
||||
deviceExtensions += "cl_intel_spirv_subgroups ";
|
||||
@@ -193,7 +193,7 @@ void ClDevice::initializeCaps() {
|
||||
deviceExtensions += "cl_khr_3d_image_writes ";
|
||||
}
|
||||
|
||||
if (hwHelper.isMediaBlockIOSupported(hwInfo)) {
|
||||
if (hwInfo.capabilityTable.supportsMediaBlock) {
|
||||
deviceExtensions += "cl_intel_media_block_io ";
|
||||
}
|
||||
|
||||
@@ -203,7 +203,6 @@ void ClDevice::initializeCaps() {
|
||||
}
|
||||
|
||||
deviceExtensions += hwHelper.getExtensions();
|
||||
|
||||
deviceInfo.deviceExtensions = deviceExtensions.c_str();
|
||||
|
||||
std::vector<std::string> exposedBuiltinKernelsVector;
|
||||
|
||||
@@ -78,7 +78,8 @@ const RuntimeCapabilityTable EHL::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
false, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable EHL::workaroundTable = {};
|
||||
|
||||
@@ -80,6 +80,7 @@ const RuntimeCapabilityTable ICLLP::capabilityTable{
|
||||
true, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable ICLLP::workaroundTable = {};
|
||||
|
||||
@@ -78,7 +78,8 @@ const RuntimeCapabilityTable LKF::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
false, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable LKF::workaroundTable = {};
|
||||
|
||||
@@ -80,7 +80,8 @@ const RuntimeCapabilityTable ADLS::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
false, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable ADLS::workaroundTable = {};
|
||||
|
||||
@@ -84,7 +84,8 @@ const RuntimeCapabilityTable DG1::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
false, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
false // isIntegratedDevice
|
||||
false, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable DG1::workaroundTable = {};
|
||||
|
||||
@@ -76,7 +76,8 @@ const RuntimeCapabilityTable RKL::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
false, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable RKL::workaroundTable = {};
|
||||
|
||||
@@ -80,7 +80,8 @@ const RuntimeCapabilityTable TGLLP::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
false, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable TGLLP::workaroundTable = {};
|
||||
|
||||
@@ -83,7 +83,8 @@ const RuntimeCapabilityTable BDW::capabilityTable{
|
||||
true, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
false, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable BDW::workaroundTable = {};
|
||||
|
||||
@@ -80,7 +80,8 @@ const RuntimeCapabilityTable BXT::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
false, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable BXT::workaroundTable = {};
|
||||
|
||||
@@ -75,7 +75,8 @@ const RuntimeCapabilityTable CFL::capabilityTable{
|
||||
true, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable CFL::workaroundTable = {};
|
||||
|
||||
@@ -75,7 +75,8 @@ const RuntimeCapabilityTable GLK::capabilityTable{
|
||||
false, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
false, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable GLK::workaroundTable = {};
|
||||
|
||||
@@ -75,7 +75,8 @@ const RuntimeCapabilityTable KBL::capabilityTable{
|
||||
true, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable KBL::workaroundTable = {};
|
||||
|
||||
@@ -83,7 +83,8 @@ const RuntimeCapabilityTable SKL::capabilityTable{
|
||||
true, // supportsIndependentForwardProgress
|
||||
true, // hostPtrTrackingEnabled
|
||||
true, // levelZeroSupported
|
||||
true // isIntegratedDevice
|
||||
true, // isIntegratedDevice
|
||||
true // supportsMediaBlock
|
||||
};
|
||||
|
||||
WorkaroundTable SKL::workaroundTable = {};
|
||||
|
||||
@@ -55,7 +55,7 @@ std::string getExtensionsList(const HardwareInfo &hwInfo) {
|
||||
if (hwInfo.capabilityTable.supportsVme) {
|
||||
allExtensionsList += "cl_intel_spirv_device_side_avc_motion_estimation ";
|
||||
}
|
||||
if (hwInfo.capabilityTable.supportsImages) {
|
||||
if (hwInfo.capabilityTable.supportsMediaBlock) {
|
||||
allExtensionsList += "cl_intel_spirv_media_block_io ";
|
||||
}
|
||||
allExtensionsList += "cl_intel_spirv_subgroups ";
|
||||
|
||||
Reference in New Issue
Block a user