mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Related-To: NEO-4637 Change-Id: Ia4b187df5f28fadf032ff24acb7ab32b05d0d261 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
28 lines
627 B
C++
28 lines
627 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <memory>
|
|
namespace NEO {
|
|
struct HardwareInfo;
|
|
class CommandContainer;
|
|
class IndirectHeap;
|
|
|
|
class Debugger {
|
|
public:
|
|
static std::unique_ptr<Debugger> create(HardwareInfo *hwInfo);
|
|
virtual ~Debugger() = default;
|
|
virtual bool isDebuggerActive() = 0;
|
|
bool isLegacy() const { return isLegacyMode; }
|
|
virtual void captureStateBaseAddress(CommandContainer &container) = 0;
|
|
|
|
void *getDebugSurfaceReservedSurfaceState(IndirectHeap &ssh);
|
|
|
|
protected:
|
|
bool isLegacyMode = true;
|
|
};
|
|
} // namespace NEO
|