struct intel_renderbuffer *irbColor =
intel_renderbuffer(intel->ctx.DrawBuffer->_ColorDrawBuffers[0][0]);
if (irbColor)
- return irbColor->region;
+ return irbColor->Base.surface->region;
else
return NULL;
}
struct intel_renderbuffer *irb
= intel_renderbuffer(intel->ctx.ReadBuffer->_ColorReadBuffer);
if (irb)
- return irb->region;
+ return irb->Base.surface->region;
else
return NULL;
}
struct intel_renderbuffer *irb = intel_get_renderbuffer(fb, attIndex);
if (irb)
- return irb->region;
+ return irb->Base.surface->region;
else
return NULL;
}
intel_unpair_depth_stencil(ctx, irb);
}
#endif
- if (intel && irb->region) {
- intel->pipe->region_release(intel->pipe, &irb->region);
+ if (intel && irb->Base.surface->region) {
+ intel->pipe->region_release(intel->pipe, &irb->Base.surface->region);
}
_mesa_free(irb);
intelFlush(ctx);
/* free old region */
- if (irb->region) {
- intel->pipe->region_release(intel->pipe, &irb->region);
+ if (irb->Base.surface->region) {
+ intel->pipe->region_release(intel->pipe, &irb->Base.surface->region);
}
/* allocate new memory region/renderbuffer */
DBG("Allocating %d x %d Intel RBO (pitch %d)\n", width,
height, pitch);
- irb->region = intel->pipe->region_alloc(intel->pipe, cpp, pitch, height);
- if (!irb->region)
+ irb->Base.surface->region = intel->pipe->region_alloc(intel->pipe, cpp, pitch, height);
+ if (!irb->Base.surface->region)
return GL_FALSE; /* out of memory? */
- ASSERT(irb->region->buffer);
+ ASSERT(irb->Base.surface->region->buffer);
rb->Width = width;
rb->Height = height;
/* update the surface's size too */
rb->surface->width = width;
rb->surface->height = height;
- rb->surface->region = irb->region;
+ rb->surface->region = irb->Base.surface->region;/*XXX no-op*/
/* This sets the Get/PutRow/Value functions */
// intel_set_span_functions(&irb->Base);
if (irb) {
/* just release the region */
- intel->pipe->region_release(intel->pipe, &irb->region);
+ intel->pipe->region_release(intel->pipe, &irb->Base.surface->region);
}
else if (att->Renderbuffer) {
/* software fallback */
struct intel_renderbuffer
{
struct gl_renderbuffer Base;
- struct pipe_region *region;
#if 0
+ struct pipe_region *region;
+
void *pfMap; /* possibly paged flipped map pointer */
GLuint pfPitch; /* possibly paged flipped pitch */
GLboolean RenderToTexture; /* RTT? */
GLuint pf_pending; /**< sequence number of pending flip */
GLuint vbl_pending; /**< vblank sequence number of pending flip */
-#endif
struct intel_surface *surface;
+#endif
};
#if 0