gpu: enable EDID for 2D mode

... to ensure consistent phyiscal display ids when
running Android with Cuttlefish across both 2D and 3D
modes.

BUG=b:242931783
TEST=boot Cuttlefish with 2D mode and EDID and interact
     with the displays

Change-Id: Iba0e786464a603c7e1264625ddf619b91b9099bc
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3846059
Reviewed-by: Kaiyi Li <kaiyili@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Jason Macnak <natsu@google.com>
Commit-Queue: Jason Macnak <natsu@google.com>
This commit is contained in:
Jason Macnak 2022-08-22 12:36:44 -07:00 committed by crosvm LUCI
parent d7e3f94677
commit ea11f76234

View file

@ -1170,7 +1170,7 @@ impl VirtioDevice for Gpu {
fn features(&self) -> u64 { fn features(&self) -> u64 {
let rutabaga_features = match self.rutabaga_component { let rutabaga_features = match self.rutabaga_component {
RutabagaComponentType::Rutabaga2D => 0, RutabagaComponentType::Rutabaga2D => 1 << VIRTIO_GPU_F_EDID,
_ => { _ => {
let mut features_3d = 0; let mut features_3d = 0;