summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/nouveau
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-01-02 22:06:42 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-01-12 10:55:36 +0800
commit6dafd61ab278f23ecfebac7ef647610875abd2db (patch)
tree6b443e2f562847c826d0839b34ae178d59bd650a /src/gallium/winsys/drm/nouveau
parent39790cab1349fbf69b61711c46eeef7ded6ae13a (diff)
winsys/drm: Add name field to drm_api.
The name can be used for driver selection. It has the same name as the DRI driver does right now. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/gallium/winsys/drm/nouveau')
-rw-r--r--src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
index e5912ef77f..4b2c6a1025 100644
--- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
+++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
@@ -254,6 +254,7 @@ nouveau_drm_handle_from_pt(struct drm_api *api, struct pipe_screen *pscreen,
}
struct drm_api drm_api_hooks = {
+ .name = "nouveau",
.create_screen = nouveau_drm_create_screen,
.create_context = nouveau_drm_create_context,
.texture_from_shared_handle = nouveau_drm_pt_from_name,