Remove root device index from buffer object.

Graphics allocation is responsible for holding this information.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>

Change-Id: I5cf6fa7e92a7c716308213509aab5e446b5ef680
This commit is contained in:
Michal Mrozek
2020-03-19 10:41:35 +01:00
committed by sys_ocldev
parent d1b29496fa
commit 1ce4f56c9f
8 changed files with 25 additions and 12 deletions

View File

@ -22,8 +22,8 @@ class BufferObject {
friend DrmMemoryManager;
public:
BufferObject(Drm *drm, int handle, uint32_t rootDeviceIndex);
BufferObject(Drm *drm, int handle, size_t size, uint32_t rootDeviceIndex);
BufferObject(Drm *drm, int handle);
BufferObject(Drm *drm, int handle, size_t size);
MOCKABLE_VIRTUAL ~BufferObject(){};
bool setTiling(uint32_t mode, uint32_t stride);
@ -49,7 +49,6 @@ class BufferObject {
void setUnmapSize(uint64_t unmapSize) { this->unmapSize = unmapSize; }
uint64_t peekUnmapSize() const { return unmapSize; }
bool peekIsReusableAllocation() const { return this->isReused; }
uint32_t peekRootDeviceIndex() { return rootDeviceIndex; }
protected:
Drm *drm = nullptr;
@ -58,7 +57,6 @@ class BufferObject {
int handle; // i915 gem object handle
uint64_t size;
uint32_t rootDeviceIndex = 0;
bool isReused;
//Tiling