<div dir="ltr"><div><div>Hi Tomasz,<br><br>This is for 17.2 only. Not master. I have a different fix for master.<br><br></div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br><br></div>Marek<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 29, 2017 at 5:02 PM, Tomasz Figa <span dir="ltr"><<a href="mailto:tfiga@chromium.org" target="_blank">tfiga@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">X/GLX can't handle them. This removes almost 500 GLX visuals that were<br>
incorrectly exposed.<br>
<br>
This replaces the revert originally requested by Marek and has the<br>
benefit of keeping Android running, while eliminating the risk of<br>
breaking X/GLX, until we provide a proper solution to deal with these<br>
formats.<br>
<br>
Suggested-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br>
Signed-off-by: Tomasz Figa <<a href="mailto:tfiga@chromium.org">tfiga@chromium.org</a>><br>
CC: <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
Fixes: f33d8af7aa354d "st/dri: add 32-bit RGBX/RGBA formats"<br>
---<br>
src/gallium/state_trackers/<wbr>dri/dri_screen.c | 12 ++++++++++++<br>
1 file changed, 12 insertions(+)<br>
<br>
diff --git a/src/gallium/state_trackers/<wbr>dri/dri_screen.c b/src/gallium/state_trackers/<wbr>dri/dri_screen.c<br>
index 1dd7bd3ec1..d1d7aa4840 100644<br>
--- a/src/gallium/state_trackers/<wbr>dri/dri_screen.c<br>
+++ b/src/gallium/state_trackers/<wbr>dri/dri_screen.c<br>
@@ -133,6 +133,11 @@ dri_fill_in_modes(struct dri_screen *screen)<br>
MESA_FORMAT_B8G8R8A8_SRGB,<br>
MESA_FORMAT_B8G8R8X8_SRGB,<br>
MESA_FORMAT_B5G6R5_UNORM,<br>
+#ifdef ANDROID<br>
+ /*<br>
+ * To reduce the risk of breaking non-Android users in stable release<br>
+ * let's keep these for Android alone until this is handled properly.<br>
+ */<br>
<br>
/* The 32-bit RGBA format must not precede the 32-bit BGRA format.<br>
* Likewise for RGBX and BGRX. Otherwise, the GLX client and the GLX<br>
@@ -154,6 +159,7 @@ dri_fill_in_modes(struct dri_screen *screen)<br>
<br>
/* Required by Android, for HAL_PIXEL_FORMAT_RGBX_8888. */<br>
MESA_FORMAT_R8G8B8X8_UNORM,<br>
+#endif<br>
};<br>
static const enum pipe_format pipe_formats[] = {<br>
PIPE_FORMAT_BGRA8888_UNORM,<br>
@@ -161,8 +167,14 @@ dri_fill_in_modes(struct dri_screen *screen)<br>
PIPE_FORMAT_BGRA8888_SRGB,<br>
PIPE_FORMAT_BGRX8888_SRGB,<br>
PIPE_FORMAT_B5G6R5_UNORM,<br>
+#ifdef ANDROID<br>
+ /*<br>
+ * To reduce the risk of breaking non-Android users in stable release<br>
+ * let's keep these for Android alone until this is handled properly.<br>
+ */<br>
PIPE_FORMAT_RGBA8888_UNORM,<br>
PIPE_FORMAT_RGBX8888_UNORM,<br>
+#endif<br>
};<br>
mesa_format format;<br>
__DRIconfig **configs = NULL;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.0.rc0.400.g1c36432dff-<wbr>goog<br>
<br>
</font></span></blockquote></div><br></div>