Lines Matching refs:format
65 #include "util/format/u_format.h"
113 GLenum format; /*< User-specified context format */
216 unsigned bpp = util_format_get_blocksize(res->format);
229 * Given an OSMESA_x format and a GL_y type, return the best
231 * Note that we can't exactly match all user format/type combinations
233 * implement more elaborate format/type conversion in the flush_front()
237 osmesa_choose_format(GLenum format, GLenum type)
239 switch (format) {
309 /* No gallium format for this one */
381 util_format_description(res->format);
431 templat.format = 0; /* setup below */
442 enum pipe_format format = PIPE_FORMAT_NONE;
451 format = osbuffer->visual.color_format;
455 format = osbuffer->visual.depth_stencil_format;
459 format = osbuffer->visual.accum_format;
467 templat.format = format;
541 * Input: format - Must be GL_RGBA
547 OSMesaCreateContext(GLenum format, OSMesaContext sharelist)
549 return OSMesaCreateContextExt(format, 24, 8, 0, sharelist);
559 OSMesaCreateContextExt(GLenum format, GLint depthBits, GLint stencilBits,
565 attribs[n++] = format;
591 GLenum format = GL_RGBA;
606 format = attribList[i+1];
607 switch (format) {
710 osmesa->format = format;
774 color_format = osmesa_choose_format(osmesa->format, type);
776 fprintf(stderr, "OSMesaMakeCurrent(unsupported format/type)\n");
884 *value = osmesa->format;
936 *bytesPerValue = util_format_get_blocksize(res->format);
957 * format - the pixel format (OSMESA_FORMAT)
963 GLint *height, GLint *format, void **buffer)
970 *format = osmesa->format;
977 *format = 0;