Program surface state when debugging is enabled

- surface state for debugSurface should be set when
kernel is compiled for debug

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-01-30 20:02:47 +01:00
committed by Compute-Runtime-Automation
parent 5618d4dfa4
commit f7613a5827
4 changed files with 91 additions and 3 deletions

View File

@@ -723,7 +723,7 @@ void KernelImp::printPrintfOutput() {
void KernelImp::setDebugSurface() {
auto device = module->getDevice();
if (module->isDebugEnabled() && device->getNEODevice()->isDebuggerActive()) {
if (module->isDebugEnabled() && device->getNEODevice()->getDebugger()) {
auto surfaceStateHeapRef = ArrayRef<uint8_t>(surfaceStateHeapData.get(), surfaceStateHeapDataSize);