st/dri mv __driDriverExtensions to drisw.c and dri2.c
authorGeorge Sapountzis <gsapountzis@gmail.com>
Fri, 26 Mar 2010 16:44:39 +0000 (18:44 +0200)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Fri, 26 Mar 2010 16:44:39 +0000 (18:44 +0200)
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/dri/drm/dri2.c
src/gallium/state_trackers/dri/sw/drisw.c

index 598a07bb646c6abf759e1e8fb8efc9b919a44200..53053a74c4c7b615f8cfc9127c6085a8cf5b8c90 100644 (file)
@@ -338,14 +338,6 @@ const struct __DriverAPIRec driDriverAPI = {
    .CopySubBuffer = dri1_copy_sub_buffer,
 };
 
-/* This is the table of extensions that the loader will dlsym() for. */
-PUBLIC const __DRIextension *__driDriverExtensions[] = {
-    &driCoreExtension.base,
-    &driLegacyExtension.base,
-    &driDRI2Extension.base,
-    NULL
-};
-
 #else
 
 const struct __DriverAPIRec driDriverAPI = {
@@ -361,13 +353,6 @@ const struct __DriverAPIRec driDriverAPI = {
    .SwapBuffers = drisw_swap_buffers,
 };
 
-/* This is the table of extensions that the loader will dlsym() for. */
-PUBLIC const __DRIextension *__driDriverExtensions[] = {
-    &driCoreExtension.base,
-    &driSWRastExtension.base,
-    NULL
-};
-
 #endif
 
 /* vim: set sw=3 ts=8 sts=3 expandtab: */
index 108b18e9d3cdfa1ff46844161f5bd7039864d409..854801d1ea157828d1eb996f19798cd9cd7500ea 100644 (file)
@@ -410,4 +410,12 @@ fail:
    return NULL;
 }
 
+/* This is the table of extensions that the loader will dlsym() for. */
+PUBLIC const __DRIextension *__driDriverExtensions[] = {
+    &driCoreExtension.base,
+    &driLegacyExtension.base,
+    &driDRI2Extension.base,
+    NULL
+};
+
 /* vim: set sw=3 ts=8 sts=3 expandtab: */
index 73bc45d90602816385157be940ceace5f2d9bfcc..d7c6577818f3ce8f348b95f2a98d1923c3a7d7fb 100644 (file)
@@ -315,4 +315,11 @@ fail:
    return NULL;
 }
 
+/* This is the table of extensions that the loader will dlsym() for. */
+PUBLIC const __DRIextension *__driDriverExtensions[] = {
+    &driCoreExtension.base,
+    &driSWRastExtension.base,
+    NULL
+};
+
 /* vim: set sw=3 ts=8 sts=3 expandtab: */