mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: restore previous order of variables
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com> Resolves: NEO-10439
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f31c88d05f
commit
27f4eab52f
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user