Hardware opengles not working [libhgl.so required?]

102 views
Skip to first unread message

Nilly

unread,
Dec 1, 2010, 11:54:54 PM12/1/10
to android-porting
Hi All,

I am working to get hardware opengles up on my freescale board imx51.

I have
libEGL_imx51.so
libGLESv1_CM_imx51.so
libGLESv2_imx51.so

and my egl.cfg is
0 1 imx51
0 0 android


So will all this libraries suffice to run opengles in hardware mode?
B'cos I have read every where that we need separate libhgl.so to get
opengles run in hardware.

Actually I have tested my simple application by linking this libraries
also but timings are same.

Regards,
Niral

Chih-Wei

unread,
Dec 2, 2010, 10:00:23 PM12/2/10
to android-porting
Which version of Android are you working on?
libhgl.so is the the old name in 1.x.

In 2.x it is changed to libGLES...
and uses egl.cfg as the config file.
Since you have them,
I think you are working on 2.x.
So don't worry about libhgl.so.

Besides these opengl libs, you still
a gralloc library to init your framebuffer properly.
It locates in /system/lib/hw/gralloc.<target>.so
If you don't have it, you need to write one.

Nilly

unread,
Dec 2, 2010, 10:49:59 PM12/2/10
to android-porting
I am using froyo.

I have
libGLES_android.so
but this is software implementation right provided by android?

/system/lib/egl has
libGLES_android.so
libEGL_imx51.so
libGLESv1_CM_imx51.so
libGLESv2_imx51.so

and my egl.cfg is
0 1 imx51
0 0 android

I am thinking I am not running on hardware opengles b'cos i have very
odd timing for uploading texture and draw , swap buffers.
Also Surface flinger logs while booting ..

I/SurfaceFlinger( 2060): EGL informations:
I/SurfaceFlinger( 2060): # of configs : 35
I/SurfaceFlinger( 2060): vendor : Android
I/SurfaceFlinger( 2060): version : 1.4 Android META-EGL
I/SurfaceFlinger( 2060): extensions: EGL_KHR_image EGL_KHR_image_base
EGL_KHR_image_pixmap EGL_ANDROID_image_native_buffer
EGL_ANDROID_swap_rectangle EGL_ANDROID_get_render_buffer
I/SurfaceFlinger( 2060): Client API: OpenGL ES
I/SurfaceFlinger( 2060): EGLSurface: 5-6-5-0, config=0x0
E/libEGL ( 2060): eglSetSwapRectangleANDROID:1783 error 3008
(EGL_BAD_DISPLAY)
I/SurfaceFlinger( 2060): flags : 00100000
W/SurfaceFlinger( 2060): ro.sf.lcd_density not defined, using 160 dpi
by default.
I/SurfaceFlinger( 2060): OpenGL informations:
I/SurfaceFlinger( 2060): vendor : Advanced Micro Devices, Inc.
I/SurfaceFlinger( 2060): renderer : AMD Z430
I/SurfaceFlinger( 2060): version : OpenGL ES-CM 1.1
I/SurfaceFlinger( 2060): extensions: GL_AMD_compressed_3DC_texture
GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor
GL_ATI_compressed_texture_atitc GL_ATI_texture_compression_atitc
GL_OES_blend_equation_separate GL_OES_blend_func_separate
GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture
GL_OES_compressed_paletted_texture GL_OES_draw_texture
GL_OES_extended_matrix_palette GL_OES_EGL_image
GL_OES_EGL_image_external GL_OES_framebuffer_object
GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite
GL_OES_read_format GL_OES_stencil_wrap GL_OES_texture_cube_map
GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat
I/SurfaceFlinger( 2060): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger( 2060): GL_MAX_VIEWPORT_DIMS = 2048
I/imx5x.gralloc( 2060): PMEM GPU enabled, size:33554432, phys
base:ac000000


Regards,
Niral
> > opengles run in hardware.- Hide quoted text -
>
> - Show quoted text -

Nilly

unread,
Dec 4, 2010, 12:45:25 PM12/4/10
to android-porting
any suggestions will be great help for me..

Nilly

unread,
Dec 4, 2010, 12:48:23 PM12/4/10
to android-porting
Also I have one query if hardware libraries are available than does
android surface flinger will drop software libraries and use the
hardware libraries or one need to change surface flinger to use it?

Chih-Wei

unread,
Dec 5, 2010, 8:08:56 AM12/5/10
to android-porting
From your logcat, the hw opengl libs are loaded and used correctly.

Don't understand why you think it doesn't work.
Reply all
Reply to author
Forward
0 new messages