Home | History | Annotate | Download | only in main

Lines Matching refs:depth

1012                              GLsizei depth)
1031 size = MAX3(width, height, depth);
1051 make_null_texture(GLint width, GLint height, GLint depth, GLenum format)
1054 const GLint numPixels = width * height * depth;
1077 for (h = 0; h < depth; h++) {
1111 img->Depth = 0;
1129 * \param depth image depth.
1135 * Note: width, height and depth include the border.
1140 GLsizei width, GLsizei height, GLsizei depth,
1148 ASSERT(depth >= 0);
1157 img->Depth = depth;
1171 if (depth == 0)
1181 if (depth == 0)
1202 if (depth == 0)
1212 img->Depth2 = depth; /* no border */
1219 img->Depth2 = depth - 2 * border; /* == 1 << img->DepthLog2; */
1254 * level, width, height and depth against the ctx->Const limits for textures.
1259 * Note that width, height, depth == 0 is not an error. However, a
1260 * texture with zero width/height/depth will be considered "incomplete"
1272 * \param depth as passed to glTexImage
1279 GLint width, GLint height, GLint depth, GLint border)
1327 if (depth < 2 * border || depth > 2 * border + maxSize)
1334 if (depth > 0 && !_mesa_is_pow_two(depth - 2 * border))
1390 if (depth < 1 || depth > ctx->Const.MaxArrayTextureLayers)
1416 GLint width, GLint height, GLint depth)
1418 uint64_t bytes = _mesa_format_image_size64(format, width, height, depth);
1688 compressed_tex_size(GLsizei width, GLsizei height, GLsizei depth,
1692 return _mesa_format_image_size(mesaFormat, width, height, depth);
1709 * an error is detected and the proxy texture image's width/height/depth/format
1727 * \param depth image depth given by the user.
1743 GLint depth, GLint border )
1759 * Instead, they cause the width, height, depth, format fields of the
1781 if (width < 0 || height < 0 || depth < 0) {
1783 "glTexImage%dD(width, height or depth < 0)", dimensions);
1825 depth, border);
1833 "glTexImage%dD(level=%d, width=%d, height=%d, depth=%d)",
1834 dimensions, level, width, height, depth);
1900 /* additional checks for depth textures */
1917 "glTexImage%dD(bad target for depth texture)",
1972 GLsizei height, GLsizei depth, GLint border,
2058 expectedSize = compressed_tex_size(width, height, depth, internalFormat);
2087 width, height, depth, border)) {
2137 * \param depth image depth given by the user.
2149 GLint width, GLint height, GLint depth,
2171 if (depth < 0 && dimensions > 2) {
2173 "glTexSubImage%dD(depth=%d)", dimensions, depth);
2214 GLint width, GLint height, GLint depth,
2253 if (zoffset + depth > (GLint) destTex->Depth + zBorder) {
2254 _mesa_error(ctx, GL_INVALID_VALUE, "glTexSubImage3D(zoffset+depth)");
2599 if (zoffset > (GLint) teximage->Depth + zBorder) {
2601 "glCopyTexSubImage%dD(zoffset+depth)", dimensions);
2875 GLint *width, GLint *height, GLint *depth,
2881 assert(depth);
2901 if (*depth >= 3 && target != GL_TEXTURE_2D_ARRAY) {
2903 *depth = *depth - 2; /* reduce the depth by two border pixels */
2919 GLsizei width, GLsizei height, GLsizei depth,
2937 width, height, depth, border, pixels);
2944 width, height, depth, border,
2962 width, height, depth,
2967 format, type, width, height, depth, border);
3008 if (!legal_texture_size(ctx, texFormat, width, height, depth)) {
3021 _mesa_init_teximage_fields(ctx, texImage, width, height, depth,
3043 strip_texture_border(target, &width, &height, &depth, unpack,
3070 if (legal_texture_size(ctx, texFormat, width, height, depth)) {
3072 width, height, depth,
3076 if (width > 0 && height > 0 && depth > 0) {
3135 GLsizei width, GLsizei height, GLsizei depth,
3141 width, height, depth,
3148 GLsizei width, GLsizei height, GLsizei depth,
3153 depth, border, format, type, pixels);
3222 GLsizei width, GLsizei height, GLsizei depth,
3234 xoffset, yoffset, zoffset, width, height, depth,
3249 width, height, depth, format, type)) {
3261 width, height, depth,
3265 else if (width > 0 && height > 0 && depth > 0) {
3282 width, height, depth,
3327 GLsizei width, GLsizei height, GLsizei depth,
3334 width, height, depth,
3342 * from. This depends on whether the texture contains color or depth values.
3348 /* reading from depth/stencil buffer */
3597 GLsizei width, GLsizei height, GLsizei depth,
3664 expectedSize = compressed_tex_size(width, height, depth, format);
3679 GLsizei depth, GLenum format,
3720 if (((depth == 1 || depth == 2) &&
3721 depth != (GLsizei) texImage->Depth) ||
3722 (depth > (GLsizei) texImage->Depth)) {
3724 "glCompressedTexSubImage%uD(depth=%d)", dims, depth);
3760 GLsizei height, GLsizei depth, GLint border,
3765 width, height, depth, border, GL_NONE, GL_NONE, imageSize, data);
3775 GLsizei width, GLsizei height, GLsizei depth,
3786 width, height, depth, /* size */
3799 if (compressed_subtexture_error_check2(ctx, dims, width, height, depth,
3803 else if (width > 0 && height > 0 && depth > 0) {
3806 width, height, depth,
3842 GLsizei height, GLsizei depth, GLenum format,
3846 width, height, depth, format, imageSize, data);