mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
committed by
Compute-Runtime-Automation
parent
0866f235c7
commit
7c538b956a
@@ -756,7 +756,7 @@ void OfflineCompiler::unifyExcludeIrFlags() {
|
||||
}
|
||||
}
|
||||
|
||||
void OfflineCompiler::setStatelessToStatefullBufferOffsetFlag() {
|
||||
void OfflineCompiler::setStatelessToStatefulBufferOffsetFlag() {
|
||||
bool isStatelessToStatefulBufferOffsetSupported = true;
|
||||
if (!deviceName.empty()) {
|
||||
const auto &compilerHwInfoConfig = *CompilerHwInfoConfig::get(hwInfo.platform.eProductFamily);
|
||||
@@ -782,7 +782,7 @@ void OfflineCompiler::appendExtraInternalOptions(std::string &internalOptions) {
|
||||
}
|
||||
|
||||
void OfflineCompiler::parseDebugSettings() {
|
||||
setStatelessToStatefullBufferOffsetFlag();
|
||||
setStatelessToStatefulBufferOffsetFlag();
|
||||
}
|
||||
|
||||
std::string OfflineCompiler::parseBinAsCharArray(uint8_t *binary, size_t size, std::string &fileName) {
|
||||
|
||||
@@ -105,7 +105,7 @@ All supported acronyms: %s.
|
||||
std::string getStringWithinDelimiters(const std::string &src);
|
||||
int initialize(size_t numArgs, const std::vector<std::string> &allArgs, bool dumpFiles);
|
||||
int parseCommandLine(size_t numArgs, const std::vector<std::string> &allArgs);
|
||||
void setStatelessToStatefullBufferOffsetFlag();
|
||||
void setStatelessToStatefulBufferOffsetFlag();
|
||||
void appendExtraInternalOptions(std::string &internalOptions);
|
||||
void parseDebugSettings();
|
||||
void storeBinary(char *&pDst, size_t &dstSize, const void *pSrc, const size_t srcSize);
|
||||
|
||||
@@ -54,7 +54,7 @@ uint64_t HwHelperHw<Family>::getMaxMemAllocSize() const {
|
||||
}
|
||||
|
||||
template <>
|
||||
bool HwHelperHw<Family>::isStatelesToStatefullWithOffsetSupported() const {
|
||||
bool HwHelperHw<Family>::isStatelessToStatefulWithOffsetSupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ class HwHelper {
|
||||
virtual size_t getMax3dImageWidthOrHeight() const = 0;
|
||||
virtual uint64_t getMaxMemAllocSize() const = 0;
|
||||
virtual uint64_t getPatIndex(CacheRegion cacheRegion, CachePolicy cachePolicy) const = 0;
|
||||
virtual bool isStatelesToStatefullWithOffsetSupported() const = 0;
|
||||
virtual bool isStatelessToStatefulWithOffsetSupported() const = 0;
|
||||
virtual void encodeBufferSurfaceState(EncodeSurfaceStateArgs &args) = 0;
|
||||
virtual bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool isRevisionSpecificBinaryBuiltinRequired() const = 0;
|
||||
@@ -390,7 +390,7 @@ class HwHelperHw : public HwHelper {
|
||||
size_t getMax3dImageWidthOrHeight() const override;
|
||||
uint64_t getMaxMemAllocSize() const override;
|
||||
uint64_t getPatIndex(CacheRegion cacheRegion, CachePolicy cachePolicy) const override;
|
||||
bool isStatelesToStatefullWithOffsetSupported() const override;
|
||||
bool isStatelessToStatefulWithOffsetSupported() const override;
|
||||
void encodeBufferSurfaceState(EncodeSurfaceStateArgs &args) override;
|
||||
bool disableL3CacheForDebug(const HardwareInfo &hwInfo) const override;
|
||||
bool isRevisionSpecificBinaryBuiltinRequired() const override;
|
||||
|
||||
@@ -44,13 +44,13 @@ size_t HwHelperHw<Family>::getMax3dImageWidthOrHeight() const {
|
||||
|
||||
template <typename Family>
|
||||
uint64_t HwHelperHw<Family>::getMaxMemAllocSize() const {
|
||||
//With statefull messages we have an allocation cap of 4GB
|
||||
//Reason to subtract 8KB is that driver may pad the buffer with addition pages for over fetching..
|
||||
// With stateful messages we have an allocation cap of 4GB
|
||||
// Reason to subtract 8KB is that driver may pad the buffer with addition pages for over fetching
|
||||
return (4ULL * MemoryConstants::gigaByte) - (8ULL * MemoryConstants::kiloByte);
|
||||
}
|
||||
|
||||
template <typename Family>
|
||||
bool HwHelperHw<Family>::isStatelesToStatefullWithOffsetSupported() const {
|
||||
bool HwHelperHw<Family>::isStatelessToStatefulWithOffsetSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user