Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100198 Vulkan on Qt Wayland
  3. QTBUG-112923

vkkhrdisplay wayland : Only CPU rendering on Vulkan

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Unresolved
    • P2: Important
    • None
    • Wayland Compositor
    • None
    • Linux/Wayland

    Description

      I am trying to achieve a setup with a QTWayland compositor using Vulkan (RHI) and vkkhrdisplay (QPA), and running QtQuick programs upon Vulkan (RHI). Here are the environnement variables I use :

      General :

      • EGL_LOG_LEVEL=debug
      • QSG_INFO=1
      • QSG_RHI_DEBUG_LAYER=1

      Compositor (pure-qml and minimal-qml examples) started with :

      • QT_WAYLAND_CLIENT_BUFFER_INTEGRATION=linux-dmabuf-unstable-v1
      • QSG_RHI_BACKEND=vulkan
      • QT_QPA_PLATFORM=vkkhrdisplay

      Clients (also tried with non-Qt apps) started with :

      • QSG_RHI_BACKEND=vulkan
      • QT_QPA_PLATFORM=wayland

       

      However, the clients run only when I also set VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json (which mean using Lavapipe/LLVMPipe for the clients), or if the clients are run using the opengl RHI backend.

       

      What I also find strange is the line "libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/swrast_dri.so)" in the logs of clients (below, the gallery QtQuick Controls example).

      If I set the MESA_LOADER_DRIVER_OVERRIDE variable to "zink", then the output becomes "libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/zink_dri.so)", but it does not seem to change anything. If I set its value to "radeonsi" or "v3d" (tried on a laptop and a rpi4), then the output remains "libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/swrast_dri.so)".

      Attachments

        1. app_gallery.log
          4 kB
        2. comp.log
          5 kB

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              autiarth Arthur Autin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes