P4 to Git Change 1567789 by gandryey@gera-w8 on 2018/06/13 11:45:56

SWDEV-79445 - OCL generic changes and code clean-up
	Following CL#1567428. Fix "pass by reference" logic:
	- Make sure we add the offset to the struct location
	- Adjust assert condition

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#54 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#108 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#31 edit


[ROCm/clr commit: ec029f4a40]
Этот коммит содержится в:
foreman
2018-06-13 12:01:00 -04:00
родитель aa035d0fcd
Коммит 4e580ef2a0
3 изменённых файлов: 10 добавлений и 5 удалений
+2 -1
Просмотреть файл
@@ -295,7 +295,8 @@ KernelSignature::KernelSignature(const std::vector<KernelParameterDescriptor>& p
lastSize = alignUp(lastSize, sizeof(uint64_t));
}
paramsSize_ = params[last].offset_ + lastSize;
paramsSize_ = alignUp(paramsSize_, sizeof(intptr_t));
// 16 bytes is the current HW alignment for the arguments
paramsSize_ = alignUp(paramsSize_, 16);
}
}
} // namespace amd