performance: allocate states vector together with command list

Allocating vector backing storage on stack makes it allocated
together with the whole command list object.
So no second use of heap for the state changes vector data.

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-04-28 14:47:52 +00:00
committed by Compute-Runtime-Automation
parent 9e44344419
commit 7b0283e810
3 changed files with 6 additions and 5 deletions

View File

@@ -50,7 +50,6 @@ CommandQueueImp::CommandQueueImp(Device *device, NEO::CommandStreamReceiver *csr
if (overrideUseKmdWaitFunction != -1) {
useKmdWaitFunction = !!(overrideUseKmdWaitFunction);
}
this->stateChanges.reserve(CommandQueueImp::defaultCommandListStateChangeListSize);
}
ze_result_t CommandQueueImp::destroy() {