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