mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
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:
committed by
Compute-Runtime-Automation
parent
2e58669fe9
commit
bca503548a
@@ -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) {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user