mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
style: skip redundant unique_ptr::get function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
d18e89e439
commit
943ad0e1eb
@ -1010,7 +1010,7 @@ HWTEST_F(WddmCsrCompressionTests, givenDisabledCompressionWhenInitializedThenDon
|
||||
setCompressionEnabled(false, false);
|
||||
myMockWddm = static_cast<WddmMock *>(executionEnvironment->rootDeviceEnvironments[0]->osInterface->getDriverModel()->as<Wddm>());
|
||||
MockWddmCsr<FamilyType> mockWddmCsr(*executionEnvironment, 1, device->getDeviceBitfield());
|
||||
for (auto engine : executionEnvironment->memoryManager.get()->getRegisteredEngines()) {
|
||||
for (auto engine : executionEnvironment->memoryManager->getRegisteredEngines()) {
|
||||
EXPECT_EQ(nullptr, engine.commandStreamReceiver->pageTableManager.get());
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -114,7 +114,7 @@ TEST(OSLibraryWinTest, GivenNoLastErrorOnWindowsThenErrorStringisEmpty) {
|
||||
auto lib = std::make_unique<Windows::OsLibrary>(Os::testDllName, &errorValue);
|
||||
EXPECT_NE(nullptr, lib);
|
||||
EXPECT_TRUE(errorValue.empty());
|
||||
lib.get()->getLastErrorString(&errorValue);
|
||||
lib->getLastErrorString(&errorValue);
|
||||
EXPECT_TRUE(errorValue.empty());
|
||||
lib.get()->getLastErrorString(nullptr);
|
||||
lib->getLastErrorString(nullptr);
|
||||
}
|
@ -1790,7 +1790,7 @@ TEST_F(MockWddmMemoryManagerTest, givenAllocateGraphicsMemoryForBufferAndRequest
|
||||
EXPECT_EQ(4, wddmAlloc->getNumGmms());
|
||||
EXPECT_EQ(4, wddm->createAllocationResult.called);
|
||||
|
||||
auto gmmHelper = executionEnvironment->rootDeviceEnvironments[wddmAlloc->getRootDeviceIndex()].get()->getGmmHelper();
|
||||
auto gmmHelper = executionEnvironment->rootDeviceEnvironments[wddmAlloc->getRootDeviceIndex()]->getGmmHelper();
|
||||
EXPECT_EQ(wddmAlloc->getGpuAddressToModify(), gmmHelper->canonize(wddmAlloc->reservedGpuVirtualAddress));
|
||||
|
||||
memoryManager.freeGraphicsMemory(wddmAlloc);
|
||||
@ -1976,7 +1976,7 @@ TEST_F(MockWddmMemoryManagerTest, givenCompressedAllocationWhenMappedGpuVaAndPag
|
||||
PreemptionHelper::getDefaultPreemptionMode(hwInfo)));
|
||||
|
||||
auto mockMngr = new MockGmmPageTableMngr();
|
||||
for (auto engine : executionEnvironment->memoryManager.get()->getRegisteredEngines()) {
|
||||
for (auto engine : executionEnvironment->memoryManager->getRegisteredEngines()) {
|
||||
engine.commandStreamReceiver->pageTableManager.reset(mockMngr);
|
||||
}
|
||||
|
||||
@ -2009,7 +2009,7 @@ TEST_F(MockWddmMemoryManagerTest, givenCompressedAllocationWhenMappedGpuVaAndPag
|
||||
PreemptionHelper::getDefaultPreemptionMode(hwInfo)));
|
||||
|
||||
auto mockMngr = new MockGmmPageTableMngr();
|
||||
for (auto engine : executionEnvironment->memoryManager.get()->getRegisteredEngines()) {
|
||||
for (auto engine : executionEnvironment->memoryManager->getRegisteredEngines()) {
|
||||
engine.commandStreamReceiver->pageTableManager.reset(mockMngr);
|
||||
}
|
||||
|
||||
@ -2020,7 +2020,7 @@ TEST_F(MockWddmMemoryManagerTest, givenCompressedAllocationWhenMappedGpuVaAndPag
|
||||
expectedDdiUpdateAuxTable.DoNotWait = true;
|
||||
expectedDdiUpdateAuxTable.Map = true;
|
||||
|
||||
auto expectedCallCount = executionEnvironment->memoryManager.get()->getRegisteredEnginesCount();
|
||||
auto expectedCallCount = executionEnvironment->memoryManager->getRegisteredEnginesCount();
|
||||
|
||||
auto hwInfoMock = hardwareInfoTable[wddm.getGfxPlatform()->eProductFamily];
|
||||
ASSERT_NE(nullptr, hwInfoMock);
|
||||
@ -2111,7 +2111,7 @@ TEST_F(MockWddmMemoryManagerTest, givenNonCompressedAllocationWhenMappedGpuVaThe
|
||||
PreemptionHelper::getDefaultPreemptionMode(hwInfo)));
|
||||
|
||||
auto mockMngr = new MockGmmPageTableMngr();
|
||||
for (auto engine : executionEnvironment->memoryManager.get()->getRegisteredEngines()) {
|
||||
for (auto engine : executionEnvironment->memoryManager->getRegisteredEngines()) {
|
||||
engine.commandStreamReceiver->pageTableManager.reset(mockMngr);
|
||||
}
|
||||
|
||||
|
@ -967,7 +967,7 @@ TEST_F(WddmResidencyControllerWithGdiAndMemoryManagerTest, WhenMakingResidentRes
|
||||
}
|
||||
|
||||
TEST_F(WddmResidencyControllerWithGdiAndMemoryManagerTest, GivenTripleAllocationsWhenMakingResidentResidencyAllocationsThenAllAllocationsAreMarkedResident) {
|
||||
if (executionEnvironment->memoryManager.get()->isLimitedGPU(0)) {
|
||||
if (executionEnvironment->memoryManager->isLimitedGPU(0)) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
MockWddmAllocation allocation1(gmmHelper);
|
||||
|
Reference in New Issue
Block a user