{ __DRI_TEX_OFFSET, __DRI_TEX_OFFSET_VERSION },
r300SetTexOffset,
};
+
+void r300SetTexBuffer(__DRIcontext *pDRICtx,
+ GLint target,
+ __DRIdrawable *dPriv);
+static const __DRItexBufferExtension r300TexBufferExtension = {
+ { __DRI_TEX_BUFFER, __DRI_TEX_BUFFER_VERSION },
+ r300SetTexBuffer,
+};
#endif
/* Create the device specific screen private data struct.
#endif
#if RADEON_COMMON && defined(RADEON_COMMON_FOR_R300)
- //screen->extensions[i++] = &r300texOffsetExtension.base;
+ screen->extensions[i++] = &r300texOffsetExtension.base;
+ screen->extensions[i++] = &r300TexBufferExtension.base;
#endif
screen->extensions[i++] = NULL;
static const
__DRIconfig **radeonInitScreen2(__DRIscreenPrivate *psp)
{
- fprintf(stderr, "DRI2 initialization\n");
-
/* Calling driInitExtensions here, with a NULL context pointer,
* does not actually enable the extensions. It just makes sure
* that all the dispatch offsets for all the extensions that
return NULL;
}
- fprintf(stderr, "DRI2 initialized\n");
-
/* for now fill in all modes */
return radeonFillInModes( psp, 24, 24, 8, 1);
}
.CopySubBuffer = r200CopySubBuffer,
};
#endif
+