mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
egl/{surfaceless,device}: Remove check for EGLConfig presence
We now check in the EGL core that we actually have some configs for the display, so no need to do it in the platform. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27709>
This commit is contained in:
parent
e12a55c979
commit
487016796b
4 changed files with 4 additions and 12 deletions
|
|
@ -619,7 +619,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
|
|||
return conf;
|
||||
}
|
||||
|
||||
EGLBoolean
|
||||
void
|
||||
dri2_add_pbuffer_configs_for_visuals(_EGLDisplay *disp)
|
||||
{
|
||||
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
|
||||
|
|
@ -649,8 +649,6 @@ dri2_add_pbuffer_configs_for_visuals(_EGLDisplay *disp)
|
|||
dri2_pbuffer_visuals[i].format_name);
|
||||
}
|
||||
}
|
||||
|
||||
return (config_count != 0);
|
||||
}
|
||||
|
||||
GLboolean
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
|
|||
EGLint surface_type, const EGLint *attr_list,
|
||||
const int *rgba_shifts, const unsigned int *rgba_sizes);
|
||||
|
||||
EGLBoolean
|
||||
void
|
||||
dri2_add_pbuffer_configs_for_visuals(_EGLDisplay *disp);
|
||||
|
||||
_EGLImage *
|
||||
|
|
|
|||
|
|
@ -381,10 +381,7 @@ dri2_initialize_device(_EGLDisplay *disp)
|
|||
#endif
|
||||
dri2_set_WL_bind_wayland_display(disp);
|
||||
|
||||
if (!dri2_add_pbuffer_configs_for_visuals(disp)) {
|
||||
err = "DRI2: failed to add configs";
|
||||
goto cleanup;
|
||||
}
|
||||
dri2_add_pbuffer_configs_for_visuals(disp);
|
||||
|
||||
/* Fill vtbl last to prevent accidentally calling virtual function during
|
||||
* initialization.
|
||||
|
|
|
|||
|
|
@ -361,10 +361,7 @@ dri2_initialize_surfaceless(_EGLDisplay *disp)
|
|||
#endif
|
||||
dri2_set_WL_bind_wayland_display(disp);
|
||||
|
||||
if (!dri2_add_pbuffer_configs_for_visuals(disp)) {
|
||||
err = "DRI2: failed to add configs";
|
||||
goto cleanup;
|
||||
}
|
||||
dri2_add_pbuffer_configs_for_visuals(disp);
|
||||
|
||||
/* Fill vtbl last to prevent accidentally calling virtual function during
|
||||
* initialization.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue