2021-05-26 00:42:36 +08:00
|
|
|
/*
|
2022-02-01 01:43:42 +08:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-05-26 00:42:36 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/os_interface/windows/wddm/adapter_factory.h"
|
|
|
|
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
2022-02-01 01:43:42 +08:00
|
|
|
#include "shared/source/os_interface/device_factory.h"
|
2021-05-26 00:42:36 +08:00
|
|
|
#include "shared/source/utilities/stackvec.h"
|
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
bool canUseAdapterBasedOnDriverDesc(const char *driverDescription) {
|
|
|
|
return (strstr(driverDescription, "Intel") != nullptr) ||
|
|
|
|
(strstr(driverDescription, "Citrix") != nullptr) ||
|
|
|
|
(strstr(driverDescription, "Virtual Render") != nullptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isAllowedDeviceId(uint32_t deviceId) {
|
2022-09-19 20:31:20 +08:00
|
|
|
return DeviceFactory::isAllowedDeviceId(deviceId, DebugManager.flags.FilterDeviceId.get());
|
2021-05-26 00:42:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|