Fix OCL: don't set multi storage resource for system memory buffers

respect pointer size when patching surfaces in 32 bit applications

Related-To: NEO-5735
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-02-15 11:02:02 +00:00
committed by Compute-Runtime-Automation
parent 4b7782d2ab
commit 90cd433766
14 changed files with 86 additions and 46 deletions

View File

@@ -1721,11 +1721,18 @@ TEST(CommandQueue, givenBufferWhenMultiStorageIsNotSetThenDontRequireMigrations)
alignedFree(dstPtr);
}
TEST(CommandQueue, givenBuffersInLocalMemoryWhenMultiGraphicsAllocationsRequireMigrationsThenMigrateTheAllocations) {
using MultiRootDeviceCommandQueueTest = ::testing::Test;
HWTEST2_F(MultiRootDeviceCommandQueueTest, givenBuffersInLocalMemoryWhenMultiGraphicsAllocationsRequireMigrationsThenMigrateTheAllocations, IsAtLeastGen12lp) {
MockDefaultContext context{true};
ASSERT_TRUE(context.getNumDevices() > 1);
ASSERT_TRUE(context.getRootDeviceIndices().size() > 1);
auto memoryManager = static_cast<MockMemoryManager *>(context.getMemoryManager());
for (auto &rootDeviceIndex : context.getRootDeviceIndices()) {
memoryManager->localMemorySupported[rootDeviceIndex] = true;
}
auto sourceRootDeviceIndex = context.getDevice(0)->getRootDeviceIndex();
EXPECT_EQ(0u, sourceRootDeviceIndex);