st/dri: implement v2 of DRI_ConfigOptions
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user