2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-01-04 19:44:28 +08:00
|
|
|
* Copyright (C) 2017-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/built_ins/sip_kernel_type.h"
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2020-10-13 17:41:48 +08:00
|
|
|
#include "shared/source/program/program_info.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
#include <memory>
|
2020-12-02 18:22:27 +08:00
|
|
|
#include <vector>
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class Device;
|
2018-03-09 18:52:14 +08:00
|
|
|
class GraphicsAllocation;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class SipKernel {
|
|
|
|
public:
|
2020-12-02 18:22:27 +08:00
|
|
|
SipKernel(SipKernelType type, GraphicsAllocation *sipAlloc);
|
2017-12-21 07:45:38 +08:00
|
|
|
SipKernel(const SipKernel &) = delete;
|
|
|
|
SipKernel &operator=(const SipKernel &) = delete;
|
2020-10-13 17:41:48 +08:00
|
|
|
SipKernel(SipKernel &&) = delete;
|
|
|
|
SipKernel &operator=(SipKernel &&) = delete;
|
2019-12-03 22:57:45 +08:00
|
|
|
virtual ~SipKernel();
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-01-08 10:25:27 +08:00
|
|
|
SipKernelType getType() const {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2018-03-09 21:40:31 +08:00
|
|
|
static const size_t maxDbgSurfaceSize;
|
|
|
|
|
2019-12-03 22:57:45 +08:00
|
|
|
MOCKABLE_VIRTUAL GraphicsAllocation *getSipAllocation() const;
|
2018-04-06 20:25:22 +08:00
|
|
|
static SipKernelType getSipKernelType(GFXCORE_FAMILY family, bool debuggingActive);
|
2020-01-21 02:10:01 +08:00
|
|
|
static GraphicsAllocation *getSipKernelAllocation(Device &device);
|
2018-03-09 18:52:14 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
protected:
|
|
|
|
SipKernelType type = SipKernelType::COUNT;
|
2020-12-02 18:22:27 +08:00
|
|
|
GraphicsAllocation *sipAllocation = nullptr;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|