Skip to content
Snippets Groups Projects
  1. Dec 01, 2022
  2. Sep 15, 2021
  3. Sep 09, 2021
  4. Jul 06, 2021
  5. Jun 14, 2021
  6. May 11, 2021
  7. Aug 18, 2020
  8. Jul 05, 2020
  9. Dec 20, 2019
  10. Nov 07, 2019
    • Dor Askayo's avatar
      xwayland: clear pixmaps after creation in rootless mode · 0e9a0c20
      Dor Askayo authored and Michel Dänzer's avatar Michel Dänzer committed
      
      When a pixmap is created with a backing FBO, the FBO should be cleared
      to avoid rendering uninitialized memory. This could happen when the
      pixmap is rendered without being filled in its entirety.
      
      One example is when a top-level window without a background is
      resized. The pixmap would be reallocated to prepare for more pixels,
      but uninitialized memory would be rendered in the resize offset until
      the client sends a frame that fills these additional pixels.
      
      Another example is when a new top-level window is created without a
      background. Uninitialized memory would be rendered after the pixmap is
      allocated and before the client sends its first frame.
      
      This issue is only apparent in OpenGL implementations that don't zero
      the VRAM of allocated buffers by default, such as RadeonSI.
      
      Signed-off-by: default avatarDor Askayo <dor.askayo@gmail.com>
      Closes: xorg/xserver#636
      
      
      Reviewed-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
      0e9a0c20
  11. Oct 14, 2019
  12. Oct 11, 2019
  13. May 28, 2019
  14. Apr 17, 2019
  15. Mar 11, 2019
  16. Sep 11, 2018
  17. Jun 27, 2018
    • Lyude Paul's avatar
      glamor: Unbreak glamor_fd_from_pixmap() · 186a21c4
      Lyude Paul authored
      
      When support for allocating GBM BOs with modifiers was added,
      glamor_fd_from_pixmap() was changed so that it would return an error if
      it got a bo with modifiers set from glamor_fds_from_pixmap(). The
      problem is that on systems that support BOs with modifiers,
      glamor_fds_from_pixmap() will always return BOs with modifiers.
      
      This means that glamor_fd_from_pixmap() was broken entirely, which broke
      a number of other things including glamor_shareable_fd_from_pixmap(),
      which meant that modesetting using multiple GPUs with the modesetting
      DDX was also broken. Easy reproducer:
      
      - Find a laptop with DRI prime that has outputs connected to the
        dedicated GPU and integrated GPU
      - Try to enable one display on each using the modesetting DDX
      - Fail
      
      Since there isn't a way to ask for no modifiers from
      glamor_fds_from_pixmap, we create a shared _glamor_fds_from_pixmap()
      function used by both glamor_fds_from_pixmap() and
      glamor_fd_from_pixmap() that calls down to the appropriate
      glamor_egl_fd*_from_pixmap() function.
      
      Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Cc: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
      Fixes: c8c276c9 ("glamor: Implement PixmapFromBuffers and BuffersFromPixmap")
      186a21c4
  18. May 28, 2018
  19. May 23, 2018
  20. May 16, 2018
    • Lukas F. Hartmann's avatar
      glamor_init: clamp GLSL to 120 if platform doesn't have instanced arrays · 7437b6db
      Lukas F. Hartmann authored and Adam Jackson's avatar Adam Jackson committed
      
      Hi,
      
      I upgraded Xwayland and the assorted libraries from git masters today,
      and noticed that glamor wouldn't work anymore on i.MX6/etnaviv. The
      error was:
      
      No provider of glVertexAttribDivisor found.  Requires one of:
          Desktop OpenGL 3.3
          OpenGL ES 3.0
          GL extension "GL_ANGLE_instanced_arrays"
          GL extension "GL_ARB_instanced_arrays"
          GL extension "GL_EXT_instanced_arrays"
          GL extension "GL_NV_instanced_arrays"
      
      The problem is that etnaviv offers GLSL 140 on GL 2.1 and glamor
      rendering assumes that glVertexAttribDivisor() is always available on
      GLSL>=130, which is not the case here. Forcing GLSL 120 makes glamor
      work fine again on this platform. After chatting with ajax in
      #xorg-devel, the following solution was proposed.
      
      This is my first time of submitting a patch, so please excuse me and
      advise if I'm doing it wrong ;)
      
      Cheers
      Lukas (mntmn)
      Reviewed-by: default avatarEric Anholt <eric@anholt.net>
      7437b6db
  21. May 08, 2018
  22. Mar 06, 2018
  23. Mar 05, 2018
  24. Feb 27, 2018
  25. Nov 15, 2017
  26. Nov 07, 2017
  27. Oct 30, 2017
  28. Oct 14, 2017
  29. Jun 03, 2017
Loading