Revert "Remove test API to disable overdispatch"

This reverts commit 3b92cef7a1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-10-05 23:04:48 +02:00
committed by Compute-Runtime-Automation
parent ad2d3d0289
commit f226718fef
8 changed files with 174 additions and 0 deletions

View File

@ -2260,4 +2260,21 @@ bool Kernel::graphicsAllocationTypeUseSystemMemory(AllocationType type) {
(type == AllocationType::SVM_ZERO_COPY);
}
int32_t Kernel::setOverdispatchParam(size_t paramValueSize, const void *paramValue) {
auto &hwInfo = clDevice.getHardwareInfo();
const auto &hwInfoConfig = *HwInfoConfig::get(hwInfo.platform.eProductFamily);
if (!hwInfoConfig.isDisableOverdispatchAvailable(hwInfo)) {
return CL_INVALID_VALUE;
}
if (*static_cast<const cl_bool *>(paramValue) == CL_TRUE) {
additionalKernelExecInfo = AdditionalKernelExecInfo::NotSet;
return CL_SUCCESS;
}
additionalKernelExecInfo = AdditionalKernelExecInfo::DisableOverdispatch;
return CL_SUCCESS;
}
} // namespace NEO