mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Unify layout of command list class
Related-To: NEO-5055 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3e116ea378
commit
49def723b7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user