P4 to Git Change 2001950 by gandryey@gera-win10 on 2019/09/20 18:39:39

SWDEV-79445 - OCL generic changes and code clean-up
	- Fix LC path with 32bit binaries. Make sure sampler object has a check for 4 bytes.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#53 edit


[ROCm/clr commit: e2601e29e4]
This commit is contained in:
foreman
2019-09-20 18:52:46 -04:00
والد e81c22c9a3
کامیت a8bc66b8b7
@@ -1562,7 +1562,8 @@ RUNTIME_ENTRY(cl_int, clSetKernelArg,
}
}
if ((!is_local && (arg_size != desc.size_)) || (is_local && (arg_size == 0))) {
if (LP64_ONLY(true ||) (desc.type_ != T_POINTER) || (arg_size != sizeof(void*))) {
if (LP64_ONLY(true ||) ((desc.type_ != T_POINTER) && (desc.type_ != T_SAMPLER)) ||
(arg_size != sizeof(void*))) {
as_amd(kernel)->parameters().reset(static_cast<size_t>(arg_index));
return CL_INVALID_ARG_SIZE;
}