feature: add peer access check on driver init

Related-To: NEO-14885, HSD-14024947073

Signed-off-by: Alicja Lukaszewicz <alicja.lukaszewicz@intel.com>
This commit is contained in:
Alicja Lukaszewicz
2025-08-27 13:54:40 +00:00
committed by Compute-Runtime-Automation
parent 2e58669fe9
commit bca503548a
54 changed files with 486 additions and 86 deletions

View File

@@ -68,6 +68,7 @@ class ReleaseHelper {
virtual bool isBlitImageAllowedForDepthFormat() const = 0;
virtual bool isPostImageWriteFlushRequired() const = 0;
virtual uint32_t adjustMaxThreadsPerEuCount(uint32_t maxThreadsPerEuCount, uint32_t grfCount) const = 0;
virtual bool shouldQueryPeerAccess() const = 0;
protected:
ReleaseHelper(HardwareIpVersion hardwareIpVersion) : hardwareIpVersion(hardwareIpVersion) {}
@@ -115,6 +116,7 @@ class ReleaseHelperHw : public ReleaseHelper {
bool isBlitImageAllowedForDepthFormat() const override;
bool isPostImageWriteFlushRequired() const override;
uint32_t adjustMaxThreadsPerEuCount(uint32_t maxThreadsPerEuCount, uint32_t grfCount) const override;
bool shouldQueryPeerAccess() const override;
protected:
ReleaseHelperHw(HardwareIpVersion hardwareIpVersion) : ReleaseHelper(hardwareIpVersion) {}

View File

@@ -186,4 +186,8 @@ uint32_t ReleaseHelperHw<releaseType>::adjustMaxThreadsPerEuCount(uint32_t maxTh
return maxThreadsPerEuCount;
}
template <ReleaseType releaseType>
bool ReleaseHelperHw<releaseType>::shouldQueryPeerAccess() const {
return false;
}
} // namespace NEO