Home | History | Annotate | Download | only in main

Lines Matching refs:Format

71    if (_mesa_get_format_datatype(rb->Format) != GL_UNSIGNED_NORMALIZED)
74 if (!((type == GL_UNSIGNED_SHORT && rb->Format == MESA_FORMAT_Z16) ||
92 _mesa_unpack_uint_z_row(rb->Format, width, map, (GLuint *)dst);
94 ASSERT(type == GL_UNSIGNED_SHORT && rb->Format == MESA_FORMAT_Z16);
107 * Read pixels for format=GL_DEPTH_COMPONENT.
151 _mesa_unpack_float_z_row(rb->Format, width, map, depthValues);
169 * Read pixels for format=GL_STENCIL_INDEX.
201 _mesa_unpack_ubyte_stencil_row(rb->Format, width, map, stencil);
228 GLenum format, GLenum type,
239 if (rb->Format == MESA_FORMAT_RGBA8888_REV &&
240 format == GL_BGRA &&
245 else if (rb->Format == MESA_FORMAT_XRGB8888 &&
246 format == GL_BGRA &&
251 else if (!_mesa_format_matches_format_and_type(rb->Format, format, type,
255 /* If the format is unsigned normalized then we can ignore clamping
259 if (_mesa_get_format_datatype(rb->Format) == GL_UNSIGNED_NORMALIZED)
265 dstStride = _mesa_image_row_stride(packing, width, format, type);
267 format, type, 0, 0);
276 texelBytes = _mesa_get_format_bytes(rb->Format);
321 GLenum format, GLenum type,
327 const gl_format rbFormat = _mesa_get_srgb_format_linear(rb->Format);
331 GLboolean dst_is_integer = _mesa_is_enum_format_integer(format);
334 dstStride = _mesa_image_row_stride(packing, width, format, type);
336 format, type, 0, 0);
355 _mesa_pack_rgba_span_from_uints(ctx, width, (GLuint (*)[4]) rgba, format,
358 _mesa_pack_rgba_span_from_ints(ctx, width, (GLint (*)[4]) rgba, format,
365 _mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba, format,
385 GLenum format, GLenum type, GLvoid *pixels,
396 !_mesa_is_enum_format_integer(format)) {
402 format, type, pixels, packing,
408 format, type, pixels, packing, transferOps);
430 if (rb->Format != MESA_FORMAT_Z24_S8 &&
431 rb->Format != MESA_FORMAT_S8_Z24)
442 _mesa_unpack_uint_24_8_depth_stencil_row(rb->Format, width,
471 if (_mesa_get_format_datatype(depthRb->Format) != GL_UNSIGNED_NORMALIZED)
493 _mesa_unpack_uint_z_row(depthRb->Format, width, depthMap, dst);
494 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
565 _mesa_unpack_float_z_row(depthRb->Format, width, depthMap, depthVals);
566 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
643 GLenum format, GLenum type,
658 switch (format) {
673 read_rgba_pixels(ctx, x, y, width, height, format, type, pixels,
685 GLenum format, GLenum type, GLsizei bufSize,
698 _mesa_lookup_enum_by_nr(format),
709 * combinations of format and type that can be used.
717 err = _mesa_es_error_check_format_and_type(format, type, 2);
721 } else if (format == GL_DEPTH_COMPONENT
722 || format == GL_DEPTH_STENCIL) {
728 _mesa_error(ctx, err, "glReadPixels(invalid format %s and/or type %s)",
729 _mesa_lookup_enum_by_nr(format),
738 err = _mesa_error_check_format_and_type(ctx, format, type);
740 _mesa_error(ctx, err, "glReadPixels(invalid format %s and/or type %s)",
741 _mesa_lookup_enum_by_nr(format),
758 if (!_mesa_source_buffer_exists(ctx, format)) {
763 /* Check that the destination format and source buffer are both
766 if (ctx->Extensions.EXT_texture_integer && _mesa_is_color_format(format)) {
768 const GLboolean srcInteger = _mesa_is_format_integer_color(rb->Format);
769 const GLboolean dstInteger = _mesa_is_enum_format_integer(format);
772 "glReadPixels(integer / non-integer format mismatch");
781 format, type, bufSize, pixels)) {
801 format, type, &ctx->Pack, pixels);
806 GLenum format, GLenum type, GLvoid *pixels )
808 _mesa_ReadnPixelsARB(x, y, width, height, format, type, INT_MAX, pixels);