feature: add method to get command buffer gpu address of ending command

Related-To: NEO-15376

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2025-07-30 12:19:37 +00:00
committed by Compute-Runtime-Automation
parent 2a236d079c
commit 08c34968f8
3 changed files with 18 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ void CommandContainer::reset() {
nextIddInBlock = this->getNumIddPerBlock();
lastPipelineSelectModeRequired = false;
endCmdPtr = nullptr;
endCmdGpuAddress = 0;
alignedPrimarySize = 0;
}
@@ -380,6 +381,7 @@ void CommandContainer::alignPrimaryEnding(void *endPtr, size_t exactUsedSize) {
void CommandContainer::endAlignedPrimaryBuffer() {
this->endCmdPtr = commandStream->getSpace(0u);
this->endCmdGpuAddress = commandStream->getCurrentGpuAddressPosition();
alignPrimaryEnding(this->endCmdPtr, commandStream->getUsed());
}