[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> |
||
|---|---|---|
| .. | ||
| DrmHwcTwo.cpp | ||
| DrmHwcTwo.h | ||
| hwc2_device.cpp | ||
| HwcDisplay.cpp | ||
| HwcDisplay.h | ||
| HwcDisplayConfigs.cpp | ||
| HwcDisplayConfigs.h | ||
| HwcLayer.cpp | ||
| HwcLayer.h | ||
| meson.build | ||