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
18f857b1
Commit
18f857b1
authored
Apr 11, 2021
by
Xaver Hugl
Browse files
platforms/drm: fix crash with multi-gpu
parent
fbdcdaf1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/platforms/drm/egl_gbm_backend.cpp
View file @
18f857b1
...
...
@@ -272,13 +272,13 @@ int EglGbmBackend::getDmabufForSecondaryGpuOutput(AbstractOutput *output, uint32
return
-
1
;
}
it
->
secondaryBuffer
=
QSharedPointer
<
GbmBuffer
>::
create
(
it
->
gbmSurface
);
int
fd
=
gbm_bo_get_fd
(
it
->
b
uffer
->
getBo
());
int
fd
=
gbm_bo_get_fd
(
it
->
secondaryB
uffer
->
getBo
());
if
(
fd
==
-
1
)
{
qCDebug
(
KWIN_DRM
)
<<
"failed to export gbm_bo as dma-buf!"
;
return
-
1
;
}
*
format
=
gbm_bo_get_format
(
it
->
b
uffer
->
getBo
());
*
stride
=
gbm_bo_get_stride
(
it
->
b
uffer
->
getBo
());
*
format
=
gbm_bo_get_format
(
it
->
secondaryB
uffer
->
getBo
());
*
stride
=
gbm_bo_get_stride
(
it
->
secondaryB
uffer
->
getBo
());
return
fd
;
}
...
...
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