diff options
author | Nicolai Hähnle <[email protected]> | 2017-08-02 11:38:32 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 12:15:04 +0200 |
commit | f45efb8129c52f85d8a8858734942136eb59ae7c (patch) | |
tree | cac28281e01eefe599b68705752e26c1af301c79 /src/gallium/state_trackers/dri | |
parent | eceb6710024716433069d705fbd873d6d136c2cc (diff) |
pipe-loader: fix driinfo for software and non-radeonsi drivers
Fixes: 678dadf1237 ("gallium: move driinfo XML to pipe_loader")
Reviewed-by: Thomas Hellström <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/drisw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/dri/drisw.c b/src/gallium/state_trackers/dri/drisw.c index d064bb0d4a3..d3d44bf418b 100644 --- a/src/gallium/state_trackers/dri/drisw.c +++ b/src/gallium/state_trackers/dri/drisw.c @@ -400,12 +400,12 @@ drisw_init_screen(__DRIscreen * sPriv) sPriv->driverPrivate = (void *)screen; sPriv->extensions = drisw_screen_extensions; - struct pipe_screen_config config; + if (pipe_loader_sw_probe_dri(&screen->dev, &drisw_lf)) { + struct pipe_screen_config config; + config.flags = dri_init_options_get_screen_flags(screen); - config.flags = dri_init_options_get_screen_flags(screen); - - if (pipe_loader_sw_probe_dri(&screen->dev, &drisw_lf)) pscreen = pipe_loader_create_screen(screen->dev, &config); + } if (!pscreen) goto fail; |