Unverified Commit 1484bb6b authored by Wieland Morgenstern's avatar Wieland Morgenstern Committed by GitHub

Merge pull request #115 from stitchEm/w-m/opencl-type-qualifier-not-allowed

Don't use const on image2d_t
parents 0f625df2 16d16d66
...@@ -57,7 +57,7 @@ inline __device__ __host__ float clampf_vs(float v, float minVal, float maxVal) ...@@ -57,7 +57,7 @@ inline __device__ __host__ float clampf_vs(float v, float minVal, float maxVal)
// map scaled sphere to input // map scaled sphere to input
// return color // return color
template <int PATCH_SIZE> template <int PATCH_SIZE>
__device__ void mapInput(float4* values, bool* written, const read_only image2d_t texture, __device__ void mapInput(float4* values, bool* written, read_only image2d_t texture,
struct InputParams inputParams, const float3* onRigSphere, const bool debug) { struct InputParams inputParams, const float3* onRigSphere, const bool debug) {
for (int k = 0; k < PATCH_SIZE; ++k) { for (int k = 0; k < PATCH_SIZE; ++k) {
*written = false; *written = false;
......
...@@ -19,7 +19,7 @@ __global__ void downsampleMonoKernel(global_mem unsigned char* dst, const global ...@@ -19,7 +19,7 @@ __global__ void downsampleMonoKernel(global_mem unsigned char* dst, const global
} }
} }
__global__ void downsampleRGBASurfKernel(surface_t dst, const read_only image2d_t src, unsigned dstWidth, __global__ void downsampleRGBASurfKernel(surface_t dst, read_only image2d_t src, unsigned dstWidth,
unsigned dstHeight) { unsigned dstHeight) {
const unsigned x = get_global_id_x(); const unsigned x = get_global_id_x();
const unsigned y = get_global_id_y(); const unsigned y = get_global_id_y();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment