summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915/intel_screen.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2007-05-16 14:10:29 -0400
committerKristian Høgsberg <[email protected]>2007-10-11 11:09:57 -0400
commit78a6aa57a0155d72280dd91c05513c847bf76f3b (patch)
treef007653457bdcff728af99fda719b574c20a2575 /src/mesa/drivers/dri/i915/intel_screen.c
parentefaf90b03e8b69e04909bce071f8ef6b65cc0e9d (diff)
Move GLX_MESA_allocate_memory related functions to new extension mechanism.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_screen.c')
-rw-r--r--src/mesa/drivers/dri/i915/intel_screen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c
index f507a3bf05f..27bf5e12a20 100644
--- a/src/mesa/drivers/dri/i915/intel_screen.c
+++ b/src/mesa/drivers/dri/i915/intel_screen.c
@@ -419,9 +419,17 @@ intelUpdateScreenFromSAREA(intelScreenPrivate * intelScreen,
intelPrintSAREA(sarea);
}
+static const __DRIallocateExtension intelAllocateExtension = {
+ { __DRI_ALLOCATE },
+ intelAllocateMemoryMESA,
+ intelFreeMemoryMESA,
+ intelGetMemoryOffsetMESA
+};
+
static const __DRIextension *intelExtensions[] = {
&driCopySubBufferExtension.base,
&driSwapControlExtension.base,
+ &intelAllocateExtension.base,
NULL
};