Lines Matching refs:xrb
266 struct dri_swrast_renderbuffer *xrb = dri_swrast_renderbuffer(rb);
270 free(xrb->Base.Buffer);
287 struct dri_swrast_renderbuffer *xrb = dri_swrast_renderbuffer(rb);
294 xrb->Base.Buffer = NULL;
297 xrb->pitch = bytes_per_line(width * xrb->bpp, 32);
306 struct dri_swrast_renderbuffer *xrb = dri_swrast_renderbuffer(rb);
310 free(xrb->Base.Buffer);
314 xrb->Base.Buffer = malloc(height * xrb->pitch);
323 struct dri_swrast_renderbuffer *xrb = calloc(1, sizeof *xrb);
329 if (!xrb)
332 rb = &xrb->Base.Base;
338 xrb->dPriv = dPriv;
339 xrb->Base.Base.Delete = swrast_delete_renderbuffer;
352 xrb->bpp = 32;
358 xrb->bpp = 32;
364 xrb->bpp = 16;
370 xrb->bpp = 8;
376 return xrb;
387 struct dri_swrast_renderbuffer *xrb = dri_swrast_renderbuffer(rb);
388 GLubyte *map = xrb->Base.Buffer;
393 __DRIdrawable *dPriv = xrb->dPriv;
396 xrb->map_mode = mode;
397 xrb->map_x = x;
398 xrb->map_y = y;
399 xrb->map_w = w;
400 xrb->map_h = h;
403 xrb->Base.Buffer = malloc(h * stride);
406 (char *) xrb->Base.Buffer,
409 *out_map = xrb->Base.Buffer;
414 ASSERT(xrb->Base.Buffer);
432 struct dri_swrast_renderbuffer *xrb = dri_swrast_renderbuffer(rb);
435 __DRIdrawable *dPriv = xrb->dPriv;
438 if (xrb->map_mode & GL_MAP_WRITE_BIT) {
440 xrb->map_x, xrb->map_y,
441 xrb->map_w, xrb->map_h,
442 (char *) xrb->Base.Buffer,
446 free(xrb->Base.Buffer);
447 xrb->Base.Buffer = NULL;