From cb88e79ecbd16dea5f2201fd12320db5945db83e Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Fri, 26 Aug 2011 01:35:14 +0200 Subject: Add hw.gpu.enabled hardware property This patch adds a new hardware property to enable GPU emulation (named hw.gpu.enabled). It is currently disabled by default. It also modifies the UI code to display the GL output properly inside the UI window. And sets the kernel parameter qemu.gles to either 0 or 1 to indicate to the guest system's GLES libraries whether to use GPU emulation or fallback to the software renderer. A future patch will also add auto-detection of desktop GL capabilities. For example, if the emulator is started on a headless server without an X11/GL display, hw.gpu.enabled will be forced to 'no', forcing the guest to use the software renderer. Another patch will allow to change the property from the command-line for debugging purpose. NOTE: If you want to test GPU emulation, change the default value of the property in android/avd/hardware-properties.ini from 'no' to 'yes'. You will need to run a ToT master AOSP tree with the following pending patches applied: https://review.source.android.com/25797 https://review.source.android.com/25154 https://review.source.android.com/25759 Change-Id: I1fa3512be24395244fd5068f2bf59ad54db5c7d5 --- Makefile.target | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.target') diff --git a/Makefile.target b/Makefile.target index ccc86b4..07940bb 100644 --- a/Makefile.target +++ b/Makefile.target @@ -269,6 +269,7 @@ LOCAL_SRC_FILES := \ user-events-qemu.c \ vl-android.c \ android/console.c \ + android/opengles.c \ android/display-core.c \ android/protocol/attach-ui-proxy.c \ android/protocol/fb-updates-proxy.c \ @@ -353,6 +354,7 @@ LOCAL_SRC_FILES := \ android/help.c \ android/main-common.c \ android/main.c \ + android/opengles.c \ android/protocol/core-commands-qemu.c \ android/protocol/ui-commands-qemu.c \ android/ -- cgit v1.1