cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
clarkm2
Contributor
Contributor
433 Views
Registered: ‎10-22-2015

KHR_IMAGE Formats

Hi,

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.

Thank!

0 Kudos
0 Replies