mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
Adding getter to BufferObject
Related-To: NEO-4964 Change-Id: I0bbac01cac9cf0468a78afba4ddc984ec8b55eb2 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
@@ -340,4 +340,7 @@ TEST(DrmBufferObject, whenBindExtHandleAddedThenItIsStored) {
|
||||
|
||||
EXPECT_EQ(1u, bo.bindExtHandles.size());
|
||||
EXPECT_EQ(4u, bo.bindExtHandles[0]);
|
||||
|
||||
EXPECT_EQ(1u, bo.getBindExtHandles().size());
|
||||
EXPECT_EQ(4u, bo.getBindExtHandles()[0]);
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@ class BufferObject {
|
||||
uint64_t peekUnmapSize() const { return unmapSize; }
|
||||
bool peekIsReusableAllocation() const { return this->isReused; }
|
||||
void addBindExtHandle(uint32_t handle);
|
||||
StackVec<uint32_t, 2> &getBindExtHandles() { return bindExtHandles; }
|
||||
|
||||
protected:
|
||||
Drm *drm = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user