mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
feature: add bindless addressing support query to releaseHelper
Related-To: NEO-7063 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
099a3f30e3
commit
92a2d6df27
@@ -46,6 +46,7 @@ class ReleaseHelper {
|
||||
virtual bool isRcsExposureDisabled() const = 0;
|
||||
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
|
||||
virtual std::vector<uint32_t> getSupportedNumGrfs() const = 0;
|
||||
virtual bool isBindlessAddressingDisabled() const = 0;
|
||||
|
||||
protected:
|
||||
ReleaseHelper(HardwareIpVersion hardwareIpVersion) : hardwareIpVersion(hardwareIpVersion) {}
|
||||
@@ -76,6 +77,7 @@ class ReleaseHelperHw : public ReleaseHelper {
|
||||
bool isRcsExposureDisabled() const override;
|
||||
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
|
||||
std::vector<uint32_t> getSupportedNumGrfs() const override;
|
||||
bool isBindlessAddressingDisabled() const override;
|
||||
|
||||
protected:
|
||||
ReleaseHelperHw(HardwareIpVersion hardwareIpVersion) : ReleaseHelper(hardwareIpVersion) {}
|
||||
|
||||
@@ -92,4 +92,9 @@ template <ReleaseType releaseType>
|
||||
std::vector<uint32_t> ReleaseHelperHw<releaseType>::getSupportedNumGrfs() const {
|
||||
return {128u, 256u};
|
||||
}
|
||||
|
||||
template <ReleaseType releaseType>
|
||||
bool ReleaseHelperHw<releaseType>::isBindlessAddressingDisabled() const {
|
||||
return true;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user