Skip to content
Snippets Groups Projects
  1. Dec 01, 2020
  2. Nov 09, 2020
  3. Nov 04, 2020
    • Alex Goins's avatar
      glamor: Update pixmap's devKind when making it exportable · b3ae038c
      Alex Goins authored and Aaron Plattner's avatar Aaron Plattner committed
      
      When making a pixmap exportable, glamor will currently create a temporary
      exported pixmap backed by a GBM bo, with the devKind updated to the stride of
      the bo. However, when the backing of the exported pixmap is swapped into the
      original, the devKind of the original is not updated.
      
      Some GBM bos may get implicitly padded, in which case the devKind of the pixmap
      will not match the stride of the backing bo. For example, an 800x600 pixmap will
      have a devKind of 3200, but the bo's stride will be 3328. This can cause
      corruption with PRIME, when the sink uses the wrong stride to display the shared
      pixmap.
      
      This commit changes glamor_make_pixmap_exportable() to update the devKind of the
      original pixmap after it swaps exported pixmap's backing into it, keeping
      everything consistent.
      
      Fixes issue #1018.
      
      Signed-off-by: default avatarAlex Goins <agoins@nvidia.com>
      Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
      Reviewed-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
      (cherry picked from commit 7a7e55c5)
      b3ae038c
  4. Nov 02, 2020
  5. Oct 08, 2020
  6. Oct 01, 2020
  7. Sep 30, 2020
  8. Sep 25, 2020
  9. Sep 08, 2020
  10. Aug 25, 2020
  11. Aug 18, 2020
Loading