gallium: replace drm_driver_descriptor::configuration with driconf_xml

PIPE_CAPs are better.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Marek Olšák
2019-04-22 20:00:10 -04:00
parent 8ae50e6004
commit d8b296d3ad
15 changed files with 45 additions and 210 deletions

View File

@@ -87,25 +87,15 @@ pipe_loader_base_release(struct pipe_loader_device **dev)
*dev = NULL;
}
const struct drm_conf_ret *
pipe_loader_configuration(struct pipe_loader_device *dev,
enum drm_conf conf)
{
return dev->ops->configuration(dev, conf);
}
void
pipe_loader_load_options(struct pipe_loader_device *dev)
{
if (dev->option_info.info)
return;
const char *xml_options = gallium_driinfo_xml;
const struct drm_conf_ret *xml_options_conf =
pipe_loader_configuration(dev, DRM_CONF_XML_OPTIONS);
if (xml_options_conf)
xml_options = xml_options_conf->val.val_pointer;
const char *xml_options = dev->ops->get_driconf_xml(dev);
if (!xml_options)
xml_options = gallium_driinfo_xml;
driParseOptionInfo(&dev->option_info, xml_options);
driParseConfigFiles(&dev->option_cache, &dev->option_info, 0,