mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: reduce CommandList class size by changing vector types
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c8c3f862f4
commit
dcf74e8d29
@@ -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;
|
||||
|
||||
@@ -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] = {};
|
||||
|
||||
Reference in New Issue
Block a user