Lines Matching defs:format
757 * Is the given base format a legal format for a color renderbuffer?
799 * Is the given base format a legal format for a color renderbuffer?
802 is_format_color_renderable(const struct gl_context *ctx, mesa_format format,
806 _mesa_get_format_base_format(format);
861 (format == MESA_FORMAT_B10G10R10A2_UNORM ||
862 format == MESA_FORMAT_B10G10R10X2_UNORM ||
863 format == MESA_FORMAT_R10G10B10A2_UNORM ||
864 format == MESA_FORMAT_R10G10B10X2_UNORM)) {
875 * Check passes if texture format is not floating point or
878 * Check fails if texture format is floating point and cannot
909 * Is the given base format a legal format for a depth/stencil renderbuffer?
926 * \param format if GL_COLOR, this is a color attachment point,
931 test_attachment_completeness(const struct gl_context *ctx, GLenum format,
934 assert(format == GL_COLOR || format == GL_DEPTH || format == GL_STENCIL);
1011 if (format == GL_COLOR) {
1013 att_incomplete("bad format");
1029 att_incomplete("bad internal format");
1034 else if (format == GL_DEPTH) {
1038 att_incomplete("bad depth format");
1043 assert(format == GL_STENCIL);
1068 if (format == GL_COLOR) {
1070 att_incomplete("bad renderbuffer color format");
1075 else if (format == GL_DEPTH) {
1083 att_incomplete("bad renderbuffer depth format");
1089 assert(format == GL_STENCIL);
1096 att_incomplete("bad renderbuffer stencil format");
1128 enum pipe_format format;
1140 * the format is supported.
1148 format = stObj->pt->format;
1152 * check for linear format support instead.
1153 * Later when we create a surface, we change the format to a linear one. */
1156 format = st_mesa_format_to_pipe_format(st_context(ctx), linearFormat);
1159 valid = screen->is_format_supported(screen, format,
1165 fbo_invalid("Invalid format");
1224 enum pipe_format format;
1235 format = att->Renderbuffer->surface->format;
1241 first_format = format;
1242 } else if (format != first_format) {
1265 GLenum intFormat = GL_NONE; /* color buffers' internal format */
1342 * due to invalid format. This is special case for the extension where
1357 /* get width, height, format of the renderbuffer/texture
1471 /* Error-check width, height, format */
1473 /* save format */
1481 /* check that width, height, format are same */
1487 /* check that all color buffers are the same format */
1490 fbo_incomplete(ctx, "format mismatch", -1);
1496 /* Check that the format is valid. (MESA_FORMAT_NONE means unsupported)
1501 fbo_incomplete(ctx, "unsupported renderbuffer format", i);
1508 /* Each layer's format and size must match to the base layer. */
2313 * Given an internal format token for a render buffer, return the
2314 * corresponding base format (one of GL_RGB, GL_RGBA, GL_STENCIL_INDEX,
2321 * Note that even if a format is determined to be legal here, validation
2322 * of the FBO may fail if the format is not supported by the driver/GPU.
2325 * \return the base internal format, or 0 if internalFormat is illegal
2729 /* If rb->Format == MESA_FORMAT_NONE, the format is unsupported. */
2939 * We have to be careful to respect the base format. For example, if a
2941 * driver actually chose a GL_RGBA format, when the user queries ALPHA_SIZE
2945 get_component_bits(GLenum pname, GLenum baseFormat, mesa_format format)
2948 return _mesa_get_format_bits(format, pname);
3897 * "If texture refers to an immutable-format texture, level must be
4437 /* make sure the renderbuffer is a depth/stencil format */
4441 "%s(renderbuffer is not DEPTH_STENCIL format)", func);
4660 * attachment, since it does not have a single format."
4798 mesa_format format = att->Renderbuffer->Format;
4816 if (format == MESA_FORMAT_S_UINT8) {
4820 else if (format == MESA_FORMAT_Z32_FLOAT_S8X24_UINT) {
4830 *params = _mesa_get_format_datatype(format);