mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Add cl_khr_pci_bus_info extension
Signed-off-by: Egor Suldin <egor.suldin@intel.com> https://github.com/intel/compute-runtime/pull/374
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c94ad034d9
commit
2b3b47b495
@@ -286,6 +286,12 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
|
||||
retSize = srcSize = sizeof(cl_device_feature_capabilities_intel);
|
||||
break;
|
||||
}
|
||||
case CL_DEVICE_PCI_BUS_INFO_KHR:
|
||||
if (isPciBusInfoValid()) {
|
||||
src = &deviceInfo.pciBusInfo;
|
||||
retSize = srcSize = sizeof(deviceInfo.pciBusInfo);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (getDeviceInfoForImage(paramName, src, srcSize, retSize) && !getSharedDeviceInfo().imageSupport) {
|
||||
src = &value;
|
||||
|
||||
Reference in New Issue
Block a user