[Beignet] [PATCH] GBE: fix a memset typo.
Pan, Xiuli
xiuli.pan at intel.com
Tue Jun 21 01:50:59 UTC 2016
LGTM!
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Yang Rong
Sent: Monday, June 20, 2016 6:03 PM
To: beignet at lists.freedesktop.org
Cc: Yang, Rong R <rong.r.yang at intel.com>
Subject: [Beignet] [PATCH] GBE: fix a memset typo.
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
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list