2020-10-01 19:31:19 +08:00
|
|
|
/*
|
2021-05-14 01:46:01 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-10-01 19:31:19 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-08-11 02:52:02 +08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2020-10-01 19:31:19 +08:00
|
|
|
#pragma once
|
|
|
|
namespace NEO {
|
|
|
|
struct ApiSpecificConfig {
|
2021-05-14 01:46:01 +08:00
|
|
|
enum ApiType { OCL,
|
|
|
|
L0 };
|
2021-08-03 16:24:06 +08:00
|
|
|
static bool isStatelessCompressionSupported();
|
2020-10-01 19:31:19 +08:00
|
|
|
static bool getHeapConfiguration();
|
2020-10-07 19:53:56 +08:00
|
|
|
static bool getBindlessConfiguration();
|
2021-05-14 01:46:01 +08:00
|
|
|
static ApiType getApiType();
|
2021-07-05 20:10:31 +08:00
|
|
|
static const char *getAubPrefixForSpecificApi();
|
2021-08-11 02:52:02 +08:00
|
|
|
static uint64_t getReducedMaxAllocSize(uint64_t maxAllocSize);
|
2020-10-01 19:31:19 +08:00
|
|
|
};
|
2021-08-11 02:52:02 +08:00
|
|
|
} // namespace NEO
|