mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4b7782d2ab
commit
90cd433766
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user