summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-01-19 16:46:28 +0000
committerJakob Bornecrantz <jakob@vmware.com>2010-01-19 17:10:04 +0100
commita5fb5d6a54195d19942482873d0738eaade9e986 (patch)
tree37263024aa906a1c44e9282bb455272b80937dce /src/gallium/drivers
parent116a02be2264807dafb5fdfd4e3c913bb728c11f (diff)
st/drm: Expose kernel driver name
Based on patch by Chia-I Wu <olvaffe@gmail.com> Expose the name of the kernel driver as accepted by drmOpenByName.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/trace/tr_drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_drm.c b/src/gallium/drivers/trace/tr_drm.c
index 48d1c4051c..e7ca3a86ea 100644
--- a/src/gallium/drivers/trace/tr_drm.c
+++ b/src/gallium/drivers/trace/tr_drm.c
@@ -173,6 +173,7 @@ trace_drm_create(struct drm_api *api)
if (!tr_api)
goto error;
+ tr_api->base.driver_name = api->driver_name;
tr_api->base.create_screen = trace_drm_create_screen;
tr_api->base.create_context = trace_drm_create_context;
tr_api->base.texture_from_shared_handle = trace_drm_texture_from_shared_handle;