[Beignet] [PATCH 2/2] add unmap buffer for utests compiler_copy_buffer

Lu Guanqun guanqun.lu at intel.com
Thu Aug 22 19:18:50 PDT 2013


Signed-off-by: Lu Guanqun <guanqun.lu at intel.com>
---
 utests/compiler_copy_buffer.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/utests/compiler_copy_buffer.cpp b/utests/compiler_copy_buffer.cpp
index 8066efe..76c9d5d 100644
--- a/utests/compiler_copy_buffer.cpp
+++ b/utests/compiler_copy_buffer.cpp
@@ -26,6 +26,8 @@ static void compiler_copy_buffer(void)
   OCL_MAP_BUFFER(1);
   for (uint32_t i = 0; i < n; ++i)
     OCL_ASSERT(((uint32_t*)buf_data[0])[i] == ((uint32_t*)buf_data[1])[i]);
+  OCL_UNMAP_BUFFER(0);
+  OCL_UNMAP_BUFFER(1);
 }
 
 MAKE_UTEST_FROM_FUNCTION(compiler_copy_buffer);
-- 
1.7.9.5



More information about the Beignet mailing list