mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Add isMediaBlockIOSupported helper
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-4848
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3d9a180c12
commit
77a5443f90
@@ -189,10 +189,13 @@ void ClDevice::initializeCaps() {
|
||||
if (hwInfo.capabilityTable.supportsImages) {
|
||||
deviceExtensions += "cl_khr_image2d_from_buffer ";
|
||||
deviceExtensions += "cl_khr_depth_images ";
|
||||
deviceExtensions += "cl_intel_media_block_io ";
|
||||
deviceExtensions += "cl_khr_3d_image_writes ";
|
||||
}
|
||||
|
||||
if (hwHelper.isMediaBlockIOSupported(hwInfo)) {
|
||||
deviceExtensions += "cl_intel_media_block_io ";
|
||||
}
|
||||
|
||||
auto sharingAllowed = (getNumAvailableDevices() == 1u);
|
||||
if (sharingAllowed) {
|
||||
deviceExtensions += sharingFactory.getExtensions(driverInfo.get());
|
||||
|
||||
Reference in New Issue
Block a user