I have written a OpenGL ES 3.1 app for Android. When I run it on a device with ARM Mali T880, the screen keeps on flashing. On Adreno 418 and PowerVR GE8100 the app appears to work.
I'd really like to somehow squeeze more debugs from the Mali driver. My phone is rooted and I do have MGD working. Is there a way to make the driver show more debugs?
You can receive additional debug information from the driver by using the GL_KHR_debug extension, there is a blog post on how to use this here.
https://community.arm.com/graphics/b/blog/posts/easier-opengl-es-debugging-on-arm-mali-gpus-with-gl_5f00_khr_5f00_debug
I hope this helps,
Ryan
Thanks Ryan - I know this page, I have read it, the thing is though that this maybe works in Native development, but in Java trying to call any KHR method throws an exception
java.lang.UnsupportedOperationException: not yet implemented
and this is on Android 8.1.0, updated last week. Lika I said, my phone is rooted and I do have access to a root shell on it. Is there some Linux kernel-level magic I could try? For example herehttps://github.com/limadriver/mali-kernel/blob/master/driver/src/devicedrv/mali/common/mali_kernel_common.hthere are references to a mali_debug_level, and supposedly this
echo "6" > /sys/module/mali/parameters/mali_debug_level
is supposed to give me more debugs straight to system log files, however on my phone Mali driver is not a module, it is compiled directly into the kernel and obviously then '/sys/module/mali/parameters/mali_debug_level' does not exist.
Hi Utumno,
Setting the debug level that way should work although the mali_debug_level file is not necessarily in that location, you can find it using either find or grep command to search for the mali0 folder.
I have tried this myself on a rooted S7 and the mali_debug_level did not exist on my device, which is the case you are describing where the driver is compiled directly into the kernel, in this case there is no way to increase the debug level.
Hopefully the driver has built to support this the debug level on your device and the file exists, if not, sorry I couldn't be of more use.
Regards,