Lines Matching defs:srb
61 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
122 free(srb->Buffer);
123 srb->Buffer = NULL;
125 srb->RowStride = width * bpp;
129 srb->Buffer = malloc(srb->RowStride * height);
131 if (srb->Buffer == NULL) {
169 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
171 free(srb->Buffer);
172 srb->Buffer = NULL;
186 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
187 GLubyte *map = srb->Buffer;
221 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer);
222 if (srb) {
223 _mesa_init_renderbuffer(&srb->Base, name);
224 srb->Base.AllocStorage = soft_renderbuffer_storage;
225 srb->Base.Delete = soft_renderbuffer_delete;
227 return &srb->Base;
505 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
517 &srb->Map, &srb->RowStride);
525 &srb->Map, &srb->RowStride,
529 assert(srb->Map);
540 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
557 srb->Map = NULL;
569 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb);
575 srb->ColorType = GL_UNSIGNED_BYTE;
579 srb->ColorType = GL_FLOAT;