P4 to Git Change 1567853 by gandryey@gera-ocl-lc on 2018/06/13 14:04:27
SWDEV-79445 - OCL generic changes and code clean-up - Following CL#1567428. Fix LC path. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#32 edit
This commit is contained in:
@@ -298,5 +298,15 @@ KernelSignature::KernelSignature(const std::vector<KernelParameterDescriptor>& p
|
||||
// 16 bytes is the current HW alignment for the arguments
|
||||
paramsSize_ = alignUp(paramsSize_, 16);
|
||||
}
|
||||
|
||||
if (hiddenParams.size() > 0) {
|
||||
uint32_t lastArg = hiddenParams.size() - 1;
|
||||
// Check if it's LC path and the hidden arguments are placed at the end
|
||||
if (hiddenParams[lastArg].offset_ >= paramsSize_) {
|
||||
paramsSize_ = hiddenParams[lastArg].offset_ + hiddenParams[lastArg].size_;
|
||||
// 16 bytes is the current HW alignment for the arguments
|
||||
paramsSize_ = alignUp(paramsSize_, 16);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace amd
|
||||
|
||||
Reference in New Issue
Block a user