mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 00:37:59 +02:00
compositor-drm: Add backend pointer to drm_output
Add this for convenience, so it's easier to access when we add the DRM backend debug scope. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
3158a2d42e
commit
64dbbee7f6
1 changed files with 3 additions and 0 deletions
|
|
@ -463,6 +463,7 @@ struct drm_head {
|
|||
|
||||
struct drm_output {
|
||||
struct weston_output base;
|
||||
struct drm_backend *backend;
|
||||
|
||||
uint32_t crtc_id; /* object ID to pass to DRM functions */
|
||||
int pipe; /* index of CRTC in resource array / bitmasks */
|
||||
|
|
@ -6104,6 +6105,8 @@ drm_output_create(struct weston_compositor *compositor, const char *name)
|
|||
if (output == NULL)
|
||||
return NULL;
|
||||
|
||||
output->backend = b;
|
||||
|
||||
weston_output_init(&output->base, compositor, name);
|
||||
|
||||
output->base.enable = drm_output_enable;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue