mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Add preemption WA to make CSR surface uncacheable
Change-Id: Ia468c6f5df16522c3bc9aae22802895f2badc431
This commit is contained in:
committed by
sys_ocldev
parent
e9fd40db13
commit
21f92d8258
@@ -168,7 +168,7 @@ TEST_F(DrmMemoryManagerTest, pinAfterAllocateWhenAskedAndAllowedAndBigAllocation
|
||||
auto mm = new (std::nothrow) TestedDrmMemoryManager(this->mock, true);
|
||||
ASSERT_NE(nullptr, mm->getPinBB());
|
||||
|
||||
auto alloc = mm->allocateGraphicsMemory(10 * 1014 * 1024, 1024, true);
|
||||
auto alloc = mm->allocateGraphicsMemory(10 * 1014 * 1024, 1024, true, false);
|
||||
ASSERT_NE(nullptr, alloc);
|
||||
EXPECT_NE(nullptr, alloc->getBO());
|
||||
|
||||
@@ -184,7 +184,7 @@ TEST_F(DrmMemoryManagerTest, doNotPinAfterAllocateWhenAskedAndAllowedButSmallAll
|
||||
ASSERT_NE(nullptr, mm->getPinBB());
|
||||
|
||||
// one page is too small for early pinning
|
||||
auto alloc = mm->allocateGraphicsMemory(4 * 1024, 1024, true);
|
||||
auto alloc = mm->allocateGraphicsMemory(4 * 1024, 1024, true, false);
|
||||
ASSERT_NE(nullptr, alloc);
|
||||
EXPECT_NE(nullptr, alloc->getBO());
|
||||
|
||||
@@ -199,7 +199,7 @@ TEST_F(DrmMemoryManagerTest, doNotPinAfterAllocateWhenNotAskedButAllowed) {
|
||||
auto mm = new (std::nothrow) TestedDrmMemoryManager(this->mock, true);
|
||||
ASSERT_NE(nullptr, mm->getPinBB());
|
||||
|
||||
auto alloc = mm->allocateGraphicsMemory(1024, 1024, false);
|
||||
auto alloc = mm->allocateGraphicsMemory(1024, 1024, false, false);
|
||||
ASSERT_NE(nullptr, alloc);
|
||||
EXPECT_NE(nullptr, alloc->getBO());
|
||||
|
||||
@@ -214,7 +214,7 @@ TEST_F(DrmMemoryManagerTest, doNotPinAfterAllocateWhenAskedButNotAllowed) {
|
||||
auto mm = new (std::nothrow) TestedDrmMemoryManager(this->mock, false);
|
||||
ASSERT_EQ(nullptr, mm->getPinBB());
|
||||
|
||||
auto alloc = mm->allocateGraphicsMemory(1024, 1024, true);
|
||||
auto alloc = mm->allocateGraphicsMemory(1024, 1024, true, false);
|
||||
ASSERT_NE(nullptr, alloc);
|
||||
EXPECT_NE(nullptr, alloc->getBO());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user