Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
7dddcf20
Commit
7dddcf20
authored
Apr 19, 2021
by
Xaver Hugl
Browse files
platforms/drm: Don't create outputs without primary plane in AMS
parent
d6cca178
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/platforms/drm/drm_gpu.cpp
View file @
7dddcf20
...
...
@@ -256,10 +256,15 @@ bool DrmGpu::updateOutputs()
continue
;
}
auto
primary
=
getCompatiblePlane
(
DrmPlane
::
TypeIndex
::
Primary
,
crtc
);
if
(
m_atomicModeSetting
&&
!
primary
)
{
continue
;
}
DrmOutput
*
output
=
new
DrmOutput
(
this
->
m_backend
,
this
);
output
->
m_conn
=
con
;
output
->
m_crtc
=
crtc
;
output
->
m_primaryPlane
=
getCompatiblePlane
(
DrmPlane
::
TypeIndex
::
Primary
,
crtc
)
;
output
->
m_primaryPlane
=
primary
;
qCDebug
(
KWIN_DRM
)
<<
"For new output use mode"
<<
con
->
currentMode
().
mode
.
name
;
if
(
!
output
->
init
())
{
...
...
src/plugins/platforms/drm/drm_output.cpp
View file @
7dddcf20
...
...
@@ -155,10 +155,6 @@ bool DrmOutput::moveCursor()
bool
DrmOutput
::
init
()
{
if
(
m_gpu
->
atomicModeSetting
()
&&
!
m_primaryPlane
)
{
return
false
;
}
setSubPixelInternal
(
m_conn
->
subpixel
());
setInternal
(
m_conn
->
isInternal
());
setCapabilityInternal
(
Capability
::
Dpms
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment