st/dri: implement v2 of DRI_ConfigOptions

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Nicolai Hähnle
2017-06-30 11:06:06 +02:00
parent aa222e21c2
commit b4ff5e90e9
4 changed files with 55 additions and 2 deletions

View File

@@ -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)