summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-04-07 15:04:56 +0800
committerJunyan He <junyan.he@intel.com>2016-04-07 15:04:56 +0800
commitd94e9af7947504aefc0117ff13965ae2123db47b (patch)
tree8358a85cbc7f98e80a1a50e70f1089906e82ed5d /backend
parentec81a026ed62ebd427daeae4ac723517e0a59916 (diff)
user cb
Diffstat (limited to 'backend')
-rw-r--r--backend/src/driver/cl_gen_driver.hpp2
-rw-r--r--backend/src/driver/cl_gen_event.cpp34
2 files changed, 35 insertions, 1 deletions
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<GenGPUWorkItem*> 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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifdef __cplusplus
+extern "C" { // for the C header files
+#endif /* __cplusplus */
+#include <unistd.h>
+#include <string.h>
+#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"
+
+
+