Lines Matching refs:srb
75 struct swrast_renderbuffer *srb; /*< The user's colorbuffer */ member
397 GLubyte *origin = (GLubyte *) osmesa->srb->Buffer; in compute_row_addresses()
399 GLint height = osmesa->srb->Base.Height; in compute_row_addresses()
404 rowlength = osmesa->srb->Base.Width; in compute_row_addresses()
406 bytesPerRow = rowlength * _mesa_get_format_bytes(osmesa->srb->Base.Format); in compute_row_addresses()
555 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer); in new_osmesa_renderbuffer() local
557 if (srb) { in new_osmesa_renderbuffer()
558 _mesa_init_renderbuffer(&srb->Base, name); in new_osmesa_renderbuffer()
560 srb->Base.ClassID = OSMESA_RENDERBUFFER_CLASS; in new_osmesa_renderbuffer()
561 srb->Base.Delete = osmesa_delete_renderbuffer; in new_osmesa_renderbuffer()
562 srb->Base.AllocStorage = osmesa_renderbuffer_storage; in new_osmesa_renderbuffer()
564 srb->Base.InternalFormat = GL_RGBA; in new_osmesa_renderbuffer()
565 srb->Base._BaseFormat = GL_RGBA; in new_osmesa_renderbuffer()
567 return srb; in new_osmesa_renderbuffer()
586 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in osmesa_MapRenderbuffer() local
604 *mapOut = (GLubyte *) srb->Buffer + y * rowStride + x * bpp; in osmesa_MapRenderbuffer()
948 if (osmesa->srb) in OSMesaDestroyContext()
949 _mesa_reference_renderbuffer((struct gl_renderbuffer **) &osmesa->srb, NULL); in OSMesaDestroyContext()
1033 if (!osmesa->srb) { in OSMesaMakeCurrent()
1034 osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type); in OSMesaMakeCurrent()
1037 &osmesa->srb->Base); in OSMesaMakeCurrent()
1038 assert(osmesa->srb->Base.RefCount == 2); in OSMesaMakeCurrent()
1046 osmesa->srb->Buffer = buffer; in OSMesaMakeCurrent()
1047 osmesa->srb->Base.Width = osmesa->srb->Base.Height = 0; in OSMesaMakeCurrent()
1061 &osmesa->srb->Base); in OSMesaMakeCurrent()
1169 struct swrast_renderbuffer *srb = NULL; in OSMesaGetDepthBuffer() local
1172 srb = swrast_renderbuffer(c->gl_buffer-> in OSMesaGetDepthBuffer()
1175 if (!srb || !srb->Buffer) { in OSMesaGetDepthBuffer()
1183 *width = srb->Base.Width; in OSMesaGetDepthBuffer()
1184 *height = srb->Base.Height; in OSMesaGetDepthBuffer()
1189 *buffer = (void *) srb->Buffer; in OSMesaGetDepthBuffer()
1207 if (osmesa->srb && osmesa->srb->Buffer) { in OSMesaGetColorBuffer()
1208 *width = osmesa->srb->Base.Width; in OSMesaGetColorBuffer()
1209 *height = osmesa->srb->Base.Height; in OSMesaGetColorBuffer()
1211 *buffer = (void *) osmesa->srb->Buffer; in OSMesaGetColorBuffer()