gallium: rename 'state tracker' to 'frontend'
[mesa.git] / src / gallium / auxiliary / pipe-loader / pipe_loader_drm.c
index 2e1bff4c233caf8b2efa658917c3354bb0b98483..5d6865be1b09dd6f596b015319bdfbabd8ecaaf7 100644 (file)
@@ -39,7 +39,7 @@
 
 #include "loader.h"
 #include "target-helpers/drm_helper_public.h"
-#include "state_tracker/drm_driver.h"
+#include "frontend/drm_driver.h"
 #include "pipe_loader_priv.h"
 
 #include "util/u_memory.h"
@@ -331,7 +331,7 @@ pipe_loader_drm_get_driinfo_xml(const char *driver_name)
    const struct drm_driver_descriptor *dd =
       get_driver_descriptor(driver_name, &lib);
 
-   if (dd && dd->driconf_xml)
+   if (dd && dd->driconf_xml && *dd->driconf_xml)
       xml = strdup(*dd->driconf_xml);
 
    if (lib)