2020-09-11 21:44:09 +08:00
|
|
|
/*
|
2023-01-04 17:45:07 +08:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-09-11 21:44:09 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace NEO {
|
2022-09-14 18:50:58 +08:00
|
|
|
|
|
|
|
struct AllocationProperties;
|
|
|
|
|
2020-09-11 21:44:09 +08:00
|
|
|
class CompressionSelector {
|
|
|
|
public:
|
2023-01-04 17:45:07 +08:00
|
|
|
static bool preferCompressedAllocation(const AllocationProperties &properties);
|
|
|
|
static bool allowStatelessCompression();
|
2020-09-11 21:44:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NEO
|