Add new field to PATCH_TOKEN_THREAD_PAYLOAD struct

Change-Id: If458d5a118113daf222975670244cb2b9e63ec27
This commit is contained in:
Zdanowicz, Zbigniew
2018-09-21 14:51:04 +02:00
committed by sys_ocldev
parent 4912f41759
commit 1346148d69
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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;