1. 22 Sep, 2020 2 commits
    • Olivier Fourdan's avatar
      xwayland: Add a flag for n-buffers in EGL backend · 0b86c0c3
      Olivier Fourdan authored
      
      
      Using multiple window buffers crashes with EGLStream, which does not
      need it anyway as this is handled through EGL directly.
      
      Add a flag to the EGL backend to indicate whether it would benefit from
      multiple buffers and use this in the get_buffer() function.
      
      Thanks to Adam Jackson <ajax@redhat.com> for pointing out that issue
      with EGLStream.
      
      v2: Fix logical test (Adam Jackson <ajax@redhat.com>)
      Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      0b86c0c3
    • Olivier Fourdan's avatar
      xwayland: Add a flag to expose EGL backend features · ae84f14f
      Olivier Fourdan authored
      
      
      The present flip does not work with the EGLStream backend. Similarly,
      the EGLStream backend does not require the buffer to be flushed as
      eglSwapBuffers() should take care of this.
      
      Instead of actually checking the backend in use in the present code,
      add a flag in the form of a bitfield to the EGL backend to indicate
      its features and requirements.
      
      This should not introduce any functional change.
      
      v2: Fix logical test (Adam Jackson <ajax@redhat.com>)
      Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      ae84f14f
  2. 11 Feb, 2020 1 commit
  3. 31 Jan, 2020 1 commit
    • Michel Dänzer's avatar
      xwayland/glamor-gbm: Add xwl_glamor_gbm_post_damage hook · 9e85aa9c
      Michel Dänzer authored
      It flushes any pending drawing to the kernel, to make sure it'll be
      visible to the Wayland server.
      
      Without this, it was possible for the Wayland server to process surface
      commits before Xwayland got around to flushing the corresponding
      drawing, which could result in stale or even completely random window
      contents being visible.
      
      v2:
      * Make EGL backend post_damage hook mandatory, don't check for NULL in
        xwl_glamor_post_damage. (Olivier Fourdan)
      
      Closes: xorg/xserver#951
      
      Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      9e85aa9c
  4. 20 Dec, 2019 2 commits