mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
performance: non-usm copy through staging buffers
Related-To: NEO-11501 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
659075ffe5
commit
29e3eb512c
@@ -237,6 +237,7 @@ class ProductHelper {
|
||||
virtual size_t getMaxFillPaternSizeForCopyEngine() const = 0;
|
||||
virtual bool isAvailableExtendedScratch() const = 0;
|
||||
virtual std::optional<bool> isCoherentAllocation(uint64_t patIndex) const = 0;
|
||||
virtual bool isStagingBuffersEnabled() const = 0;
|
||||
|
||||
virtual ~ProductHelper() = default;
|
||||
|
||||
|
||||
@@ -897,4 +897,10 @@ template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isAvailableExtendedScratch() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isStagingBuffersEnabled() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -182,6 +182,7 @@ class ProductHelperHw : public ProductHelper {
|
||||
size_t getMaxFillPaternSizeForCopyEngine() const override;
|
||||
bool isAvailableExtendedScratch() const override;
|
||||
std::optional<bool> isCoherentAllocation(uint64_t patIndex) const override;
|
||||
bool isStagingBuffersEnabled() const override;
|
||||
|
||||
~ProductHelperHw() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user