| 1 |
/* |
| 2 |
* Copyright (C) 2018-2021 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
#include "opencl/source/api/cl_types.h" |
| 10 |
#include "opencl/source/sharings/sharing.h" |
| 11 |
#include "opencl/source/sharings/va/va_sharing_defines.h" |
| 12 |
#include "opencl/source/sharings/va/va_sharing_functions.h" |
| 13 |
|
| 14 |
namespace NEO { |
| 15 |
class VASharing : public SharingHandler { |
| 16 |
public: |
| 17 |
VASharing(VASharingFunctions *sharingFunctions, VAImageID imageId) |
| 18 |
: sharingFunctions(sharingFunctions), imageId(imageId){}; |
| 19 |
VASharingFunctions *peekFunctionsHandler() { return sharingFunctions; } |
| 20 |
|
| 21 |
protected: |
| 22 |
VASharingFunctions *sharingFunctions = nullptr; |
| 23 |
VAImageID imageId; |
| 24 |
}; |
| 25 |
} // namespace NEO |