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

[patch] bindTextureImage: clearing GL error: 0x500

    XMLWordPrintable

Details

    • Android
    • f50e94601 (dev), 47a9acb7c (6.8), 347c120af (6.7), 508d624ca (tqtc/lts-6.5)

    Description

      Playback a video with the qml-"mediaplayer" example (using ffmpeg backend!) on some Android device causes performance issues and log spam on each frame:

      SPAM:
      W Adreno-ES20: <core_glTexParameteriv:406>: GL_INVALID_ENUM
      W OpenGLRenderer: [SurfaceTexture-0-32749-0] bindTextureImage: clearing GL error: 0x500

      I got this with two different devices:

      armv7 device having:
      OpenGL VENDOR: Qualcomm RENDERER: Adreno (TM) 306 VERSION: OpenGL ES 3.0 V@145.0 AU@ (GIT@I38fdb1353f) 
      
      arm64-v8a:
      OpenGL VENDOR: ARM RENDERER: Mali-G71 MP2 VERSION: OpenGL ES 3.2 v1.r20p0-01rel0.4c6d55619f9f1f92ee8846114f879226
      

       

      I attached a patch that fixes this issue:

      void QRhiGles2::bindCombinedSampler(...):
      -        if (caps.texture3D)
      +        if (texD->target == GL_TEXTURE_3D)
                   f->glTexParameteri(texD->target, GL_TEXTURE_WRAP_R, GLint(samplerD->d.glwrapr));
      

       

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              __chr__ chris rudorff
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes