backends/drm: fix build with HAVE_GBM_BO_GET_FD_FOR_PLANE=0

This commit is contained in:
Xaver Hugl 2022-04-27 16:16:07 +02:00
parent 000f3d839f
commit b522bbc8fc

View file

@ -168,7 +168,7 @@ bool EglGbmLayerSurface::createGbmSurface(const QSize &size, uint32_t format, co
if (!allowModifiers) { if (!allowModifiers) {
#else #else
// modifiers have to be disabled with multi-gpu if gbm_bo_get_fd_for_plane is not available // modifiers have to be disabled with multi-gpu if gbm_bo_get_fd_for_plane is not available
if (!allowModifiers || m_pipeline->gpu() != m_eglBackend->gpu()) { if (!allowModifiers || m_gpu != m_eglBackend->gpu()) {
#endif #endif
int flags = GBM_BO_USE_RENDERING; int flags = GBM_BO_USE_RENDERING;
if (m_gpu == m_eglBackend->gpu()) { if (m_gpu == m_eglBackend->gpu()) {