Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ec2531af5f5f7988829cb9c7a7490e7c8171eb0f
      
https://github.com/WebKit/WebKit/commit/ec2531af5f5f7988829cb9c7a7490e7c8171eb0f
  Author: Lauro Moura <[email protected]>
  Date:   2025-09-29 (Mon, 29 Sep 2025)

  Changed paths:
    M Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp

  Log Message:
  -----------
  [WPE] WPE Platform: use gbm_import_fd_modifier_data in 
WPEBufferDMABuf.import_to_pixels
https://bugs.webkit.org/show_bug.cgi?id=299575

Reviewed by Carlos Garcia Campos.

GBM offers the struct gbm_import_fd_modifier_data that we can use with
gbm_bo_import to let it know more details about the format of the
buffer, like modifier flags and multiple planes. Using it allows to
read pixels from non-linear (e.g. tiled ) or multi-planar buffers,
leaving only the pixel format as the only remaining constraint.

Also, we don't need to pass the GBM_BO_USE_RENDERING and
GBM_BO_USE_LINEAR flags to gbm_bo_import, as they're relevant only when
creating BO instances. In fact, gbm_bo_map already "exposes a linear
view of the buffer even if the buffer has a non-linear modifier".

* Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp:
(wpeBufferDMABufImportToPixels):

Canonical link: https://commits.webkit.org/300687@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to