mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
egl: inline DRI2_CONFIG_QUERY
this is always supported Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30494>
This commit is contained in:
parent
197e4f2ae2
commit
d723991ded
1 changed files with 2 additions and 3 deletions
|
|
@ -807,9 +807,8 @@ dri2_setup_swap_interval(_EGLDisplay *disp, int max_swap_interval)
|
|||
GLint vblank_mode = DRI_CONF_VBLANK_DEF_INTERVAL_1;
|
||||
|
||||
/* Allow driconf to override applications.*/
|
||||
if (dri2_dpy->config)
|
||||
dri2_dpy->config->configQueryi(dri2_dpy->dri_screen_render_gpu,
|
||||
"vblank_mode", &vblank_mode);
|
||||
dri2GalliumConfigQueryi(dri2_dpy->dri_screen_render_gpu, "vblank_mode", &vblank_mode);
|
||||
|
||||
switch (vblank_mode) {
|
||||
case DRI_CONF_VBLANK_NEVER:
|
||||
dri2_dpy->min_swap_interval = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue