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

OpenGL/computegles31 example crashed on raspberry pi 4 due to big compute worgroup size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 RC1
    • 5.14.0 Beta 1
    • GUI: OpenGL
    • None
    • Qt5-master
      Rpi4/VideocoreVI with latest RaspbianOS (Debian buster)/arm32
      Mesa 19.3.0-devel (at least git-2d5edf2558)
    • Linux/Wayland, Linux/X11
    • ba2ee2875aadc5e5c84e4dd6dec3dbb106a275ce (qt/qtbase/5.13)

    Description

      With introduction of OpenGL ES 3.1(in Mesa 2019.3-devel) on Raspberry Pi 4/VideoCoreVI hardware it's possible to run Compute Shaders, including computegles31 example from qtbase/opengl.
      Unfortunately, Rpi4/VideoCoreVI hardware is quite limited, in particular MAX_COMPUTE_WORK_GROUP_INVOCATIONS is only 256(16*16), while computegles31 example required 1024(32x32).

      Changing COMPUTEPATCHSIZE parameter(both in GLES shader and ++ code) from 32 to 16 make it possible to run computegles31 example on RPi4/VideoCoreVI (and may be some other hardware, like Vivante GPU).

      Technically it's a really minor bug, while it can negatively affect a new Qt users/students with limited knowledge about GL/GLES/Compute shaders.

      Attachments

        For Gerrit Dashboard: QTBUG-79374
        # Subject Branch Project Status CR V

        Activity

          People

            paangele Paolo Angelelli
            ayaromenok Andrey Yaromenok
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes