refactor: Move disableRcs to releaseHelper

Related-To: NEO-8296

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2023-09-15 10:28:08 +00:00
committed by Compute-Runtime-Automation
parent 8da92f56c7
commit cb903cbc03
28 changed files with 87 additions and 64 deletions

View File

@@ -41,6 +41,7 @@ class ReleaseHelper {
virtual bool isCachingOnCpuAvailable() const = 0;
virtual bool shouldAdjustDepth() const = 0;
virtual bool isDirectSubmissionSupported() const = 0;
virtual bool isRcsExposureDisabled() const = 0;
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
protected:
@@ -69,6 +70,7 @@ class ReleaseHelperHw : public ReleaseHelper {
bool isCachingOnCpuAvailable() const override;
bool shouldAdjustDepth() const override;
bool isDirectSubmissionSupported() const override;
bool isRcsExposureDisabled() const override;
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
protected:

View File

@@ -13,6 +13,10 @@
namespace NEO {
constexpr auto release = ReleaseType::release1260;
template <>
bool ReleaseHelperHw<release>::isRcsExposureDisabled() const {
return true;
}
} // namespace NEO
template class NEO::ReleaseHelperHw<NEO::release>;

View File

@@ -82,4 +82,9 @@ template <ReleaseType releaseType>
bool ReleaseHelperHw<releaseType>::isDirectSubmissionSupported() const {
return false;
}
template <ReleaseType releaseType>
bool ReleaseHelperHw<releaseType>::isRcsExposureDisabled() const {
return false;
}
} // namespace NEO

View File

@@ -29,4 +29,8 @@ bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
return true;
}
template <>
bool ReleaseHelperHw<release>::isRcsExposureDisabled() const {
return true;
}
} // namespace NEO