Skip to content
GitLab
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
c952c3a3
Commit
c952c3a3
authored
Jan 22, 2022
by
Xaver Hugl
Browse files
backends/drm: add environment variable KWIN_DRM_NO_DIRECT_SCANOUT
Can be useful for debugging
parent
52bc4606
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/drm/egl_gbm_backend.cpp
View file @
c952c3a3
...
...
@@ -633,6 +633,11 @@ void EglGbmBackend::updateBufferAge(Output &output, const QRegion &dirty)
bool
EglGbmBackend
::
scanout
(
AbstractOutput
*
drmOutput
,
SurfaceItem
*
surfaceItem
)
{
static
bool
valid
;
static
const
bool
directScanoutDisabled
=
qEnvironmentVariableIntValue
(
"KWIN_DRM_NO_DIRECT_SCANOUT"
,
&
valid
)
==
1
&&
valid
;
if
(
directScanoutDisabled
)
{
return
false
;
}
Q_ASSERT
(
m_outputs
.
contains
(
drmOutput
));
SurfaceItemWayland
*
item
=
qobject_cast
<
SurfaceItemWayland
*>
(
surfaceItem
);
if
(
!
item
)
{
...
...
Xaver Hugl
@zamundaaa
mentioned in commit
bec429ae
·
Jan 27, 2022
mentioned in commit
bec429ae
mentioned in commit bec429ae67e4d254487cb28d87bd518c4ef822f1
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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