refactor: add check if event L3 flush is needed

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-03-05 15:46:03 +00:00
committed by Compute-Runtime-Automation
parent b5127eb1ea
commit 4c795027e3
25 changed files with 92 additions and 21 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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;