aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Delva <adelva@google.com>2022-07-19 12:04:49 -0700
committerAlistair Delva <adelva@google.com>2022-08-30 20:45:13 +0000
commitbf1a8e0fe4f924457d39111f8f01b7d1860286d6 (patch)
treeb539c15dfd78681709a08c10cc309450217ed880
parentfc5df07e98690d98d897ce06e36e07dba88bb144 (diff)
downloadcuttlefish-bf1a8e0fe4f924457d39111f8f01b7d1860286d6.tar.gz
Make sure androidboot.opengles.version is set
This property should always be set, and sometimes wasn't. Since we are using an ancient MESA, just be conservative with drm_virgl and assume only 3.0 support. Bug: 216827224 Change-Id: I082a9f87d5deafca1aa983d8042159013c15b510
-rw-r--r--host/libs/vm_manager/crosvm_manager.cpp3
-rw-r--r--host/libs/vm_manager/qemu_manager.cpp5
2 files changed, 5 insertions, 3 deletions
diff --git a/host/libs/vm_manager/crosvm_manager.cpp b/host/libs/vm_manager/crosvm_manager.cpp
index bf95250f5..765fa3e36 100644
--- a/host/libs/vm_manager/crosvm_manager.cpp
+++ b/host/libs/vm_manager/crosvm_manager.cpp
@@ -79,7 +79,8 @@ std::vector<std::string> CrosvmManager::ConfigureGraphics(
"androidboot.hardware.gralloc=minigbm",
"androidboot.hardware.hwcomposer=drm",
"androidboot.hardware.egl=mesa",
- };
+ // No "hardware" Vulkan support, yet
+ "androidboot.opengles.version=196608"}; // OpenGL ES 3.0
}
if (config.gpu_mode() == kGpuModeGfxStream) {
std::string gles_impl = config.enable_gpu_angle() ? "angle" : "emulation";
diff --git a/host/libs/vm_manager/qemu_manager.cpp b/host/libs/vm_manager/qemu_manager.cpp
index adedf0499..068070347 100644
--- a/host/libs/vm_manager/qemu_manager.cpp
+++ b/host/libs/vm_manager/qemu_manager.cpp
@@ -136,7 +136,7 @@ std::vector<std::string> QemuManager::ConfigureGraphics(
"androidboot.hardware.hwcomposer=" + config.hwcomposer(),
"androidboot.hardware.egl=angle",
"androidboot.hardware.vulkan=pastel",
- };
+ "androidboot.opengles.version=196609"}; // OpenGL ES 3.1
}
if (config.gpu_mode() == kGpuModeDrmVirgl) {
@@ -145,7 +145,8 @@ std::vector<std::string> QemuManager::ConfigureGraphics(
"androidboot.hardware.gralloc=minigbm",
"androidboot.hardware.hwcomposer=drm",
"androidboot.hardware.egl=mesa",
- };
+ // No "hardware" Vulkan support, yet
+ "androidboot.opengles.version=196608"}; // OpenGL ES 3.0
}
return {};