1
0
Fork 0
android_external_drm_hwcomp.../hwc2_device
Mark Yacoub 385b47c876 drm_hwcomposer: Implement display readback using writeback connectors
[Why]
Android requires a readback mechanism to validate display output,
especially in automated testing environments. This implementation is
particularly beneficial for writing automated tests with VKMS, as it
provides a reliable way to directly validate the rendered output.

[How]
Implement support for display readback using DRM/KMS writeback
connectors. This patch:
- Adds buffer management for readback operations
- Implements proper fence handling for both input and output operations
- Integrates with DRM atomic interface to configure writeback connectors
- Provides buffer readiness signaling to client applications

The implementation verifies hardware compatibility by finding matching
writeback connectors for displays and handles all resource lifecycle
management including buffer replacement and cleanup. This allows
tests to directly capture and verify the rendered output, ensuring
correctness and stability.

Test: VtsHalGraphicsComposer3_ReadbackTest
Change-Id: I12ec3d696b95bba79cbc560c525f573271a501bb
Signed-off-by: Mark Yacoub <markyacoub@google.com>
2025-04-11 17:33:23 -04:00
..
DrmHwcTwo.cpp drm_hwcomposer: Plumb link status BAD to OnHotplugEvent composer callback 2024-10-15 21:17:27 +00:00
DrmHwcTwo.h drm_hwcomposer: Plumb link status BAD to OnHotplugEvent composer callback 2024-10-15 21:17:27 +00:00
hwc2_device.cpp drm_hwcomposer: Remove HWC2 SetActiveConfig 2025-04-10 13:46:04 -06:00
HwcDisplay.cpp drm_hwcomposer: Implement display readback using writeback connectors 2025-04-11 17:33:23 -04:00
HwcDisplay.h drm_hwcomposer: Implement display readback using writeback connectors 2025-04-11 17:33:23 -04:00
HwcDisplayConfigs.cpp drm_hwcomposer: Add property for config groups 2024-12-04 09:54:14 -07:00
HwcDisplayConfigs.h drm_hwcomposer: Virtual display acceleration support 2023-10-01 15:00:59 +03:00
HwcLayer.cpp drm_hwcomposer: Don't import fb when headless 2025-04-09 13:38:41 -06:00
HwcLayer.h drm_hwcomposer: Plumb damage into Hwc layer data 2025-04-08 15:31:28 +00:00
meson.build drm_hwcomposer: Extract DrmHwc abstract base class 2024-08-12 12:27:10 -06:00