summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-04 14:03:25 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-04 14:03:25 +0000
commit82a19f097427916f4ce594b7c40b0d4b33502727 (patch)
treea74898bd07a378653f54d8e811b79f9b407ea2b7 /src/gallium/winsys
parentb549bbb49868702d45fbcf5d75d2c14ffeca692b (diff)
ws/i965: add load-time driver registration
Otherwise xlib state-tracker doesn't know about us.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/i965/xlib/xlib_i965.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
index c55ba6b519..4d4bc0cb30 100644
--- a/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
+++ b/src/gallium/winsys/drm/i965/xlib/xlib_i965.c
@@ -360,6 +360,13 @@ struct xm_driver xlib_i965_driver =
};
+/* Register this driver at library load:
+ */
+static void _init( void ) __attribute__((constructor));
+static void _init( void )
+{
+ xmesa_set_driver( &xlib_i965_driver );
+}