mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Setup surface state for debugSurface at offset zero
Related-To: NEO-4767 Change-Id: I5be24712795f18865037ea5d3b42604579027969 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
05990b628b
commit
5de52badbe
@@ -10,6 +10,7 @@
|
||||
#include "shared/source/built_ins/sip.h"
|
||||
#include "shared/source/built_ins/sip_kernel_type.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/indirect_heap/indirect_heap.h"
|
||||
#include "shared/source/source_level_debugger/source_level_debugger.h"
|
||||
|
||||
namespace NEO {
|
||||
@@ -24,4 +25,8 @@ std::unique_ptr<Debugger> Debugger::create(HardwareInfo *hwInfo) {
|
||||
}
|
||||
return sourceLevelDebugger;
|
||||
}
|
||||
|
||||
void *Debugger::getDebugSurfaceReservedSurfaceState(IndirectHeap &ssh) {
|
||||
return ssh.getCpuBase();
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <memory>
|
||||
namespace NEO {
|
||||
struct HardwareInfo;
|
||||
class IndirectHeap;
|
||||
class Debugger {
|
||||
public:
|
||||
static std::unique_ptr<Debugger> create(HardwareInfo *hwInfo);
|
||||
@@ -16,6 +17,8 @@ class Debugger {
|
||||
virtual bool isDebuggerActive() = 0;
|
||||
bool isLegacy() const { return isLegacyMode; }
|
||||
|
||||
void *getDebugSurfaceReservedSurfaceState(IndirectHeap &ssh);
|
||||
|
||||
protected:
|
||||
bool isLegacyMode = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user