[Mesa-dev] [PATCH 06/16] st/drm: add DRM_CONF_XML_OPTIONS

Nicolai Hähnle nhaehnle at gmail.com
Fri Jun 30 12:45:47 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Allow drivers to return the XML that describes the available config
options.
---
 src/gallium/include/state_tracker/drm_driver.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index 4383276..1ac0528 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -56,20 +56,22 @@ struct winsys_handle
 
 
 /**
  * Configuration queries.
  */
 enum drm_conf {
    /* How many frames to allow before throttling. Or -1 to indicate any number */
    DRM_CONF_THROTTLE, /* DRM_CONF_INT. */
    /* Can this driver, running on this kernel, import and export dma-buf fds? */
    DRM_CONF_SHARE_FD, /* DRM_CONF_BOOL. */
+   /* XML string describing the available config options. */
+   DRM_CONF_XML_OPTIONS, /* DRM_CONF_POINTER */
    DRM_CONF_MAX
 };
 
 /**
  * Type of configuration answer
  */
 enum drm_conf_type {
    DRM_CONF_INT,
    DRM_CONF_BOOL,
    DRM_CONF_FLOAT,
-- 
2.9.3



More information about the mesa-dev mailing list