Enable task count update from wait

Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2022-03-25 13:00:53 +00:00
committed by Compute-Runtime-Automation
parent 022eb054e6
commit d77a6cbe4b
14 changed files with 116 additions and 52 deletions

View File

@@ -64,6 +64,7 @@ class HwHelper {
static bool cacheFlushAfterWalkerSupported(const HardwareInfo &hwInfo);
virtual bool timestampPacketWriteSupported() const = 0;
virtual bool isTimestampWaitSupported() const = 0;
virtual bool isUpdateTaskCountFromWaitSupported() const = 0;
virtual size_t getRenderSurfaceStateSize() const = 0;
virtual void setRenderSurfaceStateForBuffer(const RootDeviceEnvironment &rootDeviceEnvironment,
void *surfaceStateBuffer,
@@ -248,6 +249,8 @@ class HwHelperHw : public HwHelper {
bool isTimestampWaitSupported() const override;
bool isUpdateTaskCountFromWaitSupported() const override;
bool is1MbAlignmentSupported(const HardwareInfo &hwInfo, bool isCompressionEnabled) const override;
bool isFenceAllocationRequired(const HardwareInfo &hwInfo) const override;

View File

@@ -45,6 +45,11 @@ bool HwHelperHw<GfxFamily>::isTimestampWaitSupported() const {
return false;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isUpdateTaskCountFromWaitSupported() const {
return false;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isAssignEngineRoundRobinSupported() const {
return false;

View File

@@ -41,6 +41,11 @@ bool HwHelperHw<Family>::isTimestampWaitSupported() const {
return true;
}
template <>
bool HwHelperHw<Family>::isUpdateTaskCountFromWaitSupported() const {
return true;
}
template <>
uint32_t HwHelperHw<Family>::adjustMaxWorkGroupCount(uint32_t maxWorkGroupCount, const EngineGroupType engineGroupType,
const HardwareInfo &hwInfo, bool isEngineInstanced) const {

View File

@@ -60,6 +60,11 @@ bool HwHelperHw<GfxFamily>::isTimestampWaitSupported() const {
return false;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isUpdateTaskCountFromWaitSupported() const {
return false;
}
template <typename GfxFamily>
const EngineInstancesContainer HwHelperHw<GfxFamily>::getGpgpuEngineInstances(const HardwareInfo &hwInfo) const {
auto defaultEngine = getChosenEngineType(hwInfo);