Enable transforming image 3d to image 2d array

Change-Id: I8fdc6899780481bdebeaf858a330e9dea822bda3
This commit is contained in:
Mateusz Jablonski
2018-03-27 14:30:05 +02:00
parent 0a97dfbb2f
commit 79a0e3253e
24 changed files with 867 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -69,6 +69,7 @@ struct KernelArgInfo {
uint32_t offsetBufferOffset = undefinedOffset;
bool needPatch = false;
bool isTransformable = false;
cl_kernel_arg_access_qualifier accessQualifier = CL_KERNEL_ARG_ACCESS_NONE;
cl_kernel_arg_address_qualifier addressQualifier = CL_KERNEL_ARG_ADDRESS_GLOBAL;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@ -303,6 +303,8 @@ void KernelInfo::storeKernelArgument(
kernelArgInfo[argNum].accessQualifier = pImageMemObjKernelArg->Writeable
? CL_KERNEL_ARG_ACCESS_READ_WRITE
: CL_KERNEL_ARG_ACCESS_READ_ONLY;
kernelArgInfo[argNum].isTransformable = pImageMemObjKernelArg->Transformable != 0;
patchInfo.imageMemObjKernelArgs.push_back(pImageMemObjKernelArg);
}