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
d0c12ac5
Commit
d0c12ac5
authored
Feb 08, 2022
by
Xaver Hugl
Browse files
backends/drm: ignore modifier env var if modifiers are not supported
Otherwise we might crash
parent
11175cb0
Pipeline
#135071
passed with stage
in 15 minutes and 3 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/backends/drm/egl_gbm_backend.cpp
View file @
d0c12ac5
...
...
@@ -162,7 +162,7 @@ bool EglGbmBackend::resetOutput(Output &output)
QSharedPointer
<
GbmSurface
>
gbmSurface
;
bool
modifiersEnvSet
=
false
;
static
bool
modifiersEnv
=
qEnvironmentVariableIntValue
(
"KWIN_DRM_USE_MODIFIERS"
,
&
modifiersEnvSet
)
!=
0
;
static
bool
allowModifiers
=
(
gpu
()
->
isNVidia
()
&&
!
modifiersEnvSet
)
||
(
modifiersEnvSet
&&
modifiersEnv
);
static
bool
allowModifiers
=
gpu
()
->
addFB2ModifiersSupported
()
&&
(
(
gpu
()
->
isNVidia
()
&&
!
modifiersEnvSet
)
||
(
modifiersEnvSet
&&
modifiersEnv
)
)
;
#if HAVE_GBM_BO_GET_FD_FOR_PLANE
if
(
!
allowModifiers
)
{
#else
...
...
Xaver Hugl
@zamundaaa
mentioned in commit
9f95798f
·
Feb 08, 2022
mentioned in commit
9f95798f
mentioned in commit 9f95798fc46322314c18fdf74fdf7a2e51c917f2
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