Lines Matching refs:srb

60    struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);  in soft_renderbuffer_storage()  local
122 if (srb->Buffer) { in soft_renderbuffer_storage()
123 free(srb->Buffer); in soft_renderbuffer_storage()
124 srb->Buffer = NULL; in soft_renderbuffer_storage()
127 srb->RowStride = width * bpp; in soft_renderbuffer_storage()
131 srb->Buffer = malloc(srb->RowStride * height); in soft_renderbuffer_storage()
133 if (srb->Buffer == NULL) { in soft_renderbuffer_storage()
171 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in soft_renderbuffer_delete() local
173 free(srb->Buffer); in soft_renderbuffer_delete()
174 srb->Buffer = NULL; in soft_renderbuffer_delete()
187 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in _swrast_map_soft_renderbuffer() local
188 GLubyte *map = srb->Buffer; in _swrast_map_soft_renderbuffer()
222 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer); in _swrast_new_soft_renderbuffer() local
223 if (srb) { in _swrast_new_soft_renderbuffer()
224 _mesa_init_renderbuffer(&srb->Base, name); in _swrast_new_soft_renderbuffer()
225 srb->Base.AllocStorage = soft_renderbuffer_storage; in _swrast_new_soft_renderbuffer()
226 srb->Base.Delete = soft_renderbuffer_delete; in _swrast_new_soft_renderbuffer()
228 return &srb->Base; in _swrast_new_soft_renderbuffer()
563 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in map_attachment() local
575 &srb->Map, &srb->RowStride); in map_attachment()
583 &srb->Map, &srb->RowStride); in map_attachment()
586 assert(srb->Map); in map_attachment()
597 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in unmap_attachment() local
614 srb->Map = NULL; in unmap_attachment()
626 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in find_renderbuffer_colortype() local
632 srb->ColorType = GL_UNSIGNED_BYTE; in find_renderbuffer_colortype()
636 srb->ColorType = GL_FLOAT; in find_renderbuffer_colortype()