"description": "egl: move dri2_setup_device() after dri2_setup_extensions()",
"nominated": true,
"nomination_type": 4,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null
dri2_dpy->fd_display_gpu = dri2_dpy->fd_render_gpu;
- if (!dri2_setup_device(disp, false)) {
- err = "DRI2: failed to setup EGLDevice";
+ if (!dri2_setup_extensions(disp)) {
+ err = "DRI2: failed to setup extensions";
goto cleanup;
}
- if (!dri2_setup_extensions(disp)) {
- err = "DRI2: failed to setup extensions";
+ if (!dri2_setup_device(disp, false)) {
+ err = "DRI2: failed to setup EGLDevice";
goto cleanup;
}
goto cleanup;
}
- if (!dri2_setup_device(disp, dri2_dpy->gbm_dri->software)) {
- err = "DRI2: failed to setup EGLDevice";
- goto cleanup;
- }
-
dri2_dpy->driver_name = strdup(dri2_dpy->gbm_dri->driver_name);
if (!dri2_load_driver_dri3(disp)) {
goto cleanup;
}
+ if (!dri2_setup_device(disp, dri2_dpy->gbm_dri->software)) {
+ err = "DRI2: failed to setup EGLDevice";
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
if (!drm_add_configs_for_visuals(disp)) {
loader_get_user_preferred_fd(&dri2_dpy->fd_render_gpu,
&dri2_dpy->fd_display_gpu);
- if (!dri2_setup_device(disp, false)) {
- _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
- goto cleanup;
- }
-
if (dri2_dpy->fd_render_gpu != dri2_dpy->fd_display_gpu) {
free(dri2_dpy->device_name);
dri2_dpy->device_name =
if (!dri2_setup_extensions(disp))
goto cleanup;
+ if (!dri2_setup_device(disp, false)) {
+ _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
dri2_wl_setup_swap_interval(disp);
if (disp->Options.Zink)
dri2_initialize_wayland_drm_extensions(dri2_dpy);
- if (!dri2_setup_device(disp, true)) {
- _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
- goto cleanup;
- }
-
dri2_dpy->driver_name = strdup(disp->Options.Zink ? "zink" : "swrast");
if (!dri2_load_driver_swrast(disp))
goto cleanup;
if (!dri2_setup_extensions(disp))
goto cleanup;
+ if (!dri2_setup_device(disp, true)) {
+ _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
dri2_wl_setup_swap_interval(disp);
if (!dri2_get_xcb_connection(disp, dri2_dpy))
goto cleanup;
- if (!dri2_setup_device(disp, true)) {
- _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
- goto cleanup;
- }
-
/*
* Every hardware driver_name is set using strdup. Doing the same in
* here will allow is to simply free the memory at dri2_terminate().
if (!dri2_setup_extensions(disp))
goto cleanup;
+ if (!dri2_setup_device(disp, true)) {
+ _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
if (disp->Options.Zink) {
if (!dri3_x11_connect(dri2_dpy))
goto cleanup;
- if (!dri2_setup_device(disp, false)) {
- _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
- goto cleanup;
- }
-
if (!dri2_load_driver_dri3(disp))
goto cleanup;
if (!dri2_setup_extensions(disp))
goto cleanup;
+ if (!dri2_setup_device(disp, false)) {
+ _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
dri2_x11_setup_swap_interval(disp);
if (!dri2_x11_connect(dri2_dpy))
goto cleanup;
- if (!dri2_setup_device(disp, false)) {
- _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
- goto cleanup;
- }
-
if (!dri2_load_driver(disp))
goto cleanup;
if (!dri2_setup_extensions(disp))
goto cleanup;
+ if (!dri2_setup_device(disp, false)) {
+ _eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
+ goto cleanup;
+ }
+
dri2_setup_screen(disp);
dri2_x11_setup_swap_interval(disp);