[magma] Implement buffer creation
This change adds support for host-allocated buffer creation.
Bug: b/272307395
Bug: b/277219980
Bug: b/279921814
Test: m libgfxstream_backend
Change-Id: Ie3b61834cd6d05ca7a50a3ea081e54c51dc8937e
diff --git a/host/magma/Connection.h b/host/magma/Connection.h
index 429f16c..3e0c5a3 100644
--- a/host/magma/Connection.h
+++ b/host/magma/Connection.h
@@ -35,6 +35,9 @@
Connection(Connection&&) noexcept = default;
Connection& operator=(Connection&&) = delete;
+ // Get the parent device for this connection.
+ DrmDevice& getDevice();
+
// Creates a new context and returns its ID. Returns nullopt on error.
std::optional<uint32_t> createContext();