Mesa (master): nouveau: Minor clean up of winsys
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Tue Apr 20 22:54:21 UTC 2010
Module: Mesa
Branch: master
Commit: 1d98ce511dc81f717edb5f0f5251463b9941ec99
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d98ce511dc81f717edb5f0f5251463b9941ec99
Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date: Tue Apr 20 23:31:07 2010 +0100
nouveau: Minor clean up of winsys
---
src/gallium/winsys/nouveau/drm/nouveau_drm_api.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
index 6fd6009..88989d0 100644
--- a/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
+++ b/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
@@ -146,14 +146,15 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,
return nvws->pscreen;
}
-struct drm_api drm_api_hooks = {
+static struct drm_api nouveau_drm_api_hooks = {
.name = "nouveau",
.driver_name = "nouveau",
.create_screen = nouveau_drm_create_screen,
+ .destroy = NULL;
};
struct drm_api *
drm_api_create() {
- return &drm_api_hooks;
+ return &nouveau_drm_api_hooks;
}
More information about the mesa-commit
mailing list