mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: add check if event L3 flush is needed
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b5127eb1ea
commit
4c795027e3
@@ -258,6 +258,7 @@ class ProductHelper {
|
||||
virtual uint32_t getNumCacheRegions() const = 0;
|
||||
virtual uint64_t getPatIndex(CacheRegion cacheRegion, CachePolicy cachePolicy) const = 0;
|
||||
virtual bool isSharingWith3dOrMediaAllowed() const = 0;
|
||||
virtual bool isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const = 0;
|
||||
virtual bool isImageSuitableForCompression() const = 0;
|
||||
|
||||
virtual ~ProductHelper() = default;
|
||||
|
||||
@@ -1005,6 +1005,11 @@ bool ProductHelperHw<gfxProduct>::isEvictionIfNecessaryFlagSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isImageSuitableForCompression() const {
|
||||
if (debugManager.flags.OverrideImageSuitableForRenderCompression.get() != -1) {
|
||||
|
||||
@@ -199,6 +199,7 @@ class ProductHelperHw : public ProductHelper {
|
||||
uint32_t getNumCacheRegions() const override;
|
||||
uint64_t getPatIndex(CacheRegion cacheRegion, CachePolicy cachePolicy) const override;
|
||||
bool isSharingWith3dOrMediaAllowed() const override;
|
||||
bool isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const override;
|
||||
bool isImageSuitableForCompression() const override;
|
||||
|
||||
~ProductHelperHw() override = default;
|
||||
|
||||
Reference in New Issue
Block a user