summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/lib/shared/vload.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/lib/shared/vload.cl b/generic/lib/shared/vload.cl
index 1f266fa..24d8240 100644
--- a/generic/lib/shared/vload.cl
+++ b/generic/lib/shared/vload.cl
@@ -10,7 +10,7 @@
} \
\
_CLC_OVERLOAD _CLC_DEF PRIM_TYPE##4 vload4(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
- return (PRIM_TYPE##4)(vload2(offset, x), vload2(offset+2, x)); \
+ return (PRIM_TYPE##4)(x[offset], x[offset+1], x[offset+2], x[offset+3]); \
} \
\
_CLC_OVERLOAD _CLC_DEF PRIM_TYPE##8 vload8(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \