In Linux BSP 4.0.0 on i.MX6Q, I am only able to run 11 instances of the simple-egl Wayland client under Weston. When I try to run the 12th, I get these messages:
simple-egl: simple-egl.c:132: init_egl: Assertion `display->egl.dpy' failed.
[16:19:20.689] libwayland: disconnect from client 0x4be48
What the cause of this limitation? How can I increase the number of clients that I can run? I am seeing a similar limitation in my own compositor implementation.
I assume you are trying to open Simple-egl application more than 11 times. Number of OpenGL or OpenVG applications can run simultanously depends on how much GPU memory being allocated. Please try simple-shm or flower as many as possible. If the same error persists keep posted.
OK, I increased the 'reserved_mem_size' for the GPU from 128M to 256M in board-mx6q_sabresd.c. Now I can run about 24 simple-egl clients. I am surprised how much memory is being used per client though! Is there any way to get some insight into the GPU memory allocation state, to see what is using the memory and how much?