summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2007-06-07 19:35:54 -0400
committerKristian Høgsberg <[email protected]>2007-10-11 11:30:39 -0400
commitccff0cb26378ce370fc8697a2a2ada138d2e119e (patch)
treef9014124f854182647c9cf1df7a5eb95d1597e0f /src/mesa/drivers/dri/common
parentf29f0ae8383888a6493b615edc3bab254cf6df39 (diff)
Add a version field to __DRIextension.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 22093219785..d59ea0ddad0 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -51,7 +51,7 @@ static const int empty_attribute_list[1] = { None };
* supports setting a read drawable.
*/
const __DRIextension driReadDrawableExtension = {
- __DRI_READ_DRAWABLE
+ __DRI_READ_DRAWABLE, __DRI_READ_DRAWABLE_VERSION
};
/**
@@ -393,7 +393,7 @@ static int driWaitForMSC(__DRIdrawable *drawable, int64_t target_msc,
}
const __DRImediaStreamCounterExtension driMediaStreamCounterExtension = {
- { __DRI_MEDIA_STREAM_COUNTER },
+ { __DRI_MEDIA_STREAM_COUNTER, __DRI_MEDIA_STREAM_COUNTER_VERSION },
driGetMSC,
driWaitForMSC,
};
@@ -406,7 +406,8 @@ static void driCopySubBuffer(__DRIdrawable *drawable,
}
const __DRIcopySubBufferExtension driCopySubBufferExtension = {
- { __DRI_COPY_SUB_BUFFER }, driCopySubBuffer
+ { __DRI_COPY_SUB_BUFFER, __DRI_COPY_SUB_BUFFER_VERSION },
+ driCopySubBuffer
};
static void driSetSwapInterval(__DRIdrawable *drawable, unsigned int interval)
@@ -424,7 +425,7 @@ static unsigned int driGetSwapInterval(__DRIdrawable *drawable)
}
const __DRIswapControlExtension driSwapControlExtension = {
- { __DRI_SWAP_CONTROL },
+ { __DRI_SWAP_CONTROL, __DRI_SWAP_CONTROL_VERSION },
driSetSwapInterval,
driGetSwapInterval
};
@@ -819,7 +820,7 @@ driQueryFrameTracking(__DRIdrawable *drawable,
}
const __DRIframeTrackingExtension driFrameTrackingExtension = {
- { __DRI_FRAME_TRACKING },
+ { __DRI_FRAME_TRACKING, __DRI_FRAME_TRACKING_VERSION },
driFrameTracking,
driQueryFrameTracking
};