mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: Move disableRcs to releaseHelper
Related-To: NEO-8296 Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8da92f56c7
commit
cb903cbc03
@@ -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:
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -29,4 +29,8 @@ bool ReleaseHelperHw<release>::isDirectSubmissionSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ReleaseHelperHw<release>::isRcsExposureDisabled() const {
|
||||
return true;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user