summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-11-02 09:27:56 -0500
committerChris Michael <cp.michael@samsung.com>2015-11-02 09:30:30 -0500
commit0c9011d9e0bd23ef6f8b7137328e461dbf9a0e0a (patch)
tree6d4c7ce32f43f44b51f50617ac4443d08f2ad376
parent444926923fde111d66b4342a3af48b6972a2dffc (diff)
evas-gl-drm: Fix issue of gl_drm engine not working
Summary: With linux kernels >= 4.2.x, the gl_drm engine was not functional. This is due to the egl config returning an improper config which did not match the expected pixel format. This commit fixes that issue and gl_drm evas engine works again. Should fix ticket T2807 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index ca4f3e1b4c..cde72b1935 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -191,24 +191,18 @@ _evas_outbuf_egl_setup(Outbuf *ob)
191 ctx_attr[1] = 2; 191 ctx_attr[1] = 2;
192 ctx_attr[2] = EGL_NONE; 192 ctx_attr[2] = EGL_NONE;
193 193
194 cfg_attr[n++] = EGL_BUFFER_SIZE;
195 cfg_attr[n++] = 32;
196 cfg_attr[n++] = EGL_DEPTH_SIZE;
197 cfg_attr[n++] = EGL_DONT_CARE;
198 cfg_attr[n++] = EGL_STENCIL_SIZE;
199 cfg_attr[n++] = EGL_DONT_CARE;
200 cfg_attr[n++] = EGL_RENDERABLE_TYPE; 194 cfg_attr[n++] = EGL_RENDERABLE_TYPE;
201 cfg_attr[n++] = EGL_OPENGL_ES2_BIT; 195 cfg_attr[n++] = EGL_OPENGL_ES2_BIT;
202 cfg_attr[n++] = EGL_SURFACE_TYPE; 196 cfg_attr[n++] = EGL_SURFACE_TYPE;
203 cfg_attr[n++] = EGL_WINDOW_BIT; 197 cfg_attr[n++] = EGL_WINDOW_BIT;
204#if 0 198
205 cfg_attr[n++] = EGL_RED_SIZE; 199 cfg_attr[n++] = EGL_RED_SIZE;
206 cfg_attr[n++] = 1; 200 cfg_attr[n++] = 1;
207 cfg_attr[n++] = EGL_GREEN_SIZE; 201 cfg_attr[n++] = EGL_GREEN_SIZE;
208 cfg_attr[n++] = 1; 202 cfg_attr[n++] = 1;
209 cfg_attr[n++] = EGL_BLUE_SIZE; 203 cfg_attr[n++] = EGL_BLUE_SIZE;
210 cfg_attr[n++] = 1; 204 cfg_attr[n++] = 1;
211#endif 205
212 206
213 cfg_attr[n++] = EGL_ALPHA_SIZE; 207 cfg_attr[n++] = EGL_ALPHA_SIZE;
214 if (ob->destination_alpha) cfg_attr[n++] = 1; 208 if (ob->destination_alpha) cfg_attr[n++] = 1;