Do not detect pointers as buffers.

Change-Id: I43cf354ad7de9dd802759f7cf6fdb15bec679349
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2019-11-06 15:09:12 +01:00
parent 9b87eabadc
commit fb409e87fc
3 changed files with 4 additions and 1 deletions

View File

@@ -345,7 +345,7 @@ cl_int Kernel::initialize() {
kernelArgHandlers[i] = &Kernel::setArgSampler;
kernelArguments[i].type = SAMPLER_OBJ;
DEBUG_BREAK_IF(!(*argInfo.typeStr.c_str() == '\0' || argInfo.typeStr.find("sampler") != std::string::npos));
} else if ((argInfo.typeStr.find("*") != std::string::npos) || argInfo.isBuffer) {
} else if (argInfo.isBuffer) {
kernelArgHandlers[i] = &Kernel::setArgBuffer;
kernelArguments[i].type = BUFFER_OBJ;
usingBuffers = true;