mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
performance: Optimize compression condition
Related-To: NEO-16804 Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b1bea426d4
commit
dc0cb255c3
@@ -508,10 +508,10 @@ void *SVMAllocsManager::createUnifiedMemoryAllocation(size_t size,
|
||||
bool compressionEnabled = false;
|
||||
AllocationType allocationType = getGraphicsAllocationTypeAndCompressionPreference(memoryProperties, compressionEnabled);
|
||||
|
||||
if (memoryProperties.device) {
|
||||
if (compressionEnabled && memoryProperties.device) {
|
||||
auto *releaseHelper = memoryProperties.device->getReleaseHelper();
|
||||
const bool peerAccess = memoryProperties.device->hasAnyPeerAccess().value_or(false);
|
||||
if (peerAccess && !releaseHelper->isUsmCompressionSupportedOnPeerAccess()) {
|
||||
if (releaseHelper && !releaseHelper->isUsmCompressionSupportedOnPeerAccess() &&
|
||||
memoryProperties.device->hasAnyPeerAccess().value_or(false)) {
|
||||
compressionEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user