summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-07-11 14:27:43 +0100
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-07-12 18:17:23 +0000
commitca6dc3b7f49ce0c5796d43c4eff9f117fa9e9016 (patch)
tree86a952319e5ff698487fa4431717d28f56c54b94
parentf7f64ad0ac19ac27f873c93b785768cd30fb57b9 (diff)
FROMLIST: egl/android: remove HAL_PIXEL_FORMAT_BGRA_8888 support
As said in the EGL_KHR_platform_android extensions For each EGLConfig that belongs to the Android platform, the EGL_NATIVE_VISUAL_ID attribute is an Android window format, such as WINDOW_FORMAT_RGBA_8888. Although it should be applicable overall. Even though we use HAL_PIXEL_FORMAT here, those are numerically identical to the WINDOW_FORMAT_ and AHARDWAREBUFFER_FORMAT_ ones. Barring the said format of course. That one is only listed in HAL. Keep in mind that even if we try to use the said format, you'll get caught by droid_create_surface(). The function compares the format of the underlying window, against the NATIVE_VISUAL_ID of the config. Unfortunatelly it only prints a warning, rather than error out, likely leading to visual corruption. While SDL will even call ANativeWindow_setBuffersGeometry() with the wrong format, and conviniently ignore the [expected] failure. Cc: mesa-stable@lists.freedesktop.org Cc: Chad Versace <chadversary@google.com> Cc: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Tomasz Figa <tfiga@chromium.org> (am from https://patchwork.freedesktop.org/patch/166176/) (tfiga: Remove only respective EGL config, leave EGL image as is.) BUG=b:33533853 TEST=dEQP-EGL.functional.*.rgba8888_window tests pass on eve Change-Id: I8eacfe852ede88b24c1a45bff1445aacd86f6992 Signed-off-by: Tomasz Figa <tfiga@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/582263 Reviewed-by: Chad Versace <chadversary@chromium.org> (cherry picked from commit 42c96d393b04defb998b17a0fbde09356922e778) BUG=b:77235812 TEST=emerge-grunt arc-mesa; emerge-eve arc-mesa Change-Id: I74e91a3621fcc9c80633cf512a8d08782ac6e1d7 Reviewed-on: https://chromium-review.googlesource.com/1105707 Commit-Queue: Chad Versace <chadversary@chromium.org> Tested-by: Chad Versace <chadversary@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
-rw-r--r--src/egl/drivers/dri2/platform_android.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index d6826048081..01b1b5eabd6 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1058,7 +1058,6 @@ droid_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
{ HAL_PIXEL_FORMAT_RGBA_8888, { 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 } },
{ HAL_PIXEL_FORMAT_RGBX_8888, { 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000 } },
{ HAL_PIXEL_FORMAT_RGB_565, { 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000 } },
- { HAL_PIXEL_FORMAT_BGRA_8888, { 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 } },
};
unsigned int format_count[ARRAY_SIZE(visuals)] = { 0 };