platforms/drm: don't create modeset dumb buffer for import gpu

When the EglStreamBackend is used for the secondary GPU we don't need
the modesetting dumb buffer.
This commit is contained in:
Xaver Hugl 2021-06-25 00:41:05 +02:00
parent 14b70e5e77
commit 6260c03548

View file

@ -301,10 +301,11 @@ bool EglStreamBackend::resetOutput(Output &o, DrmOutput *drmOutput)
{
o.output = drmOutput;
QSize sourceSize = drmOutput->hardwareTransforms() ? drmOutput->pixelSize() : drmOutput->modeSize();
// dumb buffer used for modesetting
o.buffer = QSharedPointer<DrmDumbBuffer>::create(m_gpu, sourceSize);
if (isPrimary()) {
// dumb buffer used for modesetting
o.buffer = QSharedPointer<DrmDumbBuffer>::create(m_gpu, sourceSize);
EGLAttrib streamAttribs[] = {
EGL_STREAM_FIFO_LENGTH_KHR, 0, // mailbox mode
EGL_CONSUMER_AUTO_ACQUIRE_EXT, EGL_FALSE,