WIP: [platforms/drm] Introduce DrmDevice class
Needs ReviewPublic

Authored by zzag on Jul 2 2019, 5:14 PM.

Details

Reviewers
None
Group Reviewers
KWin
Summary

This change is a prerequisite for multi-GPU support.

Overall, the desired design:

  • there are multiple DrmDevice devices;
  • all DrmDevice devices form master-slave relationship, where master

device, aka primary device, is used for all rendering and exporting
PRIME buffers;

  • Each DRM object is associated with one particular DRM device.

In general it would be nice to refactor rendering infrastructure in
kwin, perhaps we need several "renderers." One that is used for rendering
the scene, and the other one is used to render cursors (animated cursors
is PITA).

The DrmDevice class is currently a no-op. I submitted this change just
to let you know what I'm working on.

Diff Detail

Repository
R108 KWin
Branch
platform-drm-device
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 13523
Build 13541: arc lint + arc unit
zzag created this revision.Jul 2 2019, 5:14 PM
Restricted Application added a project: KWin. · View Herald TranscriptJul 2 2019, 5:14 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Jul 2 2019, 5:14 PM