47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
/*
|
|
* Copyright (C) 2017-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/built_ins/sip_kernel_type.h"
|
|
#include "shared/source/helpers/hw_info.h"
|
|
#include "shared/source/program/program_info.h"
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
namespace NEO {
|
|
|
|
class Device;
|
|
class GraphicsAllocation;
|
|
|
|
class SipKernel {
|
|
public:
|
|
SipKernel(SipKernelType type, GraphicsAllocation *sipAlloc, std::vector<char> ssah);
|
|
SipKernel(const SipKernel &) = delete;
|
|
SipKernel &operator=(const SipKernel &) = delete;
|
|
SipKernel(SipKernel &&) = delete;
|
|
SipKernel &operator=(SipKernel &&) = delete;
|
|
virtual ~SipKernel();
|
|
|
|
SipKernelType getType() const {
|
|
return type;
|
|
}
|
|
|
|
static const size_t maxDbgSurfaceSize;
|
|
|
|
MOCKABLE_VIRTUAL GraphicsAllocation *getSipAllocation() const;
|
|
MOCKABLE_VIRTUAL const std::vector<char> &getStateSaveAreaHeader() const;
|
|
static SipKernelType getSipKernelType(GFXCORE_FAMILY family, bool debuggingActive);
|
|
static GraphicsAllocation *getSipKernelAllocation(Device &device);
|
|
static const std::vector<char> &getSipStateSaveAreaHeader(Device &device);
|
|
|
|
protected:
|
|
SipKernelType type = SipKernelType::COUNT;
|
|
GraphicsAllocation *sipAllocation = nullptr;
|
|
const std::vector<char> stateSaveAreaHeader;
|
|
};
|
|
} // namespace NEO
|