From d94e9af7947504aefc0117ff13965ae2123db47b Mon Sep 17 00:00:00 2001 From: Junyan He Date: Thu, 7 Apr 2016 15:04:56 +0800 Subject: user cb --- backend/src/driver/cl_gen_driver.hpp | 2 +- backend/src/driver/cl_gen_event.cpp | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 backend/src/driver/cl_gen_event.cpp (limited to 'backend') diff --git a/backend/src/driver/cl_gen_driver.hpp b/backend/src/driver/cl_gen_driver.hpp index b377b82d..689d74e6 100644 --- a/backend/src/driver/cl_gen_driver.hpp +++ b/backend/src/driver/cl_gen_driver.hpp @@ -252,7 +252,7 @@ struct GenGPUCommandQueue { bool inExec; list workItems; cl_uint cookie; - bool enqueueWorkItem(GenGPUWorkItem* item, bool withLock); + bool enqueueWorkItem(GenGPUWorkItem* item, bool withLock = false); void userEventChange(void); void waitOnEvent(GenGPUWorkItem* item); GenGPUCommandQueue(dri_bufmgr *bufmgr, drm_intel_context *ctx); diff --git a/backend/src/driver/cl_gen_event.cpp b/backend/src/driver/cl_gen_event.cpp new file mode 100644 index 00000000..09233654 --- /dev/null +++ b/backend/src/driver/cl_gen_event.cpp @@ -0,0 +1,34 @@ +/* + * Copyright © 2012 Intel Corporation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + * + */ + +#ifdef __cplusplus +extern "C" { // for the C header files +#endif /* __cplusplus */ +#include +#include +#include "cl_gen_driver.h" +#include "cl_event.h" +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#include "cl_gen_driver.hpp" +#include "sys/assert.hpp" +#include "sys/alloc.hpp" + + + -- cgit v1.2.3