To be used by the dri state-tracker.
Signed-off-by: Emil Velikov <[email protected]>
---
src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 7 +++++++
src/gallium/include/state_tracker/drm_driver.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
index 624e0f9..c50958b 100644
--- a/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_drm_helper.h
@@ -216,6 +216,13 @@ dd_create_screen(int fd)
}
#if NEED_DRIVER_DESCRIPTOR_EXTRA
+
+const char *
+dd_driver_name(void)
+{
+ return driver_name;
+}
+
static const struct drm_conf_ret throttle_ret = {
.type = DRM_CONF_INT,
.val.val_int = 2,
diff --git a/src/gallium/include/state_tracker/drm_driver.h
b/src/gallium/include/state_tracker/drm_driver.h
index 7eaf375..740c4bb 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -119,6 +119,8 @@ struct drm_driver_descriptor driver_descriptor = {
\
extern struct pipe_screen *dd_create_screen(int fd);
+extern const char *dd_driver_name(void);
+
extern const struct drm_conf_ret *dd_configuration(enum drm_conf conf);
#endif
--
1.9.2
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev