mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Disable compression for multi root device mem objects
Related-To: NEO-3691 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2cca41aeb2
commit
1673738dc7
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/source/context/context.h"
|
||||
#include "opencl/source/mem_obj/mem_obj_helper_common.inl"
|
||||
|
||||
#include "memory_properties_flags.h"
|
||||
@@ -12,6 +13,9 @@
|
||||
namespace NEO {
|
||||
|
||||
bool MemObjHelper::isSuitableForRenderCompression(bool renderCompressed, const MemoryProperties &properties, Context &context, bool preferCompression) {
|
||||
if (context.getRootDeviceIndices().size() > 1u) {
|
||||
return false;
|
||||
}
|
||||
return renderCompressed && preferCompression;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user