mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: remove wlr_drm_crtc_state.active
Replace it with drm_connector_state_active, which figures out whether the connector is active depending on the wlr_output_state to be applied.
This commit is contained in:
parent
485ecc11a6
commit
dfea0ff31d
4 changed files with 26 additions and 20 deletions
|
|
@ -42,7 +42,6 @@ struct wlr_drm_plane {
|
|||
};
|
||||
|
||||
struct wlr_drm_crtc_state {
|
||||
bool active;
|
||||
struct wlr_drm_mode *mode;
|
||||
};
|
||||
|
||||
|
|
@ -160,6 +159,8 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm,
|
|||
struct wlr_drm_fb *plane_get_next_fb(struct wlr_drm_plane *plane);
|
||||
|
||||
bool drm_connector_state_is_modeset(const struct wlr_output_state *state);
|
||||
bool drm_connector_state_active(struct wlr_drm_connector *conn,
|
||||
const struct wlr_output_state *state);
|
||||
|
||||
#define wlr_drm_conn_log(conn, verb, fmt, ...) \
|
||||
wlr_log(verb, "connector %s: " fmt, conn->name, ##__VA_ARGS__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue