mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
performance: don't call evict with empty handle list
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e55aa958b7
commit
974e8ae63f
@@ -571,6 +571,14 @@ TEST_F(WddmTests, GivenPlatformNotSupportEvictIfNecessaryWhenAdjustingEvictNeede
|
||||
EXPECT_TRUE(value);
|
||||
}
|
||||
|
||||
TEST_F(WddmTests, whenCallingEvictWithNoAllocationsThenDontCallGdi) {
|
||||
uint64_t sizeToTrim = 0;
|
||||
wddm->callBaseEvict = true;
|
||||
EXPECT_TRUE(wddm->evict(nullptr, 0, sizeToTrim, false));
|
||||
bool value = wddm->adjustEvictNeededParameter(false);
|
||||
EXPECT_TRUE(value);
|
||||
}
|
||||
|
||||
TEST_F(WddmTests, GivenWddmWhenMapGpuVaCalledThenGmmClientCallsMapGpuVa) {
|
||||
NEO::AllocationData allocData = {};
|
||||
allocData.type = NEO::AllocationType::buffer;
|
||||
|
||||
Reference in New Issue
Block a user