weston/libweston/backend-drm
Daniel Stone d32dfcf833 backend-drm: Enforce content protection for hardware planes
62626cbfec ensures that the GL render will not render a view's content
to the screen when the surface has requested a higher content-protection
level than the output currently offers.

When the HDCP MR was split into the core content-protection support in !83
and specific DRM support for HDCP in !48 (not yet landed), this opened a
hole where the DRM backend could promote a view to a hardware plane,
even if the output offered a lower protection level than the surface
wanted to enforce.

In the DRM backend, check the desired protection level, and refuse to
promote the view to a hardware plane if the output does not offer
sufficient protection. This will lead to presentation falling back to
the renderer, which may censor the content, reduce quality, etc.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 4b6e73d617 ("libweston: Add support to set content-protection for a weston_surface")
2019-08-23 20:51:43 +00:00
..
drm-internal.h weston-debug: Rename weston-debug to weston-log to better reflect its purpose 2019-07-18 10:49:39 +03:00
drm.c weston-debug: Rename weston-debug to weston-log to better reflect its purpose 2019-07-18 10:49:39 +03:00
fb.c backend-drm: Enforce content protection for hardware planes 2019-08-23 20:51:43 +00:00
kms.c backend-drm: get handle in gbm specific code 2019-07-08 23:53:30 +02:00
libbacklight.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build compositor-drm: Split assign_planes() into separate file 2019-06-26 23:08:36 +01:00
modes.c compositor-drm: Move mode handling to separate file 2019-06-26 23:08:36 +01:00
state-helpers.c compositor-drm: Move state helpers to separate file 2019-06-26 23:08:36 +01:00
state-propose.c compositor-drm: Split assign_planes() into separate file 2019-06-26 23:08:36 +01:00
vaapi-recorder.c backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00