diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2018-02-13 14:05:02 -0500 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-02-22 14:01:48 +0800 |
commit | b22875aae971bc28d74a676244fe533b3ccd1462 (patch) | |
tree | f816d76249feea4cdb6185c1a0b8e07f380b0227 /src | |
parent | 962712ddc2dbfc72c7d84d444569832cf7e12b0d (diff) | |
download | mutter-b22875aae971bc28d74a676244fe533b3ccd1462.tar.gz |
renderer/native: Use the right EGL image parameters for extra planes
There was a typo for modifier parameter of planes 1 & 2.
https://gitlab.gnome.org/GNOME/mutter/issues/18
Diffstat (limited to 'src')
-rw-r--r-- | src/backends/native/meta-renderer-native-gles3.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backends/native/meta-renderer-native-gles3.c b/src/backends/native/meta-renderer-native-gles3.c index 3bb09ce76..a606d0ddd 100644 --- a/src/backends/native/meta-renderer-native-gles3.c +++ b/src/backends/native/meta-renderer-native-gles3.c @@ -106,9 +106,9 @@ create_egl_image (MetaEgl *egl, attribs[atti++] = strides[1]; if (has_modifier) { - attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT; + attribs[atti++] = EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT; attribs[atti++] = modifiers[1] & 0xFFFFFFFF; - attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT; + attribs[atti++] = EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT; attribs[atti++] = modifiers[1] >> 32; } } @@ -123,9 +123,9 @@ create_egl_image (MetaEgl *egl, attribs[atti++] = strides[2]; if (has_modifier) { - attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT; + attribs[atti++] = EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT; attribs[atti++] = modifiers[2] & 0xFFFFFFFF; - attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT; + attribs[atti++] = EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT; attribs[atti++] = modifiers[2] >> 32; } } @@ -190,9 +190,9 @@ meta_renderer_native_gles3_blit_shared_bo (MetaEgl *egl, unsigned int width; unsigned int height; uint32_t i, n_planes; - uint32_t strides[4] = { 0, }; - uint32_t offsets[4] = { 0, }; - uint64_t modifiers[4] = { 0, }; + uint32_t strides[4] = { 0 }; + uint32_t offsets[4] = { 0 }; + uint64_t modifiers[4] = { 0 }; uint32_t format; EGLImageKHR egl_image; |