mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: unify local dispatch size query
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fea50b1b94
commit
67581f57a4
@@ -237,6 +237,7 @@ class ProductHelper {
|
||||
virtual bool isNewCoherencyModelSupported() const = 0;
|
||||
virtual bool deferMOCSToPatIndex() const = 0;
|
||||
virtual const std::vector<uint32_t> getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const = 0;
|
||||
virtual bool localDispatchSizeQuerySupported() const = 0;
|
||||
virtual bool supportReadOnlyAllocations() const = 0;
|
||||
virtual bool isDeviceToHostCopySignalingFenceRequired() const = 0;
|
||||
virtual size_t getMaxFillPaternSizeForCopyEngine() const = 0;
|
||||
|
||||
@@ -897,8 +897,8 @@ bool ProductHelperHw<gfxProduct>::supportReadOnlyAllocations() const {
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
|
||||
return {};
|
||||
bool ProductHelperHw<gfxProduct>::localDispatchSizeQuerySupported() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
|
||||
@@ -180,6 +180,7 @@ class ProductHelperHw : public ProductHelper {
|
||||
bool deferMOCSToPatIndex() const override;
|
||||
bool supportReadOnlyAllocations() const override;
|
||||
const std::vector<uint32_t> getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const override;
|
||||
bool localDispatchSizeQuerySupported() const override;
|
||||
bool isDeviceToHostCopySignalingFenceRequired() const override;
|
||||
size_t getMaxFillPaternSizeForCopyEngine() const override;
|
||||
bool isAvailableExtendedScratch() const override;
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
|
||||
return {};
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
uint64_t ProductHelperHw<gfxProduct>::getHostMemCapabilitiesValue() const {
|
||||
return (UnifiedSharedMemoryFlags::access | UnifiedSharedMemoryFlags::atomicAccess);
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
#include "shared/source/os_interface/product_helper.h"
|
||||
namespace NEO {
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes(const HardwareInfo &hwInfo) const {
|
||||
return {};
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
uint64_t ProductHelperHw<gfxProduct>::getHostMemCapabilitiesValue() const {
|
||||
return (UnifiedSharedMemoryFlags::access);
|
||||
|
||||
Reference in New Issue
Block a user