From a9885c5273adfca044a26c5861376af23a56f1ac Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 10 Nov 2016 11:02:24 -0500 Subject: [PATCH] P4 to Git Change 1339431 by gandryey@gera-w8 on 2016/11/10 10:47:43 SWDEV-86035 - Add PAL backend to OpenCL - Fix a regression after LC path integration Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#24 edit --- rocclr/runtime/device/pal/palkernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/pal/palkernel.cpp b/rocclr/runtime/device/pal/palkernel.cpp index 2f3d1c1eab..a2140f4fe7 100644 --- a/rocclr/runtime/device/pal/palkernel.cpp +++ b/rocclr/runtime/device/pal/palkernel.cpp @@ -1122,7 +1122,7 @@ HSAILKernel::loadArguments( cb->uploadDataToHw(arg->size_); // Then use a pointer in aqlArgBuffer to CB1 uint64_t gpuPtr = cb->vmAddress() + cb->wrtOffset(); - WriteAqlArg(&aqlArgBuf, &gpuPtr, arg->size_, arg->alignment_); + WriteAqlArg(&aqlArgBuf, &gpuPtr, sizeof(void*)); memList.push_back(cb); } else if (arg->type_ == HSAIL_ARGTYPE_VALUE) {