Files
compute-runtime/runtime/sharings/va/va_surface.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

36 lines
1.0 KiB
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/mem_obj/image.h"
#include "runtime/sharings/va/va_sharing.h"
namespace NEO {
class Context;
class Image;
class VASurface : VASharing {
public:
static Image *createSharedVaSurface(Context *context, VASharingFunctions *sharingFunctions,
cl_mem_flags flags, VASurfaceID *surface, cl_uint plane,
cl_int *errcodeRet);
void synchronizeObject(UpdateData &updateData) override;
void getMemObjectInfo(size_t &paramValueSize, void *&paramValue) override;
protected:
VASurface(VASharingFunctions *sharingFunctions, VAImageID imageId,
cl_uint plane, VASurfaceID *surfaceId, bool interopUserSync)
: VASharing(sharingFunctions, imageId), plane(plane), surfaceId(surfaceId), interopUserSync(interopUserSync){};
cl_uint plane;
VASurfaceID *surfaceId;
bool interopUserSync;
};
} // namespace NEO