Hi,
I have an error due to glActiveTexture, when attempting to get a
software implementation of OpenGL ES going.
Here is the background. I was able to get the DSS2 implementation
working for the OMAP 3503 and made yres_virtual = yres * 2 to support
page flipping.
Now, In the DisplaySurface.cpp, in the method there were some errors
due to glString that I was causing it to crash, and so I commented it
out as follows, but now I get a crash due to glActiveTexture.
void DisplayHardware::init(uint32_t dpy)
{
... // I had to comment out the following to prevent a crash due to
glString();
/*
* Gather OpenGL ES extensions
*/
eglMakeCurrent(display, surface, surface, context);
//const char* const gl_extensions = (const char*)glGetString
(GL_EXTENSIONS);
//LOGI("OpenGL informations:");
//LOGI("vendor : %s", glGetString(GL_VENDOR));
//LOGI("renderer : %s", glGetString(GL_RENDERER));
//LOGI("version : %s", glGetString(GL_VERSION));
//LOGI("extensions: %s", gl_extensions);
....
}
I/sysproc ( 886): Entered system_init()
I/sysproc ( 886): ServiceManager: 0x154f90
I/SurfaceFlinger( 886): SurfaceFlinger is starting
I/SurfaceFlinger( 886): SurfaceFlinger's main thread ready to run.
Initializing graphics H/W...
E/MemoryHeapBase( 886): error opening /dev/pmem: No such file or
directory
E/SurfaceFlinger( 886): Couldn't open /sys/power/wait_for_fb_sleep
or /sys/power/wait_for_fb_wake
E/GLLogger( 886): couldn't load <libhgl.so> library (Cannot find
library)
I/SurfaceFlinger( 886): OpenGL ES information:
I/SurfaceFlinger( 886): # of configs : 6
I/SurfaceFlinger( 886): vendor : Android
I/SurfaceFlinger( 886): version : 1.31 Android META-EGL
I/SurfaceFlinger( 886): extensions:
I/SurfaceFlinger( 886): Client API: OpenGL ES
I/EGLDisplaySurface( 886): using (fd=21)
I/EGLDisplaySurface( 886): id = omapfb
I/EGLDisplaySurface( 886): xres = 480 px
I/EGLDisplaySurface( 886): yres = 272 px
I/EGLDisplaySurface( 886): xres_virtual = 480 px
I/EGLDisplaySurface( 886): yres_virtual = 544 px
I/EGLDisplaySurface( 886): bpp = 16
I/EGLDisplaySurface( 886): r = 11:5
I/EGLDisplaySurface( 886): g = 5:6
I/EGLDisplaySurface( 886): b = 0:5
I/EGLDisplaySurface( 886): width = 76 mm (160.421051 dpi)
I/EGLDisplaySurface( 886): height = 43 mm (160.669769 dpi)
I/EGLDisplaySurface( 886): refresh rate = 66.49 Hz
W/HAL ( 886): load: module=/system/lib/hw/copybit.gumstix.so
error=Cannot find library
W/HAL ( 886): load: module=/system/lib/hw/copybit.default.so
error=Cannot find library
W/SurfaceFlinger( 886): ro.sf.lcd_density not defined, using 160 dpi
by default.
I/DEBUG ( 832): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 832): Build fingerprint: 'generic/generic/generic/:1.5/
CUPCAKE/eng.elvis.20090425.152726:eng/test-keys'
I/DEBUG ( 832): pid: 886, tid: 894 >>> system_server <<<
I/DEBUG ( 832): signal 11 (SIGSEGV), fault addr 0000000c
I/DEBUG ( 832): r0 000084c0 r1 41042005 r2 00000000 r3 00000004
I/DEBUG ( 832): r4 41042000 r5 0016f6c8 r6 acd3aa08 r7 0016f228
I/DEBUG ( 832): r8 bea9c3dc r9 afe39dd0 10 a9d2856d fp 00000001
I/DEBUG ( 832): ip 00000000 sp 44966e38 lr acd2f509 pc
acb047f0 cpsr 00000010
I/DEBUG ( 832): #00 pc 000047f0 /system/lib/
libGLESv1_CM.so
I/DEBUG ( 832): #01 pc 0002f504 /system/lib/
libsurfaceflinger.so
I/DEBUG ( 832): #02 pc 000287e0 /system/lib/libutils.so
I/DEBUG ( 832): #03 pc 000285d4 /system/lib/libutils.so
I/DEBUG ( 832): #04 pc 0000f8ac /system/lib/libc.so
I/DEBUG ( 832): #05 pc 0000f418 /system/lib/libc.so
I/DEBUG ( 832): stack:
I/DEBUG ( 832): 44966df8 0016fc70 [heap]
I/DEBUG ( 832): 44966dfc ac704395 /system/lib/libEGL.so
I/DEBUG ( 832): 44966e00 ac70900c
I/DEBUG ( 832): 44966e04 0016fc70 [heap]
I/DEBUG ( 832): 44966e08 0016fa90 [heap]
I/DEBUG ( 832): 44966e0c ac7051ad /system/lib/libEGL.so
I/DEBUG ( 832): 44966e10 ac708ad0 /system/lib/libEGL.so
I/DEBUG ( 832): 44966e14 ac709a5c
I/DEBUG ( 832): 44966e18 0016f4a0 [heap]
I/DEBUG ( 832): 44966e1c 0016f6c8 [heap]
I/DEBUG ( 832): 44966e20 41042020 /MemoryHeapBase (deleted)
I/DEBUG ( 832): 44966e24 41042000 /MemoryHeapBase (deleted)
I/DEBUG ( 832): 44966e28 0016f6c8 [heap]
I/DEBUG ( 832): 44966e2c acd3aa08 /system/lib/
libsurfaceflinger.so
I/DEBUG ( 832): 44966e30 df002777
I/DEBUG ( 832): 44966e34 e3a070ad
I/DEBUG ( 832): #01 44966e38 00000000
I/DEBUG ( 832): 44966e3c 00000000
I/DEBUG ( 832): 44966e40 00000000
I/DEBUG ( 832): 44966e44 00000000
I/DEBUG ( 832): 44966e48 00000000
I/DEBUG ( 832): 44966e4c 00000000
I/DEBUG ( 832): 44966e50 00000198
I/DEBUG ( 832): 44966e54 acd30a84 /system/lib/
libsurfaceflinger.so
I/DEBUG ( 832): 44966e58 000001e0
I/DEBUG ( 832): 44966e5c 00000110
I/DEBUG ( 832): 44966e60 00000004
I/DEBUG ( 832): 44966e64 0016f304 [heap]
I/DEBUG ( 832): 44966e68 00000000
I/DEBUG ( 832): 44966e6c 00000000
I/DEBUG ( 832): 44966e70 0016f4b8 [heap]
I/DEBUG ( 832): 44966e74 afe0e964 /system/lib/libc.so
I/DEBUG ( 832): 44966e78 0016f4a0 [heap]
I/DEBUG ( 832): 44966e7c a9d213df /system/lib/libutils.so
I/DEBUG ( 832): 44966e80 0016f228 [heap]
I/DEBUG ( 832): 44966e84 0016f228 [heap]
I/DEBUG ( 832): 44966e88 0016f610 [heap]
I/DEBUG ( 832): 44966e8c 0016c910 [heap]
I/DEBUG ( 832): 44966e90 0016f490 [heap]
I/DEBUG ( 832): 44966e94 acd39408 /system/lib/
libsurfaceflinger.so
I/DEBUG ( 832): 44966e98 0016f238 [heap]
I/DEBUG ( 832): 44966e9c 00000258
I/DEBUG ( 832): 44966ea0 a9d46b88 /system/lib/libutils.so
I/DEBUG ( 832): 44966ea4 a9d287e3 /system/lib/libutils.so
D/Zygote ( 885): Process 886 terminated by signal (11)
I/Zygote ( 885): Exit zygote because system server (886) has
terminated
request_suspend_state: wakeup (0->0) at 28442596336 (2000-01-01
00:00:27.124145365 UTC)
D/AndroidRuntime( 906):
D/AndroidRuntime( 906): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
--------------------------------
Object dump of libGLESv1_CM.so
000047e8 <glActiveTexture>:
47e8: e3e0ca0f mvn ip, #61440 ; 0xf000
47ec: e51cc00f ldr ip, [ip, #-15]
47f0: e59cc00c ldr ip, [ip, #12]
47f4: e35c0000 cmp ip, #0 ; 0x0
47f8: 159cf158 ldrne pc, [ip, #344]
47fc: e12fff1e bx lr
What could be the problem?
Best regards,
Elvis
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---