Home | History | Annotate | Download | only in osmesa

Lines Matching refs:Format

73    GLenum format;		/*< User-specified context format */
204 if (osmesa->format != OSMESA_RGBA &&
205 osmesa->format != OSMESA_BGRA &&
206 osmesa->format != OSMESA_ARGB) return NULL;
302 if (osmesa->format != OSMESA_RGBA &&
303 osmesa->format != OSMESA_BGRA &&
304 osmesa->format != OSMESA_ARGB) return (swrast_tri_func) NULL;
367 bytesPerRow = rowlength * _mesa_get_format_bytes(osmesa->srb->Base.Format);
410 /* Given the user-provided format and type, figure out which MESA_FORMAT_x
417 if (osmesa->format == OSMESA_RGBA) {
420 rb->Format = MESA_FORMAT_RGBA8888_REV;
422 rb->Format = MESA_FORMAT_RGBA8888;
425 rb->Format = MESA_FORMAT_RGBA_16;
428 rb->Format = MESA_FORMAT_RGBA_FLOAT32;
431 else if (osmesa->format == OSMESA_BGRA) {
434 rb->Format = MESA_FORMAT_ARGB8888;
436 rb->Format = MESA_FORMAT_ARGB8888_REV;
439 _mesa_warning(ctx, "Unsupported OSMesa format BGRA/GLushort");
440 rb->Format = MESA_FORMAT_RGBA_16; /* not exactly right */
443 _mesa_warning(ctx, "Unsupported OSMesa format BGRA/GLfloat");
444 rb->Format = MESA_FORMAT_RGBA_FLOAT32; /* not exactly right */
447 else if (osmesa->format == OSMESA_ARGB) {
450 rb->Format = MESA_FORMAT_ARGB8888_REV;
452 rb->Format = MESA_FORMAT_ARGB8888;
455 _mesa_warning(ctx, "Unsupported OSMesa format ARGB/GLushort");
456 rb->Format = MESA_FORMAT_RGBA_16; /* not exactly right */
459 _mesa_warning(ctx, "Unsupported OSMesa format ARGB/GLfloat");
460 rb->Format = MESA_FORMAT_RGBA_FLOAT32; /* not exactly right */
463 else if (osmesa->format == OSMESA_RGB) {
465 rb->Format = MESA_FORMAT_RGB888;
468 _mesa_warning(ctx, "Unsupported OSMesa format RGB/GLushort");
469 rb->Format = MESA_FORMAT_RGBA_16; /* not exactly right */
472 _mesa_warning(ctx, "Unsupported OSMesa format RGB/GLfloat");
473 rb->Format = MESA_FORMAT_RGBA_FLOAT32; /* not exactly right */
476 else if (osmesa->format == OSMESA_BGR) {
478 rb->Format = MESA_FORMAT_BGR888;
481 _mesa_warning(ctx, "Unsupported OSMesa format BGR/GLushort");
482 rb->Format = MESA_FORMAT_RGBA_16; /* not exactly right */
485 _mesa_warning(ctx, "Unsupported OSMesa format BGR/GLfloat");
486 rb->Format = MESA_FORMAT_RGBA_FLOAT32; /* not exactly right */
489 else if (osmesa->format == OSMESA_RGB_565) {
491 rb->Format = MESA_FORMAT_RGB565;
494 _mesa_problem(ctx, "bad pixel format in osmesa renderbuffer_storage");
510 new_osmesa_renderbuffer(struct gl_context *ctx, GLenum format, GLenum type)
545 const GLuint bpp = _mesa_get_format_bytes(rb->Format);
592 * Input: format - Must be GL_RGBA
598 OSMesaCreateContext( GLenum format, OSMesaContext sharelist )
600 return OSMesaCreateContextExt(format, DEFAULT_SOFTWARE_DEPTH_BITS,
612 OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits,
621 if (format==OSMESA_RGBA) {
631 else if (format==OSMESA_BGRA) {
641 else if (format==OSMESA_ARGB) {
651 else if (format==OSMESA_RGB) {
660 else if (format==OSMESA_BGR) {
670 else if (format==OSMESA_RGB_565) {
749 osmesa->format = format;
862 if (osmesa->format == OSMESA_RGB_565 && type != GL_UNSIGNED_SHORT_5_6_5) {
892 osmesa->srb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type);
991 *value = osmesa->format;
1058 * format - the pixel format (OSMESA_FORMAT)
1064 GLint *height, GLint *format, void **buffer )
1069 *format = osmesa->format;
1076 *format = 0;