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>
}
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";