Revert "egl: Remove old tuna BGRA vs RGBA workaround."
This reverts commit 733a807547
.
Change-Id: Ifb41720ed020489892a667914ea3bd3f1ac6504e
This commit is contained in:
parent
e3fc10fbb7
commit
bcce313fea
@ -47,6 +47,9 @@ LOCAL_CFLAGS += -DEGL_TRACE=1
|
||||
ifeq ($(BOARD_ALLOW_EGL_HIBERNATION),true)
|
||||
LOCAL_CFLAGS += -DBOARD_ALLOW_EGL_HIBERNATION
|
||||
endif
|
||||
ifeq ($(TARGET_BOARD_PLATFORM), omap4)
|
||||
LOCAL_CFLAGS += -DWORKAROUND_BUG_10194508=1
|
||||
endif
|
||||
ifneq ($(MAX_EGL_CACHE_ENTRY_SIZE),)
|
||||
LOCAL_CFLAGS += -DMAX_EGL_CACHE_ENTRY_SIZE=$(MAX_EGL_CACHE_ENTRY_SIZE)
|
||||
endif
|
||||
|
@ -466,6 +466,14 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config,
|
||||
EGLint format = HAL_PIXEL_FORMAT_RGBA_8888;
|
||||
android_dataspace dataSpace = HAL_DATASPACE_UNKNOWN;
|
||||
|
||||
#if WORKAROUND_BUG_10194508
|
||||
if (!cnx->egl.eglGetConfigAttrib(iDpy, config, EGL_NATIVE_VISUAL_ID,
|
||||
&format)) {
|
||||
ALOGE("eglGetConfigAttrib(EGL_NATIVE_VISUAL_ID) failed: %#x",
|
||||
eglGetError());
|
||||
format = 0;
|
||||
}
|
||||
#else
|
||||
EGLint a = 0;
|
||||
cnx->egl.eglGetConfigAttrib(iDpy, config, EGL_ALPHA_SIZE, &a);
|
||||
if (a > 0) {
|
||||
@ -484,6 +492,7 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config,
|
||||
format = HAL_PIXEL_FORMAT_RGBX_8888;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// now select a corresponding sRGB format if needed
|
||||
if (attrib_list && dp->haveExtension("EGL_KHR_gl_colorspace")) {
|
||||
|
Loading…
Reference in New Issue
Block a user