From 44284f8ce88258b49bc752e3c293ee8c0cfd827f Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Mon, 26 Jun 2023 16:07:55 +0200 Subject: [PATCH] [PATCH 2/4] rename opencl_image_type_to_index() to pocl_opencl_image_type_to_index() Gbp-Pq: Name 0002-rename-opencl_image_type_to_index-to-pocl_opencl_ima.patch --- lib/CL/clCreateImage.c | 2 +- lib/CL/clGetSupportedImageFormats.c | 2 +- lib/CL/devices/proxy/pocl_proxy.c | 2 +- lib/CL/pocl_image_util.c | 2 +- lib/CL/pocl_image_util.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/CL/clCreateImage.c b/lib/CL/clCreateImage.c index f32ec2b..f6266f9 100644 --- a/lib/CL/clCreateImage.c +++ b/lib/CL/clCreateImage.c @@ -64,7 +64,7 @@ pocl_create_image_internal (cl_context context, cl_mem_flags flags, " || 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"); diff --git a/lib/CL/clGetSupportedImageFormats.c b/lib/CL/clGetSupportedImageFormats.c index 6bd511f..4bfbcd4 100644 --- a/lib/CL/clGetSupportedImageFormats.c +++ b/lib/CL/clGetSupportedImageFormats.c @@ -39,7 +39,7 @@ CL_API_SUFFIX__VERSION_1_0 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"); diff --git a/lib/CL/devices/proxy/pocl_proxy.c b/lib/CL/devices/proxy/pocl_proxy.c index c9d7411..6551fef 100644 --- a/lib/CL/devices/proxy/pocl_proxy.c +++ b/lib/CL/devices/proxy/pocl_proxy.c @@ -598,7 +598,7 @@ pocl_proxy_get_device_info (cl_device_id device, proxy_device_data_t *d) 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; } diff --git a/lib/CL/pocl_image_util.c b/lib/CL/pocl_image_util.c index cd6b05c..d3c83e9 100644 --- a/lib/CL/pocl_image_util.c +++ b/lib/CL/pocl_image_util.c @@ -26,7 +26,7 @@ #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) { diff --git a/lib/CL/pocl_image_util.h b/lib/CL/pocl_image_util.h index 1d9d36e..046365e 100644 --- a/lib/CL/pocl_image_util.h +++ b/lib/CL/pocl_image_util.h @@ -33,7 +33,7 @@ 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, -- 2.30.2