diff options
author | Jason Macnak <natsu@google.com> | 2020-01-09 14:36:29 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-14 00:31:00 +0000 |
commit | 60eb1fbe89fab558bf781c6c02496a345b5d6a4c (patch) | |
tree | ff34abd184c7f2bee3ee0627d51089f59249c501 /src/linux.rs | |
parent | 1617c21918c30479ab705f45d4ef3c21ccc0d4fa (diff) | |
download | crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar.gz crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar.bz2 crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar.lz crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar.xz crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.tar.zst crosvm-60eb1fbe89fab558bf781c6c02496a345b5d6a4c.zip |
gpu_display: implement stub display
Adds a stub display that emulates a display without actually displaying contents anywhere. This is needed for transitioning Cuttlefish to always using minigbm as its gralloc implementation. Cuttlefish currently uses a custom gralloc and hwcomposer implementation when running without hardware acceleration. The Cuttlefish team would like to start with removing our custom gralloc implementation and use minigbm. For this, we need to add a virtio 2D backend to crosvm. Our hwcomposer implementation currenlly sends framebuffers from the guest to the host via sockets. The gpu backend still requires a display so we need a stub display to use with the 2D backend for the period of time while we are either still using our hwcomposer implementation or until our hwcomposer implementation is updated to use the virtio backend for display. BUG=b:123764798 BUG=chromium:1033787 TEST=built and launched with Cuttlefish locally Change-Id: I1a7e259d914a53252200c59589c4142e76c6b96b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1993947 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Jason Macnak <natsu@google.com>
Diffstat (limited to 'src/linux.rs')
-rw-r--r-- | src/linux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux.rs b/src/linux.rs index c7e6b0b..d6b6519 100644 --- a/src/linux.rs +++ b/src/linux.rs @@ -597,7 +597,7 @@ fn create_gpu_device( let mut display_backends = vec![ virtio::DisplayBackend::X(x_display), - virtio::DisplayBackend::Null, + virtio::DisplayBackend::Stub, ]; if let Some(socket_path) = wayland_socket_path { |