mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
performance: enable usm reuse on L0/Xe2
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
aa74555682
commit
2098bca4f4
@@ -61,4 +61,15 @@ template <>
|
||||
bool ProductHelperHw<gfxProduct>::isStagingBuffersEnabled() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isDeviceUsmAllocationReuseSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isHostUsmAllocationReuseSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -864,8 +864,8 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsUsmAllocationReuseS
|
||||
}
|
||||
{
|
||||
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::L0);
|
||||
EXPECT_FALSE(productHelper->isHostUsmAllocationReuseSupported());
|
||||
EXPECT_FALSE(productHelper->isDeviceUsmAllocationReuseSupported());
|
||||
EXPECT_TRUE(productHelper->isHostUsmAllocationReuseSupported());
|
||||
EXPECT_TRUE(productHelper->isDeviceUsmAllocationReuseSupported());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user