mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: remove redundant code
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
135d249c68
commit
6ef0af7e22
@@ -3109,7 +3109,6 @@ static const AllocationType allocation57Bit[] = {
|
||||
AllocationType::buffer,
|
||||
AllocationType::constantSurface,
|
||||
AllocationType::globalSurface,
|
||||
AllocationType::pipe,
|
||||
AllocationType::printfSurface,
|
||||
AllocationType::privateSurface,
|
||||
AllocationType::sharedBuffer,
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user