mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
egl/wayland: simplify dri2_initialize_wayland()
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:
parent
f7e0cdcf1a
commit
bd385c424b
1 changed files with 4 additions and 10 deletions
|
|
@ -2098,16 +2098,10 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
|
|||
EGLBoolean
|
||||
dri2_initialize_wayland(_EGLDisplay *disp)
|
||||
{
|
||||
EGLBoolean initialized = EGL_FALSE;
|
||||
|
||||
if (!disp->Options.ForceSoftware)
|
||||
initialized = dri2_initialize_wayland_drm(disp);
|
||||
|
||||
if (!initialized)
|
||||
initialized = dri2_initialize_wayland_swrast(disp);
|
||||
|
||||
return initialized;
|
||||
|
||||
if (disp->Options.ForceSoftware)
|
||||
return dri2_initialize_wayland_swrast(disp);
|
||||
else
|
||||
return dri2_initialize_wayland_drm(disp);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue