2020-09-11 21:44:09 +08:00
|
|
|
/*
|
2021-08-02 18:44:48 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-09-11 21:44:09 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/memory_manager/compression_selector.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
2021-08-02 18:44:48 +08:00
|
|
|
bool CompressionSelector::preferRenderCompressedBuffer(const AllocationProperties &properties, const HardwareInfo &hwInfo) {
|
2020-09-11 21:44:09 +08:00
|
|
|
return GraphicsAllocation::AllocationType::BUFFER_COMPRESSED == properties.allocationType;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|