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
a23d2359
Commit
a23d2359
authored
Apr 02, 2022
by
Xaver Hugl
Browse files
backends/drm: check egl config before creating gbm surface
parent
9d3f77f6
Pipeline
#158844
passed with stage
in 31 minutes and 27 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/backends/drm/egl_gbm_backend.cpp
View file @
a23d2359
...
...
@@ -291,7 +291,7 @@ bool EglGbmBackend::prefer10bpc() const
EGLConfig
EglGbmBackend
::
config
(
uint32_t
format
)
const
{
return
m_configs
[
format
]
;
return
m_configs
.
value
(
format
,
EGL_NO_CONFIG_KHR
)
;
}
QSharedPointer
<
DrmPipelineLayer
>
EglGbmBackend
::
createDrmPipelineLayer
(
DrmPipeline
*
pipeline
)
...
...
src/backends/drm/egl_gbm_layer.cpp
View file @
a23d2359
...
...
@@ -200,6 +200,9 @@ bool EglGbmLayer::createGbmSurface(uint32_t format, const QVector<uint64_t> &mod
const
auto
size
=
m_pipeline
->
bufferSize
();
const
auto
config
=
m_eglBackend
->
config
(
format
);
if
(
config
==
EGL_NO_CONFIG_KHR
)
{
return
false
;
}
QSharedPointer
<
GbmSurface
>
gbmSurface
;
#if HAVE_GBM_BO_GET_FD_FOR_PLANE
...
...
Xaver Hugl
@zamundaaa
mentioned in merge request
!1174
·
Apr 05, 2022
mentioned in merge request
!1174
mentioned in merge request !1174
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