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

Shader cache not able to write out compiled shaders

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.1, 6.3.0 Alpha
    • 5.12.9
    • GUI: OpenGL
    • None
    • Ubuntu Touch on arm64 and armhf devices
    • Linux/Other display system
    • 46e6a9a759ae89f905107ccad191ca5ddf442e53 (qt/qtbase/dev) 2fc4a1b53042b69bdb745e2e69c861eecf945b3c (qt/qtbase/6.1) 9a156b4e84867f89f2e9082a883276a1a165e063 (qt/qtbase/6.2)

    Description

      Currently the Ubuntu Touch OS is very restrictive about what paths can be accesed by each application.

      src/gui/opengl/qopenglprogrambinarycache.cpp tries to write to the general cache folder on the users home dir level, but that is blocked: https://github.com/qt/qtbase/blob/823ed71e220ebde07970dd61c04bb47b01dd06c4/src/gui/opengl/qopenglprogrambinarycache.cpp#L416-L423 fails. QStandardPaths::GenericCacheLocation is write-protected unless an exemption is made for an app or for all apps.
      We are instead offering the applications to write to QStandardPaths::CacheLocation but this is not used by the shader cache code. And we believe this is a bug actually.

       

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            flohack Florian Leeber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes