Skip to content

Draft: new feature: add secure display wayland protocol implementation

sophia gong requested to merge sophia/weston-virtual:main into main

It's to implement secure display wayland protocol in weston compositor.

The drm backend driver adds new vfuncs set_roi and get_crc in drm output to commute roi and crc between compositor and display kms driver. It also creates a globals secure_display_manager to maintain display resources, a wl_list is created in this globals data structure to keep multiple display outputs that perform roi region correctness check.

A simple test case is created at client side, it draws a GLES rectangle and sends the rect's screen coordinates to drm backend as roi region. when crc is received by a registered listener, it compares the data with pre-stored crc for correctness check. This verification performs for each display frame and will reports insecure warning if crc changes.

This patch splits into three sub commits: 1. A compositor drm patch to define new drm crtc roi and crc properties. 2. A compositor protocol implementation patch. 3. A client application patch.

related wayland protocol patch: wayland-protocols!198

Signed-off-by: Sophia Gong lili.gong@amd.com

Merge request reports

Loading