egl/android: simplify dri2_initialize_android()

eglInitialize() already handles the "retry using the software path"
logic, there's no need to repeat it here.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6353>
This commit is contained in:
Eric Engestrom 2020-08-17 20:30:47 +02:00 committed by Marge Bot
parent cccb497d3c
commit 83b5c1abc6

View file

@ -1601,10 +1601,7 @@ dri2_initialize_android(_EGLDisplay *disp)
}
disp->DriverData = (void *) dri2_dpy;
if (!disp->Options.ForceSoftware)
device_opened = droid_open_device(disp, false);
if (!device_opened)
device_opened = droid_open_device(disp, true);
device_opened = droid_open_device(disp, disp->Options.ForceSoftware);
if (!device_opened) {
err = "DRI2: failed to open device";