From 1346148d69037ef6c0a4d3278c5a9a88a4eb6bdd Mon Sep 17 00:00:00 2001 From: "Zdanowicz, Zbigniew" Date: Fri, 21 Sep 2018 14:51:04 +0200 Subject: [PATCH] Add new field to PATCH_TOKEN_THREAD_PAYLOAD struct Change-Id: If458d5a118113daf222975670244cb2b9e63ec27 --- runtime/program/process_gen_binary.cpp | 3 ++- unit_tests/program/kernel_data.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/program/process_gen_binary.cpp b/runtime/program/process_gen_binary.cpp index 6d2a937e49..1818f57e0d 100644 --- a/runtime/program/process_gen_binary.cpp +++ b/runtime/program/process_gen_binary.cpp @@ -488,7 +488,8 @@ cl_int Program::parsePatchList(KernelInfo &kernelInfo) { "\n .UnusedPerThreadConstantPresent", kernelInfo.patchInfo.threadPayload->UnusedPerThreadConstantPresent, "\n .GetLocalIDPresent", kernelInfo.patchInfo.threadPayload->GetLocalIDPresent, "\n .GetGroupIDPresent", kernelInfo.patchInfo.threadPayload->GetGroupIDPresent, - "\n .GetGlobalOffsetPresent", kernelInfo.patchInfo.threadPayload->GetGlobalOffsetPresent); + "\n .GetGlobalOffsetPresent", kernelInfo.patchInfo.threadPayload->GetGlobalOffsetPresent, + "\n .OffsetToSkipPerThreadDataLoad", kernelInfo.patchInfo.threadPayload->OffsetToSkipPerThreadDataLoad); break; case PATCH_TOKEN_EXECUTION_ENVIRONMENT: diff --git a/unit_tests/program/kernel_data.cpp b/unit_tests/program/kernel_data.cpp index 3b99fe633a..d6ee4c2751 100644 --- a/unit_tests/program/kernel_data.cpp +++ b/unit_tests/program/kernel_data.cpp @@ -238,6 +238,7 @@ TEST_F(KernelDataTest, ThreadPayload) { threadPayload.LocalIDXPresent = true; threadPayload.LocalIDYPresent = true; threadPayload.LocalIDZPresent = true; + threadPayload.OffsetToSkipPerThreadDataLoad = true; pPatchList = &threadPayload; patchListSize = threadPayload.Size;