mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +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
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -1398,8 +1398,8 @@ TEST_F(clCreateImageWithMultiDeviceContextTests, GivenContextdWithMultiDeviceFai
|
||||
REQUIRE_IMAGES_OR_SKIP(defaultHwInfo);
|
||||
|
||||
{
|
||||
static_cast<MockMemoryManager *>(context.get()->getMemoryManager())->successAllocatedGraphicsMemoryIndex = 0u;
|
||||
static_cast<MockMemoryManager *>(context.get()->getMemoryManager())->maxSuccessAllocatedGraphicsMemoryIndex = 0u;
|
||||
static_cast<MockMemoryManager *>(context->getMemoryManager())->successAllocatedGraphicsMemoryIndex = 0u;
|
||||
static_cast<MockMemoryManager *>(context->getMemoryManager())->maxSuccessAllocatedGraphicsMemoryIndex = 0u;
|
||||
|
||||
std::unique_ptr<Image> image(ImageHelper<ImageWithoutHostPtr>::create(context.get()));
|
||||
|
||||
@ -1407,8 +1407,8 @@ TEST_F(clCreateImageWithMultiDeviceContextTests, GivenContextdWithMultiDeviceFai
|
||||
}
|
||||
|
||||
{
|
||||
static_cast<MockMemoryManager *>(context.get()->getMemoryManager())->successAllocatedGraphicsMemoryIndex = 0u;
|
||||
static_cast<MockMemoryManager *>(context.get()->getMemoryManager())->maxSuccessAllocatedGraphicsMemoryIndex = 1u;
|
||||
static_cast<MockMemoryManager *>(context->getMemoryManager())->successAllocatedGraphicsMemoryIndex = 0u;
|
||||
static_cast<MockMemoryManager *>(context->getMemoryManager())->maxSuccessAllocatedGraphicsMemoryIndex = 1u;
|
||||
|
||||
std::unique_ptr<Image> image(ImageHelper<ImageWithoutHostPtr>::create(context.get()));
|
||||
|
||||
|
@ -1188,7 +1188,7 @@ TEST_F(MultiRootDeviceClUnifiedSharedMemoryTests, WhenClHostMemAllocIntelIsCalle
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
ASSERT_NE(nullptr, unifiedMemoryHostAllocation);
|
||||
|
||||
auto allocationsManager = context.get()->getSVMAllocsManager();
|
||||
auto allocationsManager = context->getSVMAllocsManager();
|
||||
|
||||
EXPECT_EQ(allocationsManager->getNumAllocs(), 1u);
|
||||
|
||||
@ -1225,7 +1225,7 @@ TEST_F(MultiRootDeviceClUnifiedSharedMemoryTests, WhenClSharedMemAllocIntelIsCal
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
ASSERT_NE(nullptr, unifiedMemorySharedAllocation);
|
||||
|
||||
auto allocationsManager = context.get()->getSVMAllocsManager();
|
||||
auto allocationsManager = context->getSVMAllocsManager();
|
||||
|
||||
EXPECT_EQ(allocationsManager->getNumAllocs(), 1u);
|
||||
|
||||
@ -1263,7 +1263,7 @@ TEST_F(MultiRootDeviceClUnifiedSharedMemoryTests, WhenClSharedMemAllocIntelIsCal
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
ASSERT_NE(nullptr, unifiedMemorySharedAllocation);
|
||||
|
||||
auto allocationsManager = context.get()->getSVMAllocsManager();
|
||||
auto allocationsManager = context->getSVMAllocsManager();
|
||||
|
||||
EXPECT_EQ(allocationsManager->getNumAllocs(), 1u);
|
||||
|
||||
@ -1280,8 +1280,8 @@ TEST_F(MultiRootDeviceClUnifiedSharedMemoryTests, WhenClSharedMemAllocIntelIsCal
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
EXPECT_EQ(mockMemoryManager->waitForEnginesCompletionCalled, 2u);
|
||||
EXPECT_EQ(mockMemoryManager->waitAllocations.get()->getGraphicsAllocation(1u), graphicsAllocation1);
|
||||
EXPECT_EQ(mockMemoryManager->waitAllocations.get()->getGraphicsAllocation(2u), graphicsAllocation2);
|
||||
EXPECT_EQ(mockMemoryManager->waitAllocations->getGraphicsAllocation(1u), graphicsAllocation1);
|
||||
EXPECT_EQ(mockMemoryManager->waitAllocations->getGraphicsAllocation(2u), graphicsAllocation2);
|
||||
|
||||
EXPECT_EQ(allocationsManager->getNumAllocs(), 0u);
|
||||
|
||||
|
Reference in New Issue
Block a user