fix: restore previous order of variables

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
Resolves: NEO-10439
This commit is contained in:
Michal Mrozek
2024-02-19 12:53:01 +01:00
committed by Compute-Runtime-Automation
parent f31c88d05f
commit 27f4eab52f
2 changed files with 16 additions and 15 deletions

View File

@@ -81,7 +81,7 @@ BufferObject::BufferObject(uint32_t rootDeviceIndex, Drm *drm, uint64_t patIndex
: BufferObject(rootDeviceIndex, drm, patIndex, BufferObjectHandleWrapper{handle}, size, maxOsContextCount) {}
BufferObject::BufferObject(uint32_t rootDeviceIndex, Drm *drm, uint64_t patIndex, BufferObjectHandleWrapper &&handle, size_t size, size_t maxOsContextCount)
: drm(drm), size(size), handle(std::move(handle)), refCount(1), rootDeviceIndex(rootDeviceIndex) {
: drm(drm), refCount(1), rootDeviceIndex(rootDeviceIndex), handle(std::move(handle)), size(size) {
auto ioctlHelper = drm->getIoctlHelper();
this->tilingMode = ioctlHelper->getDrmParamValue(DrmParam::tilingNone);

View File

@@ -227,31 +227,32 @@ class BufferObject {
void printBOBindingResult(OsContext *osContext, uint32_t vmHandleId, bool bind, int retVal);
Drm *drm = nullptr;
uint64_t size;
uint64_t unmapSize = 0;
uint64_t patIndex = CommonConstants::unsupportedPatIndex;
void *lockedAddress; // CPU side virtual address
size_t colourChunk = 0;
BufferObjectHandleWrapper handle; // i915 gem object handle
StackVec<uint32_t, 2> bindExtHandles;
std::vector<uint64_t> bindAddresses;
bool perContextVmsUsed = false;
std::atomic<uint32_t> refCount;
uint32_t rootDeviceIndex = std::numeric_limits<uint32_t>::max();
uint32_t tilingMode;
BufferObjectHandleWrapper handle; // i915 gem object handle
BOType boType = BOType::legacy;
CacheRegion cacheRegion = CacheRegion::defaultRegion;
CachePolicy cachePolicy = CachePolicy::writeBack;
bool perContextVmsUsed = false;
bool isReused = false;
bool boHandleShared = false;
bool allowCapture = false;
bool requiresImmediateBinding = false;
bool requiresExplicitResidency = false;
void *lockedAddress = nullptr; // CPU side virtual address
BOType boType = BOType::legacy;
uint64_t size;
uint64_t unmapSize = 0;
uint64_t patIndex = CommonConstants::unsupportedPatIndex;
CacheRegion cacheRegion = CacheRegion::defaultRegion;
CachePolicy cachePolicy = CachePolicy::writeBack;
StackVec<uint32_t, 2> bindExtHandles;
bool colourWithBind = false;
size_t colourChunk = 0;
std::vector<uint64_t> bindAddresses;
private:
uint64_t gpuAddress = 0llu;
};