refactor: correct naming of enum class constants 8/n

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-12-13 16:09:52 +00:00
committed by Compute-Runtime-Automation
parent 269009c299
commit dd1b9d6abc
371 changed files with 3406 additions and 3404 deletions

View File

@@ -82,7 +82,7 @@ TEST_F(DrmGlobalBindlessAllocatorTests, givenLocalMemoryWhenSpecialSshHeapCreate
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->getBindlessHeapsHelper()->getGlobalHeapsBase());
EXPECT_EQ(executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->getBindlessHeapsHelper()->getGlobalHeapsBase(),
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->getBindlessHeapsHelper()->getHeap(BindlessHeapsHelper::BindlesHeapType::SPECIAL_SSH)->getGraphicsAllocation()->getGpuAddress());
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->getBindlessHeapsHelper()->getHeap(BindlessHeapsHelper::BindlesHeapType::specialSsh)->getGraphicsAllocation()->getGpuAddress());
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->bindlessHeapsHelper.reset();
}

View File

@@ -1881,7 +1881,7 @@ TEST_F(DrmMemoryManagerLocalMemoryPrelimTest, givenSupportedTypeWhenAllocatingIn
allocData.flags.allocateMemory = true;
allocData.rootDeviceIndex = rootDeviceIndex;
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image2D;
imgDesc.imageType = ImageType::image2D;
imgDesc.imageWidth = MemoryConstants::pageSize;
imgDesc.imageHeight = MemoryConstants::pageSize;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);
@@ -2907,7 +2907,7 @@ TEST_F(DrmMemoryManagerTestPrelim, givenDrmMemoryManagerWhenGetLocalMemorySizeIs
TEST_F(DrmMemoryManagerLocalMemoryPrelimTest, givenGraphicsAllocationInDevicePoolIsAllocatedForImage1DWhenTheSizeReturnedFromGmmIsUnalignedThenCreateBufferObjectWithSizeAlignedTo64KB) {
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image1D;
imgDesc.imageType = ImageType::image1D;
imgDesc.imageWidth = 100;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);

View File

@@ -566,7 +566,7 @@ HWTEST2_F(DrmMemoryManagerLocalMemoryTest, givenSupportedTypeWhenAllocatingInDev
allocData.flags.allocateMemory = true;
allocData.rootDeviceIndex = rootDeviceIndex;
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image2D;
imgDesc.imageType = ImageType::image2D;
imgDesc.imageWidth = MemoryConstants::pageSize;
imgDesc.imageHeight = MemoryConstants::pageSize;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);
@@ -920,7 +920,7 @@ TEST_F(DrmMemoryManagerTestImpl, givenDrmMemoryManagerWhenGetLocalMemorySizeIsCa
HWTEST2_F(DrmMemoryManagerLocalMemoryTest, givenGraphicsAllocationInDevicePoolIsAllocatedForImage1DWhenTheSizeReturnedFromGmmIsUnalignedThenCreateBufferObjectWithSizeAlignedTo64KB, NonDefaultIoctlsSupported) {
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image1D;
imgDesc.imageType = ImageType::image1D;
imgDesc.imageWidth = 100;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);

View File

@@ -1968,7 +1968,7 @@ TEST_F(DrmMemoryManagerTest, GivenMemoryManagerWhenAllocateGraphicsMemoryForImag
mock->ioctlExpected.gemClose = 1;
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image2D; // tiled
imgDesc.imageType = ImageType::image2D; // tiled
imgDesc.imageWidth = 512;
imgDesc.imageHeight = 512;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);
@@ -2368,7 +2368,7 @@ TEST_F(DrmMemoryManagerTest, givenDrmMemoryManagerWhenLockUnlockIsCalledOnAlloca
mock->ioctlExpected.gemClose = 1;
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image2D;
imgDesc.imageType = ImageType::image2D;
imgDesc.imageWidth = 512;
imgDesc.imageHeight = 512;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);
@@ -4127,7 +4127,7 @@ TEST(DrmMemoryManager, givenEnabledResourceRegistrationWhenSshIsAllocatedThenItI
CommandContainer cmdContainer;
cmdContainer.initialize(device.get(), nullptr, HeapSize::defaultHeapSize, true, false);
auto *ssh = cmdContainer.getIndirectHeap(NEO::HeapType::SURFACE_STATE);
auto *ssh = cmdContainer.getIndirectHeap(NEO::HeapType::surfaceState);
auto bo = static_cast<DrmAllocation *>(ssh->getGraphicsAllocation())->getBO();
ASSERT_NE(nullptr, bo);
@@ -6524,7 +6524,7 @@ TEST_F(DrmMemoryManagerWithLocalMemoryAndExplicitExpectationsTest, givenCompress
TEST_F(DrmMemoryManagerWithLocalMemoryAndExplicitExpectationsTest, givenNotSetUseSystemMemoryWhenGraphicsAllocationInDevicePoolIsAllocatedForImageThenLocalMemoryAllocationIsReturnedFromStandard64KbHeap) {
ImageDescriptor imgDesc = {};
imgDesc.imageType = ImageType::Image2D;
imgDesc.imageType = ImageType::image2D;
imgDesc.imageWidth = 512;
imgDesc.imageHeight = 512;
auto imgInfo = MockGmm::initImgInfo(imgDesc, 0, nullptr);