Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 933
    • Issues 933
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 99
    • Merge requests 99
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • xserverxserver
  • Issues
  • #1154

Closed
Open
Created Mar 25, 2021 by Michaelypk@Michaelypk

Incorrect use of eglCreateImageKHR with <target> EGL_NATIVE_PIXMAP_KHR @xwayland

https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt

  • If is EGL_NATIVE_PIXMAP_KHR, and is not EGL_NO_CONTEXT, the error EGL_BAD_PARAMETER is generated.

Code position:hw/xwayland/xwayland-glamor-gbm.c

xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display,
                                      xwl_screen->egl_context,
                                      EGL_NATIVE_PIXMAP_KHR,
                                      xwl_pixmap->bo, NULL);

should be:

xwl_pixmap->image = eglCreateImageKHR(xwl_screen->egl_display,
                                      EGL_NO_CONTEXT,
                                      EGL_NATIVE_PIXMAP_KHR,
                                      xwl_pixmap->bo, NULL);
Edited Mar 25, 2021 by Michaelypk
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking