Skip to content
Snippets Groups Projects
Commit 2e393b48 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Emil Velikov
Browse files

egl/dri: fix error value with unknown drm format


According to the EGL_EXT_image_dma_buf_import spec, creating an EGL
image with a DRM format not supported should yield the BAD_MATCH
error :

"
       * If <target> is EGL_LINUX_DMA_BUF_EXT, and the EGL_LINUX_DRM_FOURCC_EXT
         attribute is set to a format not supported by the EGL, EGL_BAD_MATCH
         is generated.
"

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 20de7f9f ("egl/dri2: support for creating images out of dma buffers")
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: default avatarChad Versace <chadversary@chromium.org>
(cherry picked from commit 1c56d211)
parent 4b3f8846
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment