From 22bd466daf5fd6fed525167ff1f5225959263402 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 17 May 2019 18:08:20 -0400
Subject: [PATCH] P4 to Git Change 1784838 by gandryey@gera-win10 on 2019/05/17
17:36:58
SWDEV-189453 - [Navi10][OpenCl][x32][Converter] Process hang
- Use the argument size from the caller. With LC path and 32 bit the both sizes are different and runtime has to use the caller's size, which matches the host bitness, because the optimized path updates 32 bit values only.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#30 edit
---
rocclr/runtime/device/pal/palblit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/pal/palblit.cpp b/rocclr/runtime/device/pal/palblit.cpp
index 4370f46317..1d960a286f 100644
--- a/rocclr/runtime/device/pal/palblit.cpp
+++ b/rocclr/runtime/device/pal/palblit.cpp
@@ -952,7 +952,7 @@ static void setArgument(amd::Kernel* kernel, size_t index, size_t size, const vo
uint32_t uint32_value = 0;
uint64_t uint64_value = 0;
- size_t argSize = desc.size_;
+ size_t argSize = size;
if (desc.type_ == T_POINTER && (desc.addressQualifier_ != CL_KERNEL_ARG_ADDRESS_LOCAL)) {
if ((value == NULL) || (static_cast(value) == NULL)) {