mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
fix: define isCachingOnCpuAvailable per hw release
Related-To: NEO-8187 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2f7c33c1fd
commit
3eb98163a8
@@ -37,6 +37,7 @@ class ReleaseHelper {
|
||||
virtual int getProductMaxPreferredSlmSize(int preferredEnumValue) const = 0;
|
||||
virtual bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const = 0;
|
||||
virtual bool isResolvingSubDeviceIDNeeded() const = 0;
|
||||
virtual bool isCachingOnCpuAvailable() const = 0;
|
||||
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
|
||||
|
||||
protected:
|
||||
@@ -61,6 +62,7 @@ class ReleaseHelperHw : public ReleaseHelper {
|
||||
int getProductMaxPreferredSlmSize(int preferredEnumValue) const override;
|
||||
bool getMediaFrequencyTileIndex(uint32_t &tileIndex) const override;
|
||||
bool isResolvingSubDeviceIDNeeded() const override;
|
||||
bool isCachingOnCpuAvailable() const override;
|
||||
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -58,6 +58,11 @@ bool ReleaseHelperHw<releaseType>::isResolvingSubDeviceIDNeeded() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <ReleaseType releaseType>
|
||||
bool ReleaseHelperHw<releaseType>::isCachingOnCpuAvailable() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <ReleaseType releaseType>
|
||||
std::optional<GfxMemoryAllocationMethod> ReleaseHelperHw<releaseType>::getPreferredAllocationMethod(AllocationType allocationType) const {
|
||||
return {};
|
||||
|
||||
@@ -26,4 +26,9 @@ std::optional<GfxMemoryAllocationMethod> ReleaseHelperHw<release>::getPreferredA
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ReleaseHelperHw<release>::isCachingOnCpuAvailable() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user