diff options
Diffstat (limited to 'src/gallium/state_trackers/dri/dri2.c')
-rw-r--r-- | src/gallium/state_trackers/dri/dri2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 0f36e1bf894..3555107856c 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -2071,11 +2071,9 @@ dri2_init_screen(__DRIscreen * sPriv) if (pipe_loader_drm_probe_fd(&screen->dev, fd)) { - struct pipe_screen_config config = {}; - dri_init_options(screen); - pscreen = pipe_loader_create_screen(screen->dev, &config); + pscreen = pipe_loader_create_screen(screen->dev); } if (!pscreen) @@ -2166,12 +2164,10 @@ dri_kms_init_screen(__DRIscreen * sPriv) if (screen->fd < 0 || (fd = fcntl(screen->fd, F_DUPFD_CLOEXEC, 3)) < 0) goto free_screen; - struct pipe_screen_config config = {}; - dri_init_options(screen); if (pipe_loader_sw_probe_kms(&screen->dev, fd)) - pscreen = pipe_loader_create_screen(screen->dev, &config); + pscreen = pipe_loader_create_screen(screen->dev); if (!pscreen) goto release_pipe; |