I've been working with the Mali-400 (OpenGL ES) based on Petalinux 2019.1. I'm successfully using the GBM (Wayland) backend and rendering a textured quad using extension "EGL_KHR_image_base" or eglCreateImageKHR.
When creating the EGLImage resource (using eglCreateImageKHR & EGL_LINUX_DMA_BUF_EXT), I'm having a difficult time creating DRM formats other than 32-bit, ABGR and like.
My input image is Y8 (8-bit grayscale) and I've tried to use a few DRM formats such as DRM_FORMAT_R8, but this always results in EGL_BAD_MATCH, which suggests an unsupported format. I would like to convert the image format to ARGB in the fragment shader.
I'm curious if this is expected behavior, and if anyone has a list of supported formats.