diff options
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) |