LGTM! -----Original Message----- From: Beignet [mailto:[email protected]] On Behalf Of Yang Rong Sent: Monday, June 20, 2016 6:03 PM To: [email protected] Cc: Yang, Rong R <[email protected]> Subject: [Beignet] [PATCH] GBE: fix a memset typo.
Signed-off-by: Yang Rong <[email protected]> --- 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/beignet
