diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/src/driver/cl_gen_driver.hpp | 2 | ||||
-rw-r--r-- | backend/src/driver/cl_gen_event.cpp | 34 |
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" + + + |