Bug 109354 - eglCreateImageKHR should throw a error when called with anything but EGL_NO_CONTEXT
Summary: eglCreateImageKHR should throw a error when called with anything but EGL_NO_C...
Alias: None
Product: Mesa
Classification: Unclassified
Component: EGL (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Eric Engestrom
QA Contact: mesa-dev
Depends on:
Reported: 2019-01-14 16:14 UTC by Rohan Garg
Modified: 2019-09-18 18:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Rohan Garg 2019-01-14 16:14:26 UTC
Calling eglCreateImageKHR with anything but EGL_NO_CONTEXT should throw a error.

From https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt
     * If <target> is EGL_NATIVE_PIXMAP_KHR, and <ctx> is not EGL_NO_CONTEXT,
       the error EGL_BAD_PARAMETER is generated.

Xorg has recently been fixed to incorporate this : https://gitlab.freedesktop.org/xorg/xserver/commit/cc05c01925755310f027c61daa29648a10155f96
Comment 1 Daniel Stone 2019-01-14 16:58:37 UTC
Same for dmabuf import: https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import.txt

Mutter used to pass a context though, so we should only do this with care.
Comment 2 Eric Engestrom 2019-03-15 12:41:08 UTC
Fix here: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/454

But we'll have to wait before actually landing it.
Comment 3 GitLab Migration User 2019-09-18 18:07:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/166.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.