feature: initial support for local dispatch size query
Related-To: NEO-8070 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
parent
4123854b55
commit
923707a509
|
@ -222,6 +222,7 @@ class ProductHelper {
|
||||||
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
|
virtual std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const = 0;
|
||||||
virtual bool isCachingOnCpuAvailable() const = 0;
|
virtual bool isCachingOnCpuAvailable() const = 0;
|
||||||
virtual bool isNewCoherencyModelSupported() const = 0;
|
virtual bool isNewCoherencyModelSupported() const = 0;
|
||||||
|
virtual const std::vector<uint32_t> getSupportedLocalDispatchSizes() const = 0;
|
||||||
|
|
||||||
virtual ~ProductHelper() = default;
|
virtual ~ProductHelper() = default;
|
||||||
|
|
||||||
|
|
|
@ -868,4 +868,9 @@ template <PRODUCT_FAMILY gfxProduct>
|
||||||
bool ProductHelperHw<gfxProduct>::isNewCoherencyModelSupported() const {
|
bool ProductHelperHw<gfxProduct>::isNewCoherencyModelSupported() const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <PRODUCT_FAMILY gfxProduct>
|
||||||
|
const std::vector<uint32_t> ProductHelperHw<gfxProduct>::getSupportedLocalDispatchSizes() const {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
} // namespace NEO
|
} // namespace NEO
|
||||||
|
|
|
@ -169,6 +169,7 @@ class ProductHelperHw : public ProductHelper {
|
||||||
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
|
std::optional<GfxMemoryAllocationMethod> getPreferredAllocationMethod(AllocationType allocationType) const override;
|
||||||
bool isCachingOnCpuAvailable() const override;
|
bool isCachingOnCpuAvailable() const override;
|
||||||
bool isNewCoherencyModelSupported() const override;
|
bool isNewCoherencyModelSupported() const override;
|
||||||
|
const std::vector<uint32_t> getSupportedLocalDispatchSizes() const override;
|
||||||
|
|
||||||
~ProductHelperHw() override = default;
|
~ProductHelperHw() override = default;
|
||||||
|
|
||||||
|
|
|
@ -876,3 +876,7 @@ HWTEST_F(ProductHelperTest, whenGettingPreferredAllocationMethodThenNoPreference
|
||||||
EXPECT_FALSE(preferredAllocationMethod.has_value());
|
EXPECT_FALSE(preferredAllocationMethod.has_value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HWTEST_F(ProductHelperTest, whenAskingForLocalDispatchSizeThenReturnEmpty) {
|
||||||
|
EXPECT_EQ(0u, productHelper->getSupportedLocalDispatchSizes().size());
|
||||||
|
}
|
Loading…
Reference in New Issue