r200: Re-expose SetTexOffset functionality.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 6 Nov 2007 17:24:46 +0000 (18:24 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 6 Nov 2007 17:24:46 +0000 (18:24 +0100)
This seems to have been mismerged with the DRI interface changes.

src/mesa/drivers/dri/radeon/radeon_screen.c

index 4cc87a95aefc38744c32660b349a5642bebe0fd0..ceb947c09d29a1dd61299393993b1be790d88f18 100644 (file)
@@ -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