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@lists.freedesktop.org
          Reporter: errong.l...@samsung.com
        QA Contact: mesa-...@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 assignee for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to