Lines Matching refs:srb

60    struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);  in soft_renderbuffer_storage()  local
122 free(srb->Buffer); in soft_renderbuffer_storage()
123 srb->Buffer = NULL; in soft_renderbuffer_storage()
125 srb->RowStride = width * bpp; in soft_renderbuffer_storage()
129 srb->Buffer = malloc(srb->RowStride * height); in soft_renderbuffer_storage()
131 if (srb->Buffer == NULL) { in soft_renderbuffer_storage()
169 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in soft_renderbuffer_delete() local
171 free(srb->Buffer); in soft_renderbuffer_delete()
172 srb->Buffer = NULL; in soft_renderbuffer_delete()
185 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in _swrast_map_soft_renderbuffer() local
186 GLubyte *map = srb->Buffer; in _swrast_map_soft_renderbuffer()
220 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer); in _swrast_new_soft_renderbuffer() local
221 if (srb) { in _swrast_new_soft_renderbuffer()
222 _mesa_init_renderbuffer(&srb->Base, name); in _swrast_new_soft_renderbuffer()
223 srb->Base.AllocStorage = soft_renderbuffer_storage; in _swrast_new_soft_renderbuffer()
224 srb->Base.Delete = soft_renderbuffer_delete; in _swrast_new_soft_renderbuffer()
226 return &srb->Base; in _swrast_new_soft_renderbuffer()
561 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in map_attachment() local
573 &srb->Map, &srb->RowStride); in map_attachment()
581 &srb->Map, &srb->RowStride); in map_attachment()
584 assert(srb->Map); in map_attachment()
595 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in unmap_attachment() local
612 srb->Map = NULL; in unmap_attachment()
624 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in find_renderbuffer_colortype() local
630 srb->ColorType = GL_UNSIGNED_BYTE; in find_renderbuffer_colortype()
634 srb->ColorType = GL_FLOAT; in find_renderbuffer_colortype()