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()
552 struct swrast_renderbuffer *srb = CALLOC_STRUCT(swrast_renderbuffer); in new_osmesa_renderbuffer() local
554 if (srb) { in new_osmesa_renderbuffer()
555 _mesa_init_renderbuffer(&srb->Base, name); in new_osmesa_renderbuffer()
557 srb->Base.ClassID = OSMESA_RENDERBUFFER_CLASS; in new_osmesa_renderbuffer()
558 srb->Base.Delete = osmesa_delete_renderbuffer; in new_osmesa_renderbuffer()
559 srb->Base.AllocStorage = osmesa_renderbuffer_storage; in new_osmesa_renderbuffer()
561 srb->Base.InternalFormat = GL_RGBA; in new_osmesa_renderbuffer()
562 srb->Base._BaseFormat = GL_RGBA; in new_osmesa_renderbuffer()
564 return srb; in new_osmesa_renderbuffer()
582 struct swrast_renderbuffer *srb = swrast_renderbuffer(rb); in osmesa_MapRenderbuffer() local
600 *mapOut = (GLubyte *) srb->Buffer + y * rowStride + x * bpp; in osmesa_MapRenderbuffer()
943 if (osmesa->srb) in OSMesaDestroyContext()
944 _mesa_reference_renderbuffer((struct gl_renderbuffer **) &osmesa->srb, NULL); in OSMesaDestroyContext()
1034 if (!osmesa->srb) { in OSMesaMakeCurrent()
1035 osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type); in OSMesaMakeCurrent()
1038 &osmesa->srb->Base); in OSMesaMakeCurrent()
1039 assert(osmesa->srb->Base.RefCount == 2); in OSMesaMakeCurrent()
1047 osmesa->srb->Buffer = buffer; in OSMesaMakeCurrent()
1048 osmesa->srb->Base.Width = osmesa->srb->Base.Height = 0; in OSMesaMakeCurrent()
1062 &osmesa->srb->Base); in OSMesaMakeCurrent()
1170 struct swrast_renderbuffer *srb = NULL; in OSMesaGetDepthBuffer() local
1173 srb = swrast_renderbuffer(c->gl_buffer-> in OSMesaGetDepthBuffer()
1176 if (!srb || !srb->Buffer) { in OSMesaGetDepthBuffer()
1184 *width = srb->Base.Width; in OSMesaGetDepthBuffer()
1185 *height = srb->Base.Height; in OSMesaGetDepthBuffer()
1190 *buffer = (void *) srb->Buffer; in OSMesaGetDepthBuffer()
1208 if (osmesa->srb && osmesa->srb->Buffer) { in OSMesaGetColorBuffer()
1209 *width = osmesa->srb->Base.Width; in OSMesaGetColorBuffer()
1210 *height = osmesa->srb->Base.Height; in OSMesaGetColorBuffer()
1212 *buffer = (void *) osmesa->srb->Buffer; in OSMesaGetColorBuffer()