Failed to create 4096x4096 texture on Mali-400. The app crashes. What can be wrong?
What do you mean by "crash"? If a segfault do you have a backtrace?
The obvious point to check is whether your device is running out of memory - 4kx4k textures can be quite memory intensive (64MB for RGBA8 uncompressed texture).
Cheers, Pete
Hi,
I do not have a backtrace as the mali ddk is provided as a third party library. The application terminates. I cannot debug that part. I can just debug the mali linux kernel part (drivers/gpu/arm/mali).
We have 128 MB for Graphics memory. This should be enough for this rendering. I also found that textures of size
upto 4096x3000 is rendered, but as soon as I cross height > 3000 the OpenGL App terminates.
It's still not clear what your error actually is. If the application exits cleanly with no segfault or kernel low memory killer kicking in, that sounds like a memory allocation failure (either in the application itself, or the application exiting because of an GL error returned by the OpenGL ES driver).
Also be aware that there are implementation limits defined for certain features. Did you check the texture dimension limit for that platform ?