Home | History | Annotate | Download | only in main

Lines Matching refs:Format

442             switch (rb->Format) {
448 /* render buffer format is supported by software rendering */
481 * Is the given base format a legal format for a color renderbuffer?
505 * Is the given base format a legal format for a depth/stencil renderbuffer?
522 * \param format if GL_COLOR, this is a color attachment point,
527 test_attachment_completeness(const struct gl_context *ctx, GLenum format,
530 assert(format == GL_COLOR || format == GL_DEPTH || format == GL_STENCIL);
568 if (format == GL_COLOR) {
570 format");
580 else if (format == GL_DEPTH) {
591 att_incomplete("bad depth format");
596 ASSERT(format == GL_STENCIL);
612 _mesa_get_format_base_format(att->Renderbuffer->Format);
622 if (format == GL_COLOR) {
624 att_incomplete("bad renderbuffer color format");
629 else if (format == GL_DEPTH) {
638 att_incomplete("bad renderbuffer depth format");
644 assert(format == GL_STENCIL);
654 att_incomplete("bad renderbuffer stencil format");
680 GLenum intFormat = GL_NONE; /* color buffers' internal format */
740 /* get width, height, format of the renderbuffer/texture
765 attFormat = att->Renderbuffer->Format;
781 /* Error-check width, height, format, samples
784 /* save format, num samples */
791 /* check that width, height, format are same */
797 /* check that all color buffers are the same format */
800 fbo_incomplete("format mismatch", -1);
812 /* Check that the format is valid. (MESA_FORMAT_NONE means unsupported)
815 att->Renderbuffer->Format == MESA_FORMAT_NONE) {
817 fbo_incomplete("unsupported renderbuffer format", i);
1051 * Given an internal format token for a render buffer, return the
1052 * corresponding base format (one of GL_RGB, GL_RGBA, GL_STENCIL_INDEX,
1059 * Note that even if a format is determined to be legal here, validation
1060 * of the FBO may fail if the format is not supported by the driver/GPU.
1063 * \return the base internal format, or 0 if internalFormat is illegal
1469 rb->Format = MESA_FORMAT_NONE;
1476 /* If rb->Format == MESA_FORMAT_NONE, the format is unsupported. */
1487 rb->Format = MESA_FORMAT_NONE;
1537 * We have to be careful to respect the base format. For example, if a
1539 * driver actually chose a GL_RGBA format, when the user queries ALPHA_SIZE
1543 get_component_bits(GLenum pname, GLenum baseFormat, gl_format format)
1546 return _mesa_get_format_bits(format, pname);
1584 /* choose a closest format */
1636 *params = get_component_bits(pname, rb->_BaseFormat, rb->Format);
2326 rb && rb->Format != MESA_FORMAT_NONE) {
2327 /* make sure the renderbuffer is a depth/stencil format */
2328 const GLenum baseFormat = _mesa_get_format_base_format(rb->Format);
2332 " is not DEPTH_STENCIL format)");
2495 *params = _mesa_get_format_color_encoding(att->Renderbuffer->Format);
2515 gl_format format = att->Renderbuffer->Format;
2516 if (format == MESA_FORMAT_S8) {
2520 else if (format == MESA_FORMAT_Z32_FLOAT_X24S8) {
2530 *params = _mesa_get_format_datatype(format);
2562 att->Renderbuffer->Format);
2653 "glGenerateMipmap(invalid internal format)");
2726 * Return the equivalent non-generic internal format.
2731 get_nongeneric_internalformat(GLenum format)
2733 switch (format) {
2803 return format;
2809 get_linear_internalformat(GLenum format)
2811 switch (format) {
2831 return format;
2844 if (_mesa_get_srgb_format_linear(colorReadRb->Format) ==
2845 _mesa_get_srgb_format_linear(colorDrawRb->Format)) {
2955 else if (!compatible_color_datatypes(colorReadRb->Format,
2956 colorDrawRb->Format)) {
2981 else if (_mesa_get_format_bits(readRb->Format, GL_STENCIL_BITS) !=
2982 _mesa_get_format_bits(drawRb->Format, GL_STENCIL_BITS)) {
3007 else if ((_mesa_get_format_bits(readRb->Format, GL_DEPTH_BITS) !=
3008 _mesa_get_format_bits(drawRb->Format, GL_DEPTH_BITS)) ||
3009 (_mesa_get_format_datatype(readRb->Format) !=
3010 _mesa_get_format_datatype(drawRb->Format))) {
3012 "glBlitFramebufferEXT(depth buffer format mismatch)");
3050 GLenum type = _mesa_get_format_datatype(colorReadRb->Format);