Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77315

OpenGL/Vulkan not working on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.13
    • GUI: OpenGL, QPA: Wayland
    • None
    • Linux/Wayland

    Description

      Archlinux, Mesa 19.1 without glx and glvnd, Weston. Vulkan apps and EGL are working elsewhere. Quick Controls 1 web browser example also works and shows WebGL working.

      OpenGL example not working

      QT_QPA_PLATFORM=wayland ./cube??
      QOpenGLShaderProgram: could not create shader program
      QOpenGLShader: could not create shader
      Shader Program link failed

      Quick Controls 2 example not working

      QT_QPA_PLATFORM=wayland ./minimal
      QOpenGLShaderProgram: could not create shader program
      QOpenGLShader: could not create shader
      Shader Program link failed.

      Vulkan example not working

      QT_QPA_PLATFORM=wayland ./hellovulkantriangle
      This plugin does not support createPlatformVulkanInstance
      QVulkanInstance: Failed to initialize Vulkan
      Failed to create Vulkan instance: 0
      Aborted

      No amount of changing configuration options fixes the issue.

      qtbase configuration (note didn't work with opengles3 enabled either)

      ./configure -confirm-license -opensource -v \
      -prefix /usr \
      -docdir /usr/share/doc/qt \
      -headerdir /usr/include/qt \
      -archdatadir /usr/lib/qt \
      -datadir /usr/share/qt \
      -sysconfdir /etc/xdg \
      -openssl-linked \
      -nomake examples \
      -no-rpath \
      -optimized-qmake \
      -dbus-linked \
      -system-harfbuzz \
      -journald \
      -no-xcb \
      -vulkan \
      -no-icu \
      -egl \
      -opengl es2 \
      -no-opengles3 \
      -no-gtk \
      -no-eglfs \
      -qt-sqlite \
      -qt-libpng \
      -no-xcb-xlib \
      -no-use-gold-linker \
      -reduce-relocations

      Attachments

        1. config.txt
          2 kB
        2. debug.txt
          3 kB
        3. PKGBUILD
          2 kB
        4. PKGBUILD-qt5-base
          2 kB
        5. PKGBUILD-qt5-wayland
          0.9 kB
        6. test-container.txt
          2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              johanhelsing Johan Helsing
              testmode Test Mode
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes