mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Merge branch 'github/fork/akvadrako/broadcast-rgb-property' into 'master'
drm backend: set "Broadcast RGB" = "Full" for all connections See merge request wlroots/wlroots!2310
This commit is contained in:
commit
59b33cd9a8
3 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,11 @@
|
|||
#include "backend/drm/iface.h"
|
||||
#include "backend/drm/util.h"
|
||||
|
||||
// connection property "Broadcast RGB" = "Full"
|
||||
#ifndef DRM_MODE_COLOR_RANGE_FULL
|
||||
#define DRM_MODE_COLOR_RANGE_FULL 1
|
||||
#endif
|
||||
|
||||
struct atomic {
|
||||
drmModeAtomicReq *req;
|
||||
bool failed;
|
||||
|
|
@ -231,6 +236,10 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
|
|||
|
||||
struct atomic atom;
|
||||
atomic_begin(&atom);
|
||||
if (conn->props.broadcast_rgb) {
|
||||
atomic_add(&atom, conn->id, conn->props.broadcast_rgb,
|
||||
DRM_MODE_COLOR_RANGE_FULL);
|
||||
}
|
||||
atomic_add(&atom, conn->id, conn->props.crtc_id, active ? crtc->id : 0);
|
||||
if (modeset && active && conn->props.link_status != 0) {
|
||||
atomic_add(&atom, conn->id, conn->props.link_status,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue