mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
d1b29496fa
commit
1ce4f56c9f
@ -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
|
||||
|
Reference in New Issue
Block a user