init_msm8960: Overwrite ro.opengles.version for 8960
Overwrite the ro.opengles.version property with 0x2000. This change is specific to 8960 Classic, which can only support upto Open GLES vesion 2.0 This change fixes the CTS test failure android.opengl.cts.OpenGlEsVersionTest CRs-Fixed: 575502 Change-Id: I7e90ddde44fef596d1446e6f1acfe7070ef9337b
This commit is contained in:
parent
1a5d47b426
commit
a31e0e46c8
|
@ -36,10 +36,14 @@
|
|||
|
||||
#include "init_msm.h"
|
||||
|
||||
#define A2xx_OPEN_GLES_VERSION "131072"
|
||||
|
||||
void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type)
|
||||
{
|
||||
char platform[PROP_VALUE_MAX];
|
||||
int rc;
|
||||
prop_info *pi;
|
||||
size_t valuelen;
|
||||
|
||||
rc = property_get("ro.board.platform", platform);
|
||||
if (!rc || !ISMATCH(platform, ANDROID_TARGET))
|
||||
|
@ -59,12 +63,20 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
|
|||
else
|
||||
property_set(PROP_LCDDENSITY, "240");
|
||||
}
|
||||
|
||||
/* Populate system properties */
|
||||
switch (msm_id) {
|
||||
case 87:
|
||||
/* 8960 */
|
||||
property_set("debug.composition.type", "dyn");
|
||||
|
||||
/* Overwrite ro.opengles.version value to 131072 */
|
||||
/* 131072 is decimal of 0x20000 */
|
||||
/* 8960 can only support GLES VERSION 2.0 */
|
||||
valuelen = strlen(A2xx_OPEN_GLES_VERSION);
|
||||
pi = (prop_info*) __system_property_find("ro.opengles.version");
|
||||
if(pi != 0) {
|
||||
__system_property_update(pi, A2xx_OPEN_GLES_VERSION, valuelen);
|
||||
}
|
||||
break;
|
||||
case 138:
|
||||
case 153:
|
||||
|
|
Loading…
Reference in New Issue