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
d83121db
Commit
d83121db
authored
May 10, 2022
by
Xaver Hugl
Browse files
backends/drm: also use modifiers by default for virtual outputs
parent
f02a6fd1
Pipeline
#174447
passed with stage
in 11 minutes and 56 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/backends/drm/virtual_egl_gbm_layer.cpp
View file @
d83121db
...
...
@@ -97,7 +97,7 @@ bool VirtualEglGbmLayer::createGbmSurface()
{
static
bool
modifiersEnvSet
=
false
;
static
const
bool
modifiersEnv
=
qEnvironmentVariableIntValue
(
"KWIN_DRM_USE_MODIFIERS"
,
&
modifiersEnvSet
)
!=
0
;
const
bool
allowModifiers
=
((
m_eglBackend
->
gpu
()
->
isNVidia
()
&&
!
modifiersEnvSet
)
||
(
modifiersEnv
Set
&&
modifiersEnv
))
;
const
bool
allowModifiers
=
!
modifiersEnvSet
||
modifiersEnv
;
const
auto
tranches
=
m_eglBackend
->
dmabuf
()
->
tranches
();
for
(
const
auto
&
tranche
:
tranches
)
{
...
...
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