mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Fix build with USE_ASAN=ON
Signed-off-by: Mateusz Tabaka <tab.debugteam@gmail.com> https://github.com/intel/compute-runtime/pull/314 Change-Id: I2b699df3f158b961a1a329fb81de8cd7115d06bc
This commit is contained in:
@ -31,7 +31,7 @@ class DrmNullDeviceTestsFixture {
|
||||
void TearDown() {
|
||||
}
|
||||
|
||||
Drm *drmNullDevice;
|
||||
std::unique_ptr<Drm> drmNullDevice;
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
|
||||
protected:
|
||||
|
@ -15,10 +15,10 @@
|
||||
|
||||
class DrmWrap : public NEO::Drm {
|
||||
public:
|
||||
static NEO::Drm *createDrm(RootDeviceEnvironment &rootDeviceEnvironment) {
|
||||
static std::unique_ptr<NEO::Drm> createDrm(RootDeviceEnvironment &rootDeviceEnvironment) {
|
||||
auto hwDeviceIds = OSInterface::discoverDevices(rootDeviceEnvironment.executionEnvironment);
|
||||
if (!hwDeviceIds.empty()) {
|
||||
return NEO::Drm::create(std::move(hwDeviceIds[0]), rootDeviceEnvironment);
|
||||
return std::unique_ptr<Drm>{NEO::Drm::create(std::move(hwDeviceIds[0]), rootDeviceEnvironment)};
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user