mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
performance: optimize copy in allocateDebugMetadata
Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
696be48cd4
commit
976d112188
@@ -30,7 +30,7 @@ void *IoctlHelperXe::allocateDebugMetadata() {
|
||||
drm_xe_ext_vm_set_debug_metadata *prev = nullptr;
|
||||
drm_xe_ext_vm_set_debug_metadata *xeMetadataRoot = nullptr;
|
||||
|
||||
for (auto metadata : debugMetadata) {
|
||||
for (auto &metadata : debugMetadata) {
|
||||
auto *xeMetadata = new drm_xe_ext_vm_set_debug_metadata();
|
||||
if (!xeMetadataRoot) {
|
||||
xeMetadataRoot = xeMetadata;
|
||||
|
||||
Reference in New Issue
Block a user