mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
ad2d3d0289
commit
f226718fef
@ -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
|
||||
|
Reference in New Issue
Block a user