refactor: reduce CommandList class size by changing vector types

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-12-06 19:10:29 +00:00
committed by Compute-Runtime-Automation
parent c8c3f862f4
commit dcf74e8d29
2 changed files with 5 additions and 2 deletions

View File

@@ -81,8 +81,8 @@ struct CommandList : _ze_command_list_handle_t {
void *pCommand = nullptr;
CommandType type = Invalid;
};
using CommandsToPatch = StackVec<CommandToPatch, 16>;
using CmdListReturnPoints = StackVec<CmdListReturnPoint, 32>;
using CommandsToPatch = std::vector<CommandToPatch>;
using CmdListReturnPoints = std::vector<CmdListReturnPoint>;
virtual ze_result_t close() = 0;
virtual ze_result_t destroy() = 0;

View File

@@ -37,6 +37,9 @@ CommandList::CommandList(uint32_t numIddsPerBlock) : commandContainer(numIddsPer
if (NEO::debugManager.flags.SplitBcsSize.get() != -1) {
this->minimalSizeForBcsSplit = NEO::debugManager.flags.SplitBcsSize.get() * MemoryConstants::kiloByte;
}
commandsToPatch.reserve(16);
returnPoints.reserve(32);
}
CommandListAllocatorFn commandListFactory[IGFX_MAX_PRODUCT] = {};