init: Set property to force SW composition/rendering
Use the presence/absence of kgsl node to force SW composition and rendering. Change-Id: Ia97e3f17f9a6d34a24f3d83fcef97def5d3b23c3
This commit is contained in:
parent
11a216ff3a
commit
dea92ef12e
|
@ -240,6 +240,14 @@ void vendor_load_properties()
|
|||
/* Define MSM family properties */
|
||||
init_msm_properties(msm_id, msm_ver, board_type);
|
||||
|
||||
/*Check for kgsl node and disable HW composition*/
|
||||
if (access("/dev/kgsl-3d0", F_OK) < 0) {
|
||||
ERROR("Failed to open kgsl node, falling back to SW OpenGL err:%s", strerror(errno));
|
||||
property_set("persist.sys.force_sw_gles", "1");
|
||||
} else {
|
||||
property_set("persist.sys.force_sw_gles", "0");
|
||||
}
|
||||
|
||||
/* Set Display Node Permissions */
|
||||
set_display_node_perms();
|
||||
/*check for coredump*/
|
||||
|
|
Loading…
Reference in New Issue