Kernel/Graphics: Merge VirtIO GraphicsAdapter and VirtIO GPU code

A VirtIO graphics adapter is really the VirtIO GPU, so the virtualized
hardware has no distinction between both components so there's no
need to put such distinction in software.

We might need to split things in the future, but when we do so, we must
take proper care to ensure that the interface between the components
is correct and use the usual codebase patterns.
This commit is contained in:
Liav A
2021-09-21 10:08:28 +03:00
committed by Idan Horowitz
parent a9538b5879
commit f476b49fd8
Notes: sideshowbarker 2024-07-18 01:51:19 +09:00
11 changed files with 435 additions and 474 deletions

View File

@@ -36,6 +36,7 @@ public:
protected:
FramebufferDevice(const GraphicsDevice&, size_t);
NonnullRefPtr<GraphicsDevice> m_graphics_adapter;
private:
FramebufferDevice(const GraphicsDevice&, size_t, PhysicalAddress, size_t, size_t, size_t);
@@ -68,7 +69,6 @@ private:
size_t m_y_offset { 0 };
size_t m_output_port_index;
NonnullRefPtr<GraphicsDevice> m_graphics_adapter;
};
}