mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Revert "Move and extend local memory DRM allocations"
This reverts commit b84b0015d5
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0666ed35ba
commit
e984760423
@ -1240,34 +1240,6 @@ TEST_F(DrmMemoryManagerTest, GivenShareableEnabledWhenAskedToCreateGraphicsAlloc
|
||||
memoryManager->freeGraphicsMemory(allocation);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, GivenAllocationTypeThatRequiresCpuAccessForKmdAllocationThenLockTheResourceIsCalled) {
|
||||
struct DrmMemoryManagerToTestLockResource : public DrmMemoryManager {
|
||||
using DrmMemoryManager::allocateMemoryByKMD;
|
||||
|
||||
DrmMemoryManagerToTestLockResource(ExecutionEnvironment &executionEnvironment)
|
||||
: DrmMemoryManager(gemCloseWorkerMode::gemCloseWorkerInactive, false, false, executionEnvironment) {
|
||||
}
|
||||
void *lockResourceImpl(GraphicsAllocation &allocation) override {
|
||||
return reinterpret_cast<void *>(0xDEADBEEF);
|
||||
}
|
||||
};
|
||||
|
||||
DrmMemoryManagerToTestLockResource drmMemoryManager(*executionEnvironment);
|
||||
|
||||
mock->ioctl_expected.gemWait = 1;
|
||||
mock->ioctl_expected.gemCreate = 1;
|
||||
mock->ioctl_expected.gemClose = 1;
|
||||
|
||||
allocationData.type = AllocationType::TIMESTAMP_PACKET_TAG_BUFFER;
|
||||
|
||||
auto allocation = drmMemoryManager.allocateMemoryByKMD(allocationData);
|
||||
EXPECT_NE(nullptr, allocation);
|
||||
EXPECT_NE(0u, allocation->getGpuAddress());
|
||||
EXPECT_EQ(0xDEADBEEF, reinterpret_cast<uintptr_t>(allocation->getUnderlyingBuffer()));
|
||||
|
||||
memoryManager->freeGraphicsMemory(allocation);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, GivenMisalignedHostPtrAndMultiplePagesSizeWhenAskedForGraphicsAllocationThenItContainsAllFragmentsWithProperGpuAdrresses) {
|
||||
mock->ioctl_expected.gemUserptr = 3;
|
||||
mock->ioctl_expected.gemWait = 3;
|
||||
|
@ -389,4 +389,3 @@ AccessCountersGranularity = -1
|
||||
OverridePatIndex = -1
|
||||
UseTileMemoryBankInVirtualMemoryCreation = -1
|
||||
DisableScratchPages = 0
|
||||
SetVmAdviseAtomicAttribute = -1
|
||||
|
Reference in New Issue
Block a user