summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-11-06 18:24:46 +0100
committerMichel Dänzer <[email protected]>2007-11-06 18:24:46 +0100
commitbadc061a65b8e8b3d92eb4a45bd9eb4191eaaf62 (patch)
treeac4ba563ac0c85602bd496d19c73ec43f10acc54 /src/mesa/drivers/dri/radeon
parent5a322bc1b4b6d64ba2994e2b32abc0fdb466a81d (diff)
r200: Re-expose SetTexOffset functionality.
This seems to have been mismerged with the DRI interface changes.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_screen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 4cc87a95aef..ceb947c09d2 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -339,6 +339,11 @@ static const __DRIallocateExtension r200AllocateExtension = {
r200FreeMemoryMESA,
r200GetMemoryOffsetMESA
};
+
+static const __DRItexOffsetExtension r200texOffsetExtension = {
+ { __DRI_TEX_OFFSET, __DRI_TEX_OFFSET_VERSION },
+ r200SetTexOffset,
+};
#endif
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
@@ -758,6 +763,8 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R200)
if (IS_R200_CLASS(screen))
screen->extensions[i++] = &r200AllocateExtension.base;
+
+ screen->extensions[i++] = &r200texOffsetExtension.base;
#endif
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
@@ -984,7 +991,6 @@ static const struct __DriverAPIRec r200API = {
.WaitForSBC = NULL,
.SwapBuffersMSC = NULL,
.CopySubBuffer = r200CopySubBuffer,
- .setTexOffset = r200SetTexOffset
};
#endif