mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
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:
committed by
Compute-Runtime-Automation
parent
2a236d079c
commit
08c34968f8
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user