system/core
修訂 | 441b4c6fcc84c8e20497b69c77d0d4ce64299adb (tree) |
---|---|
時間 | 2011-08-04 17:36:35 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: disable hardware specific gralloc
To disable 3D hardware acceleration totally, we need to
tell HAL not to load hardware specific gralloc library.
This is just a workaround. In the future we should implement a
gralloc wrapper to detect graphic driver and load the appropriate
gralloc library.
Change-Id: Idbba5794bd850fce0b6f58a3f45dddee60086a25
@@ -600,6 +600,11 @@ static int set_init_properties_action(int nargs, char **args) | ||
600 | 600 | property_set("ro.carrier", carrier[0] ? carrier : "unknown"); |
601 | 601 | property_set("ro.bootloader", bootloader[0] ? bootloader : "unknown"); |
602 | 602 | |
603 | + if ((tmpdev = getenv("HWACCEL")) && tmpdev[0] == '0') { | |
604 | + property_set("debug.egl.hw", tmpdev); | |
605 | + // a temporary workaround to disable hardware specific gralloc | |
606 | + hardware[0] = '\0'; | |
607 | + } | |
603 | 608 | property_set("ro.hardware", hardware); |
604 | 609 | snprintf(tmp, PROP_VALUE_MAX, "%d", revision); |
605 | 610 | property_set("ro.revision", tmp); |