Do not use threadDims for indirect dispatches

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-03-08 12:57:45 +00:00
committed by Compute-Runtime-Automation
parent 4d5166b945
commit 66cff28002

View File

@@ -46,7 +46,7 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container,
auto threadDims = static_cast<const uint32_t *>(pThreadGroupDimensions);
const Vec3<size_t> threadStartVec{0, 0, 0};
Vec3<size_t> threadDimsVec{0, 0, 0};
if (threadDims != nullptr) {
if (!isIndirect) {
threadDimsVec = {threadDims[0], threadDims[1], threadDims[2]};
}
size_t estimatedSizeRequired = estimateEncodeDispatchKernelCmdsSize(device, threadStartVec, threadDimsVec);