2020-08-27 08:55:09 +02:00
|
|
|
/*
|
2023-05-30 08:26:29 +00:00
|
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
2020-08-27 08:55:09 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2022-05-17 19:04:23 +00:00
|
|
|
#pragma once
|
2021-08-10 18:52:02 +00:00
|
|
|
#include <cstdint>
|
2021-09-16 12:31:00 +00:00
|
|
|
#include <string>
|
2021-08-10 18:52:02 +00:00
|
|
|
|
2020-08-27 08:55:09 +02:00
|
|
|
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();
|
2023-05-30 08:26:29 +00:00
|
|
|
static bool getGlobalBindlessHeapConfiguration();
|
|
|
|
|
static bool getBindlessMode();
|
2022-09-05 13:17:18 +00:00
|
|
|
static bool isDeviceAllocationCacheEnabled();
|
2023-06-07 15:06:16 +00:00
|
|
|
static bool isDynamicPostSyncAllocLayoutEnabled();
|
2021-05-13 19:46:01 +02:00
|
|
|
static ApiType getApiType();
|
2021-09-16 12:31:00 +00:00
|
|
|
static std::string getName();
|
2021-08-10 18:52:02 +00:00
|
|
|
static uint64_t getReducedMaxAllocSize(uint64_t maxAllocSize);
|
2021-09-22 22:03:07 +00:00
|
|
|
static const char *getRegistryPath();
|
2021-09-16 12:31:00 +00:00
|
|
|
|
|
|
|
|
static std::string getAubPrefixForSpecificApi() {
|
|
|
|
|
return (getName() + "_");
|
|
|
|
|
}
|
2020-08-27 08:55:09 +02:00
|
|
|
};
|
2021-08-10 18:52:02 +00:00
|
|
|
} // namespace NEO
|