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