Another DRI1-only extension.
*/
static const __DRIextension *dri_screen_extensions[] = {
- &driCopySubBufferExtension.base,
&driSwapControlExtension.base,
&driMediaStreamCounterExtension.base,
&driTexBufferExtension.base,
};
static const __DRIextension *dri_screen_extensions_throttle[] = {
- &driCopySubBufferExtension.base,
&driSwapControlExtension.base,
&driMediaStreamCounterExtension.base,
&driTexBufferExtension.base,
};
-static void driCopySubBuffer(__DRIdrawable *dPriv,
- int x, int y, int w, int h)
-{
- drm_clip_rect_t rect;
-
- rect.x1 = x;
- rect.y1 = dPriv->h - y - h;
- rect.x2 = x + w;
- rect.y2 = rect.y1 + h;
- driReportDamage(dPriv, &rect, 1);
-
- dPriv->driScreenPriv->DriverAPI.CopySubBuffer(dPriv, x, y, w, h);
-}
-
-const __DRIcopySubBufferExtension driCopySubBufferExtension = {
- { __DRI_COPY_SUB_BUFFER, __DRI_COPY_SUB_BUFFER_VERSION },
- driCopySubBuffer
-};
-
static void driSetSwapInterval(__DRIdrawable *dPriv, unsigned int interval)
{
dPriv->swap_interval = interval;
*/
extern const __DRIcoreExtension driCoreExtension;
extern const __DRIdri2Extension driDRI2Extension;
-extern const __DRIcopySubBufferExtension driCopySubBufferExtension;
extern const __DRIswapControlExtension driSwapControlExtension;
extern const __DRImediaStreamCounterExtension driMediaStreamCounterExtension;
extern const __DRI2configQueryExtension dri2ConfigQueryExtension;
screen->chip_flags |= RADEON_CLASS_R200;
i = 0;
- screen->extensions[i++] = &driCopySubBufferExtension.base;
screen->extensions[i++] = &dri2ConfigQueryExtension.base;
if ( screen->irq != 0 ) {