mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
refactor: reorder members to reduce internal padding in structs
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9b715c3ffc
commit
78a4a92b44
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -16,14 +16,18 @@ namespace NEO {
|
||||
struct StorageInfo {
|
||||
StorageInfo();
|
||||
uint32_t getNumBanks() const;
|
||||
uint32_t getMemoryBanks() const { return static_cast<uint32_t>(memoryBanks.to_ulong()); }
|
||||
uint32_t getTotalBanksCnt() const;
|
||||
|
||||
size_t colouringGranularity = MemoryConstants::pageSize64k;
|
||||
DeviceBitfield memoryBanks{};
|
||||
DeviceBitfield pageTablesVisibility{};
|
||||
DeviceBitfield subDeviceBitfield{};
|
||||
ColouringPolicy colouringPolicy = ColouringPolicy::deviceCountBased;
|
||||
uint32_t numOfChunks = 0;
|
||||
bool cloningOfPageTables = true;
|
||||
bool tileInstanced = false;
|
||||
bool multiStorage = false;
|
||||
ColouringPolicy colouringPolicy = ColouringPolicy::deviceCountBased;
|
||||
size_t colouringGranularity = MemoryConstants::pageSize64k;
|
||||
bool readOnlyMultiStorage = false;
|
||||
bool cpuVisibleSegment = false;
|
||||
bool isLockable = false;
|
||||
@@ -31,9 +35,6 @@ struct StorageInfo {
|
||||
bool systemMemoryPlacement = true;
|
||||
bool systemMemoryForced = false;
|
||||
char resourceTag[AppResourceDefines::maxStrLen + 1] = "";
|
||||
uint32_t getMemoryBanks() const { return static_cast<uint32_t>(memoryBanks.to_ulong()); }
|
||||
uint32_t getTotalBanksCnt() const;
|
||||
bool isChunked = false;
|
||||
uint32_t numOfChunks = 0;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user