diff options
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 52584167..d882fc7b 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -111,6 +111,17 @@ extern EGLSurface eglSurface; } \ } while (0) +#define OCL_MAP_BUFFER_GTT(ID) \ + OCL_CALL2(clMapBufferGTTIntel, buf_data[ID], buf[ID]) + +#define OCL_UNMAP_BUFFER_GTT(ID) \ + do { \ + if (buf[ID] != NULL) { \ + OCL_CALL (clUnmapBufferGTTIntel, buf[ID]); \ + buf_data[ID] = NULL; \ + } \ + } while (0) + #define OCL_NDRANGE(DIM_N) \ OCL_CALL (clEnqueueNDRangeKernel, queue, kernel, DIM_N, NULL, globals, locals, 0, NULL, NULL) |