summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader/pipe_loader.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-30 11:06:06 +0200
committerNicolai Hähnle <[email protected]>2017-08-02 09:50:58 +0200
commitb4ff5e90e9ab3471a5f5c7a403826c9af952b594 (patch)
treee7b62510bd9f95398b0c09ecebfcc3bf53a22d5c /src/gallium/auxiliary/pipe-loader/pipe_loader.c
parentaa222e21c288887348cf52e14696559a58dec13c (diff)
st/dri: implement v2 of DRI_ConfigOptions
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader/pipe_loader.c')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c
index cb37f30c02e..39d33d848af 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.c
@@ -34,6 +34,8 @@
#include "util/xmlconfig.h"
#include "util/xmlpool.h"
+#include <string.h>
+
#ifdef _MSC_VER
#include <stdlib.h>
#define PATH_MAX _MAX_PATH
@@ -107,6 +109,17 @@ pipe_loader_load_options(struct pipe_loader_device *dev)
dev->driver_name);
}
+char *
+pipe_loader_get_driinfo_xml(const char *driver_name)
+{
+ char *xml = pipe_loader_drm_get_driinfo_xml(driver_name);
+
+ if (!xml)
+ xml = strdup(gallium_driinfo_xml);
+
+ return xml;
+}
+
struct pipe_screen *
pipe_loader_create_screen(struct pipe_loader_device *dev,
struct pipe_screen_config *config)