[Beignet] [PATCH] GBE: fix a memset typo.
Yang Rong
rong.r.yang at intel.com
Mon Jun 20 10:02:50 UTC 2016
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
backend/src/libocl/src/ocl_memset.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/libocl/src/ocl_memset.cl b/backend/src/libocl/src/ocl_memset.cl
index b41851a..d8bc5df 100644
--- a/backend/src/libocl/src/ocl_memset.cl
+++ b/backend/src/libocl/src/ocl_memset.cl
@@ -21,7 +21,7 @@
void __gen_memset_ ##NAME## _align (DST_SPACE uchar* dst, uchar val, size_t size) { \
size_t index = 0; \
uint v = (val << 24) | (val << 16) | (val << 8) | val; \
- while((index + 4) >= size) { \
+ while((index + 4) <= size) { \
*((DST_SPACE uint *)(dst + index)) = v; \
index += 4; \
} \
--
2.1.4
More information about the Beignet
mailing list