[Mesa-dev] [Bug 105995] egl driver dri2 on wayland platform can't choose config with EGL_SURFACE_TYPE, EGL_PBUFFER_BIT

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 12 05:59:48 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105995

            Bug ID: 105995
           Summary: egl driver dri2 on wayland platform can't choose
                    config with EGL_SURFACE_TYPE, EGL_PBUFFER_BIT
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: EGL/Wayland
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: errong.leng at samsung.com
        QA Contact: mesa-dev at lists.freedesktop.org

sample codes:
  EGLint attribute_list[] = {EGL_SURFACE_TYPE,    // this must be first
                             EGL_WINDOW_BIT | EGL_PBUFFER_BIT
                             ,
                             EGL_RED_SIZE,
                             8,
                             EGL_GREEN_SIZE,
                             8,
                             EGL_BLUE_SIZE,
                             8,
                             EGL_ALPHA_SIZE,
                             8,
                             EGL_RENDERABLE_TYPE,
                             EGL_OPENGL_ES2_BIT,
                             EGL_NONE};

Test on ubuntu 17.10, use wayland as default.
  // below call always return false
  eglChooseConfig(display, attribute_list, &config, 1, &numConfigs);

cause/solution
src/egl/drivers/dri2/platform_wayland.c

dri2_wl_add_configs_for_visuals
          dri2_conf = dri2_add_config(disp, dri2_dpy->driver_configs[i],
-               count + 1, EGL_WINDOW_BIT, NULL,
dri2_wl_visuals[j].rgba_masks);
+               count + 1, EGL_WINDOW_BIT | EGL_PBUFFER_BIT | EGL_PIXMAP_BIT,
NULL, dri2_wl_visuals[j].rgba_masks);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180412/5a502419/attachment-0001.html>


More information about the mesa-dev mailing list