Update functions to create buffer and image objects

Functions clCreateBufferWithPropertiesINTEL and
clCreateImageWithPropertiesINTEL now accept a parameter `cl_mem_flags flags`.

Change-Id: I71823457397c00f93aed236afaa0041936c4161d
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-09-28 12:41:24 +02:00
committed by sys_ocldev
parent 60430d79ee
commit 155578568b
7 changed files with 106 additions and 37 deletions

View File

@@ -126,6 +126,7 @@ cl_mem CL_API_CALL clCreateBuffer(
cl_mem CL_API_CALL clCreateBufferWithPropertiesINTEL(
cl_context context,
const cl_mem_properties_intel *properties,
cl_mem_flags flags,
size_t size,
void *hostPtr,
cl_int *errcodeRet);
@@ -148,6 +149,7 @@ cl_mem CL_API_CALL clCreateImage(
cl_mem CL_API_CALL clCreateImageWithPropertiesINTEL(
cl_context context,
const cl_mem_properties_intel *properties,
cl_mem_flags flags,
const cl_image_format *imageFormat,
const cl_image_desc *imageDesc,
void *hostPtr,