Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Adjust width access
Browse files Browse the repository at this point in the history
Change-Id: I0ca42cbf80e8d149b1fe41febbc92525c21d682a
  • Loading branch information
b-sumner committed Mar 29, 2019
1 parent ae81146 commit 8457aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ockl/src/image.cl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
} while (0)

#define ADJUST_XY(C,I,S) do { \
float _w = (float)(FIELD(I,64,14) + 1U); \
float _w = (float)WORD(I,10); \
float _h = (float)(FIELD(I,78,14) + 1U); \
bool _f = FIELD(S,15,1); \
float _p = _f ? 1.0f : _w; \
Expand All @@ -44,7 +44,7 @@
} while (0)

#define ADJUST_XYZ(C,I,S) do { \
float _w = (float)(FIELD(I,64,14) + 1U); \
float _w = (float)WORD(I,10); \
float _h = (float)(FIELD(I,78,14) + 1U); \
float _d = (float)(FIELD(I, 128, 13) + 1U); \
bool _f = FIELD(S,15,1); \
Expand Down

0 comments on commit 8457aa2

Please sign in to comment.