diff options
author | Yang Rong <rong.r.yang@intel.com> | 2013-08-12 16:07:21 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-08-12 16:36:10 +0800 |
commit | ae6719600abb288762608671ad704325b2980712 (patch) | |
tree | a0ccba1b604a4e783f49698fc5e935725f565e07 /utests/utest_helper.hpp | |
parent | 645a3895a01501aea55b99e5c87e9a25519454c6 (diff) | |
download | beignet-ae6719600abb288762608671ad704325b2980712.tar.gz |
Add event unit test.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 03650403..e7f43fc8 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -1,4 +1,4 @@ -/* +/* * Copyright © 2012 Intel Corporation * * This library is free software; you can redistribute it and/or @@ -88,7 +88,13 @@ extern EGLSurface eglSurface; } while (0) #define OCL_CREATE_BUFFER(BUFFER, FLAGS, SIZE, DATA) \ - OCL_CALL2(clCreateBuffer, BUFFER, ctx, FLAGS, SIZE, DATA) + OCL_CALL2(clCreateBuffer, BUFFER, ctx, FLAGS, SIZE, DATA) + +#define OCL_CREATE_USER_EVENT(EVENT) \ + OCL_CALL2(clCreateUserEvent, EVENT, ctx) + +#define OCL_SET_USER_EVENT_STATUS(EVENT, STATUS) \ + OCL_CALL(clSetUserEventStatus, EVENT, STATUS) #define OCL_CREATE_IMAGE(IMAGE, FLAGS, FORMAT, DESC, DATA) \ OCL_CALL2(clCreateImage, IMAGE, ctx, FLAGS, FORMAT, DESC, DATA) |