From 02e28ed9755b807ab2737e4588ca15ff0f700fab Mon Sep 17 00:00:00 2001 From: foreman Date: Sun, 29 Apr 2018 14:59:10 -0400 Subject: [PATCH] P4 to Git Change 1547668 by lmoriche@lmoriche_opencl_dev2 on 2018/04/29 14:51:30 SWDEV-145570 - [HIP] - Set SVM pointer arguments by passing a reference to the value to match other T_POINTER arguments. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#24 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#25 edit --- opencl/api/opencl/amdocl/cl_svm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencl/api/opencl/amdocl/cl_svm.cpp b/opencl/api/opencl/amdocl/cl_svm.cpp index a0c3ecee5b..9703cf5953 100644 --- a/opencl/api/opencl/amdocl/cl_svm.cpp +++ b/opencl/api/opencl/amdocl/cl_svm.cpp @@ -928,7 +928,7 @@ RUNTIME_ENTRY(cl_int, clSetKernelArgSVMPointer, // -verifying system pointers (if supported) requires matching the pointer // against the address space of the current process. - as_amd(kernel)->parameters().set(static_cast(arg_index), sizeof(arg_value), arg_value, + as_amd(kernel)->parameters().set(static_cast(arg_index), sizeof(arg_value), &arg_value, true); return CL_SUCCESS; }