Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franco (nextime) Lanza
stitchEm
Commits
1484bb6b
Unverified
Commit
1484bb6b
authored
Mar 02, 2021
by
Wieland Morgenstern
Committed by
GitHub
Mar 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #115 from stitchEm/w-m/opencl-type-qualifier-not-allowed
Don't use const on image2d_t
parents
0f625df2
16d16d66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sphereSweep.gpu
lib/src/backend/common/coredepth/sphereSweep.gpu
+1
-1
downsampler.gpu
lib/src/backend/common/image/downsampler.gpu
+1
-1
No files found.
lib/src/backend/common/coredepth/sphereSweep.gpu
View file @
1484bb6b
...
@@ -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;
...
...
lib/src/backend/common/image/downsampler.gpu
View file @
1484bb6b
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment