fix: remove unnessessary check chunking prefetch

Removed checking for EnableBOChunkingPrefetch in prefetchBOWithChunking
in DrmAllocation so that zeCommandListAppendMemoryPrefetch will work
as expected with chunking enabled

Related-To: NEO-8098
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
This commit is contained in:
Yoon, Young Jin
2023-09-05 13:08:57 +00:00
committed by Compute-Runtime-Automation
parent 65188fc90b
commit c6aac6f2bc
2 changed files with 0 additions and 32 deletions

View File

@@ -537,34 +537,6 @@ TEST_F(IoctlHelperPrelimFixture,
EXPECT_FALSE(allocation.setMemPrefetch(drm.get(), subDeviceIds));
}
TEST_F(IoctlHelperPrelimFixture,
givenDrmAllocationWithChunkingAndsetMemPrefetchWithEnableBOChunkingPrefetchUnsetThenFailureReturned) {
SubDeviceIdsVec subDeviceIds{0, 1};
DebugManagerStateRestore restore;
DebugManager.flags.EnableBOChunking.set(1);
DebugManager.flags.EnableBOChunkingPreferredLocationHint.set(true);
std::vector<MemoryRegion> memRegions{
{{drm_i915_gem_memory_class::I915_MEMORY_CLASS_SYSTEM, 0}, MemoryConstants::chunkThreshold * 4, 0},
{{drm_i915_gem_memory_class::I915_MEMORY_CLASS_DEVICE, 0}, MemoryConstants::chunkThreshold * 4, 0},
{{drm_i915_gem_memory_class::I915_MEMORY_CLASS_DEVICE, 1}, MemoryConstants::chunkThreshold * 4, 0},
{{drm_i915_gem_memory_class::I915_MEMORY_CLASS_DEVICE, 2}, MemoryConstants::chunkThreshold * 4, 0}};
drm->memoryInfo.reset(new MemoryInfo(memRegions, *drm));
drm->ioctlCallsCount = 0;
MockBufferObject bo(0u, drm.get(), 3, 0, 0, 1);
bo.isChunked = 1;
bo.setSize(1024);
MockDrmAllocation allocation(0u, AllocationType::BUFFER, MemoryPool::LocalMemory);
allocation.bufferObjects[0] = &bo;
allocation.storageInfo.memoryBanks = 0x5;
allocation.setNumHandles(1);
allocation.storageInfo.isChunked = 1;
allocation.storageInfo.numOfChunks = 4;
allocation.storageInfo.subDeviceBitfield = 0b0001;
EXPECT_FALSE(allocation.setMemPrefetch(drm.get(), subDeviceIds));
}
TEST_F(IoctlHelperPrelimFixture, givenVariousDirectSubmissionFlagSettingWhenCreateDrmContextIsCalledThenCorrectFlagsArePassedToIoctl) {
DebugManagerStateRestore stateRestore;
uint32_t vmId = 0u;