Created attachment 120173 [details]
More verbose errors for dmabuf creation.
Using EXT_image_dma_buf_import on i965 can be confusing if you don't look in the code.
The driver always outputs EGL_BAD_MATCH for using multi planar formats. The practice here is to use multiple EGL images per plane and do the color conversion in GLSL.
The same error is given when the fourcc format is unsupported.
This patch gives the application programmer more information about what he is doing wrong, by putting out this information with _mesa_warning().
Thank you. Would you please send the patch to email@example.com for review?