mesa/src
Mauro Rossi b1e0876a6b egl/android: fix regression in drm_gralloc path (v2)
This patch fixes a regression in mesa 18.2 and mesa-dev branches
for HAVE_DRM_GRALLOC code path which is causing black screen on Android
and prevents boot due to SIGSEGV MAPERR crash related to unproper handling
of drm_gralloc drm FD in new droid_open_device() path.

Problem is due to c7bb82136b ("egl/android: Add DRM node probing and filtering")

To avoid the crash the former existing working droid_open_device() is restored,
renamed droid_open_device_drm_gralloc() and kept within HAVE_DRM_GRALLOC braces.

Tested with mesa-dev and mesa 18.2 branch and oreo-x86 bootanimation
and Androdi GUI booting is fixed with i965, nouveau, radeon.
The changes are compatible with gbm_gralloc, I've tested build with hwc too.

(v2) remove indentation from HAVE_DRM_GRALLOC pre-processor directive

NOTE: Definition of enum{} for GRALLOC_MODULE_PERFORM_GET_DRM_FD
is not necessary and it's actually causing a redefinition building error,
because in HAVE_DRM_GRALLOC path gralloc_drm.h is already exported
by libgralloc_drm which is currently still a dependency.

Fixes: c7bb82136b ("egl/android: Add DRM node probing and filtering")
Cc: "18.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
(cherry picked from commit 73b342c7a5)
2018-08-15 15:45:34 +03:00
..
amd radv: Allow ETC2 on RAVEN and VEGA10 instead of all GFX9. 2018-08-14 23:52:11 +03:00
broadcom v3d: Emit the VCM_CACHE_SIZE packet. 2018-08-07 20:55:09 +03:00
compiler glsl: handle error case with ast_post_inc, ast_post_dec 2018-08-10 15:26:21 +03:00
egl egl/android: fix regression in drm_gralloc path (v2) 2018-08-15 15:45:34 +03:00
gallium vc4: Fix vc4_fence_server_sync() on pre-syncobj kernels. 2018-08-09 03:48:49 +03:00
gbm gbm: Add support for 10bpp BGR formats 2018-08-01 12:55:37 +01:00
getopt
glx glx: GLX_MESA_multithread_makecurrent is direct-only 2018-08-10 15:29:09 +03:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel blorp: Properly handle Z24X8 blits. 2018-08-13 12:45:28 +03:00
loader loader_dri3: Handle mismatched depth 30 formats for Prime renderoffload. 2018-08-01 12:55:37 +01:00
mapi mesa: GL_MESA_framebuffer_flip_y extension [v4] 2018-07-27 12:32:25 -07:00
mesa intel: Switch the order of the 2x MSAA sample positions 2018-08-13 12:43:03 +03:00
util drirc: Allow extension midshader for Metro Redux 2018-08-10 15:24:45 +03:00
vulkan vulkan/wsi: fix incorrect assignment in assert() 2018-07-25 20:55:35 +01:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am egl: rewire the build systems to use libwayland-egl 2018-06-06 12:11:57 -07:00
meson.build v3d: Fix meson build without vc4. 2018-07-29 19:22:33 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00