Unify layout of command list class

Related-To: NEO-5055

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-03-06 20:33:50 +00:00
committed by Compute-Runtime-Automation
parent 3e116ea378
commit 49def723b7
47 changed files with 926 additions and 767 deletions

View File

@@ -334,7 +334,7 @@ bool MetricsLibrary::getGpuCommands(CommandList &commandList,
}
// Allocate command buffer.
auto stream = commandList.commandContainer.getCommandStream();
auto stream = commandList.getCmdContainer().getCommandStream();
auto buffer = stream->getSpace(commandBuffer.Size);
// Fill attached command buffer with gpu commands.
@@ -793,7 +793,7 @@ ze_result_t OaMetricQueryImp::writeMetricQuery(CommandList &commandList, ze_even
const size_t metricQueriesSize = metricQueries.size();
// Make gpu allocation visible.
commandList.commandContainer.addToResidencyContainer(pool.pAllocation);
commandList.getCmdContainer().addToResidencyContainer(pool.pAllocation);
// Wait for events before executing query.
commandList.appendWaitOnEvents(numWaitEvents, phWaitEvents, false, true);
@@ -839,7 +839,7 @@ ze_result_t OaMetricQueryImp::writeMetricQuery(CommandList &commandList, ze_even
// Allocate command buffer only once.
if (buffer == nullptr) {
auto stream = commandList.commandContainer.getCommandStream();
auto stream = commandList.getCmdContainer().getCommandStream();
buffer = stream->getSpace(commandBuffer.Size);
}

View File

@@ -39,7 +39,7 @@ bool OaMetricSourceImp::isAvailable() {
}
ze_result_t OaMetricSourceImp::appendMetricMemoryBarrier(CommandList &commandList) {
DeviceImp *pDeviceImp = static_cast<DeviceImp *>(commandList.device);
DeviceImp *pDeviceImp = static_cast<DeviceImp *>(commandList.getDevice());
if (pDeviceImp->metricContext->isImplicitScalingCapable()) {
// Use one of the sub-device contexts to append to command list.

View File

@@ -341,7 +341,7 @@ ze_result_t OaMetricGroupImp::streamerOpen(
ze_result_t OaMetricStreamerImp::appendStreamerMarker(CommandList &commandList, uint32_t value) {
DeviceImp *pDeviceImp = static_cast<DeviceImp *>(commandList.device);
DeviceImp *pDeviceImp = static_cast<DeviceImp *>(commandList.getDevice());
if (pDeviceImp->metricContext->isImplicitScalingCapable()) {
// Use one of the sub-device contexts to append to command list.