mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "fix: set memoryBanks correctly for single memory bank"
This reverts commit ec5477e3ee.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a27c9200d3
commit
dc49d09e64
@@ -5512,7 +5512,7 @@ TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenSingleLocalMemoryWhenParticular
|
||||
EXPECT_EQ(memoryManager->computeStorageInfoMemoryBanksCalled, 2UL);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenSingleLocalMemoryAndClonedAllocationTypeWhenAllTilesIndicatedThenCorrectBankIsSelected) {
|
||||
TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenSingleLocalMemoryWhenAllSubdevicesIndicatedThenCorrectBankIsSelected) {
|
||||
auto *memoryInfo = static_cast<MockMemoryInfo *>(mock->memoryInfo.get());
|
||||
auto &localMemoryRegions = memoryInfo->localMemoryRegions;
|
||||
localMemoryRegions.resize(1U);
|
||||
@@ -5529,25 +5529,6 @@ TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenSingleLocalMemoryAndClonedAlloc
|
||||
EXPECT_EQ(memoryManager->computeStorageInfoMemoryBanksCalled, 2UL);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenSingleLocalMemoryAndNonClonedAllocationTypeWhenAllTilesIndicatedThenCorrectBankIsSelected) {
|
||||
auto *memoryInfo = static_cast<MockMemoryInfo *>(mock->memoryInfo.get());
|
||||
auto &localMemoryRegions = memoryInfo->localMemoryRegions;
|
||||
localMemoryRegions.resize(1U);
|
||||
localMemoryRegions[0].tilesMask = 0b11;
|
||||
|
||||
AllocationProperties properties{1, true, 4096, AllocationType::workPartitionSurface, false, {}};
|
||||
properties.subDevicesBitfield = 0b11;
|
||||
|
||||
memoryManager->computeStorageInfoMemoryBanksCalled = 0U;
|
||||
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
|
||||
|
||||
constexpr auto defaultMemoryBanks = 0b01;
|
||||
EXPECT_NE(storageInfo.memoryBanks, defaultMemoryBanks);
|
||||
EXPECT_EQ(storageInfo.memoryBanks, storageInfo.pageTablesVisibility);
|
||||
EXPECT_TRUE(storageInfo.tileInstanced);
|
||||
EXPECT_EQ(memoryManager->computeStorageInfoMemoryBanksCalled, 2UL);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerWithLocalMemoryTest, givenMultipleLocalMemoryRegionsWhenParticularSubdeviceIndicatedThenItIsSelected) {
|
||||
auto *memoryInfo = static_cast<MockMemoryInfo *>(mock->memoryInfo.get());
|
||||
auto &localMemoryRegions = memoryInfo->localMemoryRegions;
|
||||
|
||||
Reference in New Issue
Block a user