if (dPriv && dPriv->numClipRects) {
struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
+#if 0
const struct pipe_region *backRegion
= intel_fb->Base._ColorDrawBufferMask[0] == BUFFER_BIT_FRONT_LEFT ?
intel_get_rb_region(&intel_fb->Base, BUFFER_FRONT_LEFT) :
intel_get_rb_region(&intel_fb->Base, BUFFER_BACK_LEFT);
+#endif
const int backWidth = intel_fb->Base.Width;
const int backHeight = intel_fb->Base.Height;
const int nbox = dPriv->numClipRects;
const drm_clip_rect_t *pbox = dPriv->pClipRects;
const int pitch = intelScreen->front.pitch / intelScreen->front.cpp;
+#if 0
const int srcpitch = backRegion->pitch;
+#endif
const int cpp = intelScreen->front.cpp;
int BR13, CMD;
int i;
+ const struct pipe_surface *backSurf;
+ const struct pipe_region *backRegion;
+ int srcpitch;
+
+ /* blit from back color buffer if it exists, else front buffer */
+ if (intel_fb->Base.Attachment[BUFFER_BACK_LEFT].Renderbuffer)
+ backSurf = intel_fb->Base.Attachment[BUFFER_BACK_LEFT].Renderbuffer->surface;
+ else
+ backSurf = intel_fb->Base.Attachment[BUFFER_FRONT_LEFT].Renderbuffer->surface;
+
+ backRegion = backSurf->region;
+ srcpitch = backRegion->pitch;
+
ASSERT(intel_fb);
ASSERT(intel_fb->Base.Name == 0); /* Not a user-created FBO */
ASSERT(backRegion);
}
intel_fb->pf_active = pf_active;
+#if 0
intel_flip_renderbuffers(intel_fb);
intel_draw_buffer(&intel->ctx, intel->ctx.DrawBuffer);
+#endif
/* Update vblank info
*/
++intel_fb->pf_seq;
}
+#if 0
intel_flip_renderbuffers(intel_fb);
intel_draw_buffer(&intel->ctx, &intel_fb->Base);
+#endif
if (INTEL_DEBUG & DEBUG_IOCTL)
fprintf(stderr, "%s: success\n", __FUNCTION__);
#endif
if (swap.seqtype & DRM_VBLANK_FLIP) {
+#if 0
intel_flip_renderbuffers(intel_fb);
intel_draw_buffer(&intel->ctx, intel->ctx.DrawBuffer);
+#endif
}
ret = GL_TRUE;
return intel_renderbuffer(fb->Attachment[attIndex].Renderbuffer);
}
-
+#if 0
void
intel_flip_renderbuffers(struct intel_framebuffer *intel_fb)
{
_mesa_reference_renderbuffer(&tmp_rb, NULL);
}
}
+#endif
struct pipe_region *
}
/* Make sure all window system renderbuffers are up to date */
+#if 0
for (i = 0; i < 3; i++) {
struct gl_renderbuffer *rb = &intel_fb->color_rb[i]->Base;
rb->AllocStorage(ctx, rb, rb->InternalFormat, width, height);
}
}
+#endif
}
static GLboolean