[plugins/hwcomposer] Use an RGBA_8888 format for rendering surface

Summary:
When sharing surface and config used by the compositor scene with
QtQuick's OpenGL context an RGBA surface makes Qt way more happy.

Reviewers: #kwin, #plasma_on_wayland

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D2232
This commit is contained in:
Martin Gräßlin 2016-07-19 08:16:54 +02:00
parent 8445008e85
commit a95be71ec1
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ bool EglHwcomposerBackend::initBufferConfigs()
EGL_RED_SIZE, 8,
EGL_GREEN_SIZE, 8,
EGL_BLUE_SIZE, 8,
EGL_ALPHA_SIZE, 0,
EGL_ALPHA_SIZE, 8,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_NONE,
};

View file

@ -391,7 +391,7 @@ static void initLayer(hwc_layer_1_t *layer, const hwc_rect_t &rect)
}
HwcomposerWindow::HwcomposerWindow(HwcomposerBackend *backend)
: HWComposerNativeWindow(backend->size().width(), backend->size().height(), HAL_PIXEL_FORMAT_RGB_888)
: HWComposerNativeWindow(backend->size().width(), backend->size().height(), HAL_PIXEL_FORMAT_RGBA_8888)
, m_backend(backend)
{
setBufferCount(3);