Add composition support to the end2end test framework

... so that we can start to test GL->VK->Host-Compositor flows.

Adds a fake render control lib that basically just exposes some of
the render control functions with scoped host connection inside of
a `RenderControlDevice`.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Jason Macnak
2024-03-22 17:34:48 -07:00
committed by Marge Bot
parent c2d57b76be
commit d0a4d3f3bc
6 changed files with 43 additions and 0 deletions

View File

@@ -87,6 +87,9 @@ class EmulatedGralloc : public Gralloc {
uint32_t getFormatDrmFourcc(const AHardwareBuffer* handle) override;
uint32_t getWidth(const AHardwareBuffer* ahb) override;
uint32_t getHeight(const AHardwareBuffer* ahb) override;
size_t getAllocatedSize(const native_handle_t*) override;
size_t getAllocatedSize(const AHardwareBuffer*) override;