pipe-loader: fix driinfo for software and non-radeonsi drivers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 2 Aug 2017 09:38:32 +0000 (11:38 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 2 Aug 2017 10:15:04 +0000 (12:15 +0200)
Fixes: 678dadf1237 ("gallium: move driinfo XML to pipe_loader")
Reviewed-by: Thomas Hellström <thellstrom@vmware.com>
src/gallium/auxiliary/pipe-loader/pipe_loader.c
src/gallium/state_trackers/dri/drisw.c

index 39d33d848af5ed26c4bc13a3d1578ffbdc28bba4..6d9acebdb684abdf68b55453d219de704f7b4c6c 100644 (file)
@@ -51,7 +51,9 @@ static int (*backends[])(struct pipe_loader_device **, int) = {
 };
 
 const char gallium_driinfo_xml[] =
+   DRI_CONF_BEGIN
 #include "driinfo_gallium.h"
+   DRI_CONF_END
 ;
 
 int
index d064bb0d4a347c6610cef4969ee6552334a86164..d3d44bf418b9b23ca24cc8d9b601bca13852fe81 100644 (file)
@@ -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;