Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_object_crtc.cpp
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "drm_object_crtc.h" | 20 | #include "drm_object_crtc.h" | ||
21 | #include "logging.h" | 21 | #include "logging.h" | ||
22 | 22 | | |||
23 | namespace KWin | 23 | namespace KWin | ||
24 | { | 24 | { | ||
25 | 25 | | |||
26 | DrmCrtc::DrmCrtc(uint32_t crtc_id, int fd) | 26 | DrmCrtc::DrmCrtc(uint32_t crtc_id, int fd, int resIndex) | ||
27 | : DrmObject(crtc_id, fd) | 27 | : DrmObject(crtc_id, fd), | ||
28 | m_resIndex(resIndex) | ||||
28 | { | 29 | { | ||
29 | } | 30 | } | ||
30 | 31 | | |||
31 | DrmCrtc::~DrmCrtc() = default; | 32 | DrmCrtc::~DrmCrtc() = default; | ||
32 | 33 | | |||
33 | bool DrmCrtc::init() | 34 | bool DrmCrtc::init() | ||
34 | { | 35 | { | ||
35 | qCDebug(KWIN_DRM) << "Creating CRTC" << m_id; | 36 | qCDebug(KWIN_DRM) << "Creating CRTC:" << resIndex() << "id:" << m_id; | ||
36 | 37 | | |||
37 | if (!initProps()) { | 38 | if (!initProps()) { | ||
38 | return false; | 39 | return false; | ||
39 | } | 40 | } | ||
40 | return true; | 41 | return true; | ||
41 | } | 42 | } | ||
42 | 43 | | |||
43 | bool DrmCrtc::initProps() | 44 | bool DrmCrtc::initProps() | ||
Show All 21 Lines |