Lines Matching refs:srb

71    struct swrast_renderbuffer *srb;     /*< The user's colorbuffer */  member
358 GLubyte *origin = (GLubyte *) osmesa->srb->Buffer; in compute_row_addresses()
360 GLint height = osmesa->srb->Base.Height; in compute_row_addresses()
365 rowlength = osmesa->srb->Base.Width; in compute_row_addresses()
367 bytesPerRow = rowlength * _mesa_get_format_bytes(osmesa->srb->Base.Format); in compute_row_addresses()
513 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer); in new_osmesa_renderbuffer() local
515 if (srb) { in new_osmesa_renderbuffer()
516 _mesa_init_renderbuffer(&srb->Base, name); in new_osmesa_renderbuffer()
518 srb->Base.ClassID = OSMESA_RENDERBUFFER_CLASS; in new_osmesa_renderbuffer()
519 srb->Base.RefCount = 1; in new_osmesa_renderbuffer()
520 srb->Base.Delete = osmesa_delete_renderbuffer; in new_osmesa_renderbuffer()
521 srb->Base.AllocStorage = osmesa_renderbuffer_storage; in new_osmesa_renderbuffer()
523 srb->Base.InternalFormat = GL_RGBA; in new_osmesa_renderbuffer()
524 srb->Base._BaseFormat = GL_RGBA; in new_osmesa_renderbuffer()
526 return srb; in new_osmesa_renderbuffer()
544 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in osmesa_MapRenderbuffer() local
562 *mapOut = (GLubyte *) srb->Buffer + y * rowStride + x * bpp; in osmesa_MapRenderbuffer()
807 if (osmesa->srb) in OSMesaDestroyContext()
808 _mesa_reference_renderbuffer((struct gl_renderbuffer **) &osmesa->srb, NULL); in OSMesaDestroyContext()
891 if (!osmesa->srb) { in OSMesaMakeCurrent()
892 osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type); in OSMesaMakeCurrent()
895 &osmesa->srb->Base); in OSMesaMakeCurrent()
896 assert(osmesa->srb->Base.RefCount == 2); in OSMesaMakeCurrent()
904 osmesa->srb->Buffer = buffer; in OSMesaMakeCurrent()
905 osmesa->srb->Base.Width = osmesa->srb->Base.Height = 0; in OSMesaMakeCurrent()
920 &osmesa->srb->Base); in OSMesaMakeCurrent()
1028 struct swrast_renderbuffer *srb = NULL; in OSMesaGetDepthBuffer() local
1031 srb = swrast_renderbuffer(c->gl_buffer-> in OSMesaGetDepthBuffer()
1034 if (!srb || !srb->Buffer) { in OSMesaGetDepthBuffer()
1042 *width = srb->Base.Width; in OSMesaGetDepthBuffer()
1043 *height = srb->Base.Height; in OSMesaGetDepthBuffer()
1048 *buffer = (void *) srb->Buffer; in OSMesaGetDepthBuffer()
1066 if (osmesa->srb && osmesa->srb->Buffer) { in OSMesaGetColorBuffer()
1067 *width = osmesa->srb->Base.Width; in OSMesaGetColorBuffer()
1068 *height = osmesa->srb->Base.Height; in OSMesaGetColorBuffer()
1070 *buffer = (void *) osmesa->srb->Buffer; in OSMesaGetColorBuffer()