Remove "C" linkages (#781)

* Remove extern C linkages

* Update crc32 to cpp and remove extern C linkage
This commit is contained in:
Ankit Goyal
2020-05-20 18:46:19 +05:30
committed by GitHub
parent 223c43b7d9
commit 4fbcd96e7f
74 changed files with 140 additions and 440 deletions

View File

@@ -24,8 +24,6 @@
#include <CL/cl_gl.h>
#endif
extern "C" { extern cl_uint gRandomSeed; };
static const char *bufferKernelPattern =
"__kernel void sample_test( __global %s%s *source, __global %s%s *clDest, __global %s%s *glDest )\n"
"{\n"

View File

@@ -17,8 +17,6 @@
#include "gl_headers.h"
extern "C" { extern cl_uint gRandomSeed; }
static const char *imageReadKernelPattern =
"#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n" /* added support for half floats */
"__kernel void sample_test( read_only image2d_t source, sampler_t sampler, __global %s4 *results )\n"

View File

@@ -17,8 +17,6 @@
#include "gl_headers.h"
extern "C" {extern cl_uint gRandomSeed;};
static int test_image_read( cl_context context, cl_command_queue queue, GLenum glTarget, GLuint glTexture,
size_t imageWidth, size_t imageHeight, cl_image_format *outFormat,
ExplicitType *outType, void **outResultBuffer )

View File

@@ -17,8 +17,6 @@
#include "gl_headers.h"
extern "C" { extern cl_uint gRandomSeed; };
static const char *imageReadKernelPattern =
"__kernel void sample_test( read_only image3d_t source, sampler_t sampler, __global %s4 *results )\n"
"{\n"

View File

@@ -16,8 +16,6 @@
#include "gl_headers.h"
#include "testBase.h"
extern "C" {extern cl_uint gRandomSeed;};
static int test_image_read( cl_context context, cl_command_queue queue, GLenum glTarget, GLuint glTexture,
size_t imageWidth, size_t imageHeight, size_t imageDepth, cl_image_format *outFormat, ExplicitType *outType, void **outResultBuffer )
{

View File

@@ -18,8 +18,6 @@
#include "gl_headers.h"
extern "C" { extern cl_uint gRandomSeed; };
extern int test_cl_image_write( cl_context context, cl_command_queue queue, cl_mem clImage,
size_t imageWidth, size_t imageHeight, cl_image_format *outFormat,
ExplicitType *outType, void **outSourceBuffer, MTdata d );

View File

@@ -16,8 +16,6 @@
#include "gl_headers.h"
#include "testBase.h"
extern "C" {extern cl_uint gRandomSeed;};
static int test_renderbuffer_object_info( cl_context context, cl_command_queue queue,
GLsizei width, GLsizei height, GLenum attachment,
GLenum rbFormat, GLenum rbType,