2020-02-10 15:57:49 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include <memory>
|
|
|
|
|
namespace NEO {
|
|
|
|
|
struct HardwareInfo;
|
2020-07-27 17:37:51 +02:00
|
|
|
class CommandContainer;
|
2020-07-23 10:56:08 +02:00
|
|
|
class IndirectHeap;
|
2020-07-27 17:37:51 +02:00
|
|
|
|
2020-02-10 15:57:49 +01:00
|
|
|
class Debugger {
|
|
|
|
|
public:
|
|
|
|
|
static std::unique_ptr<Debugger> create(HardwareInfo *hwInfo);
|
|
|
|
|
virtual ~Debugger() = default;
|
|
|
|
|
virtual bool isDebuggerActive() = 0;
|
2020-06-18 17:08:55 +02:00
|
|
|
bool isLegacy() const { return isLegacyMode; }
|
2020-07-27 17:37:51 +02:00
|
|
|
virtual void captureStateBaseAddress(CommandContainer &container) = 0;
|
2020-06-18 17:08:55 +02:00
|
|
|
|
2020-07-23 10:56:08 +02:00
|
|
|
void *getDebugSurfaceReservedSurfaceState(IndirectHeap &ssh);
|
|
|
|
|
|
2020-06-18 17:08:55 +02:00
|
|
|
protected:
|
|
|
|
|
bool isLegacyMode = true;
|
2020-02-10 15:57:49 +01:00
|
|
|
};
|
|
|
|
|
} // namespace NEO
|