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...
Status: ASSIGNED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-14 16:14 UTC by Rohan Garg
Modified: 2019-03-15 12:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.


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.