" || image_desc->num_samples != 0 ");
image_type = image_desc->image_type;
- image_type_idx = opencl_image_type_to_index (image_type);
+ image_type_idx = pocl_opencl_image_type_to_index (image_type);
POCL_GOTO_ERROR_ON ((image_type_idx < 0),
CL_INVALID_VALUE, "unknown image type\n");
POCL_RETURN_ERROR_COND((num_entries == 0 && image_formats != NULL), CL_INVALID_VALUE);
- cl_int idx = opencl_image_type_to_index (image_type);
+ cl_int idx = pocl_opencl_image_type_to_index (image_type);
POCL_RETURN_ERROR_ON ((idx < 0), CL_INVALID_VALUE,
"invalid image type\n");
assert (err == CL_SUCCESS);
assert (retval == num_image_formats);
- int type_index = opencl_image_type_to_index (type);
+ int type_index = pocl_opencl_image_type_to_index (type);
device->image_formats[type_index] = formats;
device->num_image_formats[type_index] = num_image_formats;
}
#include "pocl_cl.h"
#include "pocl_util.h"
-cl_int opencl_image_type_to_index (cl_mem_object_type image_type)
+cl_int pocl_opencl_image_type_to_index (cl_mem_object_type image_type)
{
switch (image_type)
{
void origin_to_bytes (cl_mem mem, const size_t *origin, size_t *byte_offset);
POCL_EXPORT
-cl_int opencl_image_type_to_index (cl_mem_object_type image_type);
+cl_int pocl_opencl_image_type_to_index (cl_mem_object_type image_type);
extern cl_int
pocl_check_image_origin_region (const cl_mem image,