Files
compute-runtime/opencl/source/gtpin/gtpin_hw_helper.h
Compute-Runtime-Validation 1dede48469 Revert "Add GTPin feature to allocate buffer in shared memory"
This reverts commit 255e85c124.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-04-03 20:28:11 +02:00

40 lines
879 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "hw_cmds.h"
namespace NEO {
class Kernel;
class GTPinHwHelper {
public:
static GTPinHwHelper &get(GFXCORE_FAMILY gfxCore);
virtual uint32_t getGenVersion() = 0;
virtual bool addSurfaceState(Kernel *pKernel) = 0;
virtual void *getSurfaceState(Kernel *pKernel, size_t bti) = 0;
protected:
GTPinHwHelper(){};
};
template <typename GfxFamily>
class GTPinHwHelperHw : public GTPinHwHelper {
public:
static GTPinHwHelper &get() {
static GTPinHwHelperHw<GfxFamily> gtpinHwHelper;
return gtpinHwHelper;
}
uint32_t getGenVersion() override;
bool addSurfaceState(Kernel *pKernel) override;
void *getSurfaceState(Kernel *pKernel, size_t bti) override;
private:
GTPinHwHelperHw(){};
};
} // namespace NEO