mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
No functional changes in this commit. This is prework. Related-To: NEO-7966 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
32 lines
813 B
C++
32 lines
813 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace NEO {
|
|
struct ApiSpecificConfig {
|
|
enum ApiType { OCL,
|
|
L0 };
|
|
static bool isStatelessCompressionSupported();
|
|
static bool isBcsSplitWaSupported();
|
|
static bool getGlobalBindlessHeapConfiguration();
|
|
static bool getBindlessMode();
|
|
static bool isDeviceAllocationCacheEnabled();
|
|
static bool isDynamicPostSyncAllocLayoutEnabled();
|
|
static ApiType getApiType();
|
|
static std::string getName();
|
|
static uint64_t getReducedMaxAllocSize(uint64_t maxAllocSize);
|
|
static const char *getRegistryPath();
|
|
|
|
static std::string getAubPrefixForSpecificApi() {
|
|
return (getName() + "_");
|
|
}
|
|
};
|
|
} // namespace NEO
|