Print execution buffer flags in hexadecimal format

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-02-02 04:30:36 +00:00
committed by Compute-Runtime-Automation
parent 13961eea3f
commit 97dba1eb00

View File

@@ -201,13 +201,13 @@ void BufferObject::printExecutionBuffer(drm_i915_gem_execbuffer2 &execbuf, const
logger << "Buffer Object = { handle: BO-" << execObjectsStorage[i].handle
<< ", address range: 0x" << (void *)execObjectsStorage[i].offset
<< " - 0x" << (void *)ptrOffset(execObjectsStorage[i].offset, residency[i]->peekSize())
<< ", flags: " << execObjectsStorage[i].flags
<< ", flags: " << std::hex << execObjectsStorage[i].flags << std::dec
<< ", size: " << residency[i]->peekSize() << " }\n";
}
logger << "Command Buffer Object = { handle: BO-" << execObjectsStorage[i].handle
<< ", address range: 0x" << (void *)execObjectsStorage[i].offset
<< " - 0x" << (void *)ptrOffset(execObjectsStorage[i].offset, this->peekSize())
<< ", flags: " << execObjectsStorage[i].flags
<< ", flags: " << std::hex << execObjectsStorage[i].flags << std::dec
<< ", size: " << this->peekSize() << " }\n";
std::cout << logger.str() << std::endl;