aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri2/dri_screen.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-03-04 00:31:35 +0100
committerJakob Bornecrantz <[email protected]>2009-03-04 00:31:35 +0100
commitb7b046150bc61604777baa8a57f81d770837bd10 (patch)
tree19e4e96b86f250f252860cb022c47f1353cf35e8 /src/gallium/state_trackers/dri2/dri_screen.c
parent16526b70998b8c6e0ba298db86f1f738c1a3df3f (diff)
st/dri2: We are strictly a dri2 driver
Diffstat (limited to 'src/gallium/state_trackers/dri2/dri_screen.c')
-rw-r--r--src/gallium/state_trackers/dri2/dri_screen.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/dri2/dri_screen.c b/src/gallium/state_trackers/dri2/dri_screen.c
index ac3aee50152..57249a51118 100644
--- a/src/gallium/state_trackers/dri2/dri_screen.c
+++ b/src/gallium/state_trackers/dri2/dri_screen.c
@@ -184,6 +184,16 @@ dri_get_swap_info(__DRIdrawablePrivate * dPriv,
/**
+ * NULL stub for old dri loaders
+ */
+const __DRIconfig **
+dri_init_screen(__DRIscreenPrivate *sPriv)
+{
+ return NULL;
+}
+
+
+/**
* This is the driver specific part of the createNewScreen entry point.
*
* Returns the __GLcontextModes supported by this driver.
@@ -240,19 +250,19 @@ dri_destroy_screen(__DRIscreenPrivate * sPriv)
PUBLIC const struct __DriverAPIRec driDriverAPI = {
- .InitScreen = NULL,
+ .InitScreen = dri_init_screen, /* not supported but exported */
.DestroyScreen = dri_destroy_screen,
.CreateContext = dri_create_context,
.DestroyContext = dri_destroy_context,
.CreateBuffer = dri_create_buffer,
.DestroyBuffer = dri_destroy_buffer,
- .SwapBuffers = dri_swap_buffers,
+ .SwapBuffers = dri_swap_buffers, /* not supported but exported */
.MakeCurrent = dri_make_current,
.UnbindContext = dri_unbind_context,
.GetSwapInfo = dri_get_swap_info,
.GetDrawableMSC = driDrawableGetMSC32,
.WaitForMSC = driWaitForMSC32,
- .CopySubBuffer = dri_copy_sub_buffer,
+ .CopySubBuffer = dri_copy_sub_buffer, /* not supported but exported */
.InitScreen2 = dri_init_screen2,
};