refactor: remove redundant code

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2025-08-25 13:55:23 +00:00
committed by Compute-Runtime-Automation
parent 135d249c68
commit 6ef0af7e22
18 changed files with 8 additions and 37 deletions

View File

@@ -3109,7 +3109,6 @@ static const AllocationType allocation57Bit[] = {
AllocationType::buffer,
AllocationType::constantSurface,
AllocationType::globalSurface,
AllocationType::pipe,
AllocationType::printfSurface,
AllocationType::privateSurface,
AllocationType::sharedBuffer,

View File

@@ -271,10 +271,10 @@ HWTEST_TEMPLATED_F(DrmMemoryManagerTest, GivenAllocatePhysicalHostMemoryThenSucc
}
HWTEST_TEMPLATED_F(DrmMemoryManagerTest, GivenAllocatePhysicalHostMemoryThenSuccessReturnedAndCacheableFlagIsOverriden) {
mock->ioctlExpected.gemWait = 49;
mock->ioctlExpected.gemCreateExt = 49;
mock->ioctlExpected.gemMmapOffset = 49;
mock->ioctlExpected.gemClose = 49;
mock->ioctlExpected.gemWait = static_cast<uint32_t>(AllocationType::count);
mock->ioctlExpected.gemCreateExt = static_cast<uint32_t>(AllocationType::count);
mock->ioctlExpected.gemMmapOffset = static_cast<uint32_t>(AllocationType::count);
mock->ioctlExpected.gemClose = static_cast<uint32_t>(AllocationType::count);
std::vector<MemoryRegion> regionInfo(1);
regionInfo[0].region = {drm_i915_gem_memory_class::I915_MEMORY_CLASS_SYSTEM, 0};