Skip to content

Commit b533024

Browse files
fix: Ensure correct evaluation order in gfx_partition.cpp
Signed-off-by: Filip Hazubski <[email protected]>
1 parent f56eeb0 commit b533024

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shared/source/memory_manager/gfx_partition.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2023 Intel Corporation
2+
* Copyright (C) 2019-2024 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -280,7 +280,8 @@ bool GfxPartition::init(uint64_t gpuAddressSpace, size_t cpuAddressRangeSizeToRe
280280
if (useExternalFrontWindowPool && HeapAssigner::heapTypeExternalWithFrontWindowPool(heap)) {
281281
heapInitExternalWithFrontWindow(heap, gfxBase, gfxHeap32Size);
282282
size_t externalFrontWindowSize = GfxPartition::externalFrontWindowPoolSize;
283-
heapInitExternalWithFrontWindow(HeapAssigner::mapExternalWindowIndex(heap), heapAllocate(heap, externalFrontWindowSize),
283+
auto allocation = heapAllocate(heap, externalFrontWindowSize);
284+
heapInitExternalWithFrontWindow(HeapAssigner::mapExternalWindowIndex(heap), allocation,
284285
externalFrontWindowSize);
285286
} else if (HeapAssigner::isInternalHeap(heap)) {
286287
heapInitWithFrontWindow(heap, gfxBase, gfxHeap32Size, GfxPartition::internalFrontWindowPoolSize);

0 commit comments

Comments
 (0)