Files
compute-runtime/runtime/sharings/gl/gl_sync_event.h
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00

35 lines
739 B
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/event/event.h"
#include <GL/gl.h>
struct _tagGLCLSyncInfo;
typedef _tagGLCLSyncInfo GL_CL_SYNC_INFO;
namespace NEO {
class Context;
class GlSyncEvent : public Event {
public:
GlSyncEvent() = delete;
GlSyncEvent(Context &context, const GL_CL_SYNC_INFO &sync);
~GlSyncEvent() override;
static GlSyncEvent *create(Context &context, cl_GLsync sync, cl_int *errCode);
void updateExecutionStatus() override;
uint32_t getTaskLevel() override;
bool isExternallySynchronized() const override { return true; }
protected:
std::unique_ptr<GL_CL_SYNC_INFO> glSync;
};
} // namespace NEO