Lines Matching defs:height

682 _mesa_get_tex_max_num_levels(GLenum target, GLsizei width, GLsizei height,
704 size = MAX2(width, height);
708 size = MAX3(width, height, depth);
734 make_null_texture(GLint width, GLint height, GLint depth, GLenum format)
737 const GLint numPixels = width * height * depth;
761 for (i = 0; i < height; i++) {
813 * \param height image height.
822 * Note: width, height and depth include the border.
827 GLsizei width, GLsizei height, GLsizei depth,
836 assert(height >= 0);
845 img->Height = height;
855 if (height == 0)
868 img->Height2 = height; /* no border */
891 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
905 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
912 img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */
934 GLsizei width, GLsizei height, GLsizei depth,
938 _mesa_init_teximage_fields_ms(ctx, img, width, height, depth, border,
962 * Check the width, height, depth and border of a texture image are legal.
970 GLint level, GLint width, GLint height,
994 if (height < 2 * border || height > 2 * border + maxSize)
999 if (height > 0 && !util_is_power_of_two_nonzero(height - 2 * border))
1010 if (height < 2 * border || height > 2 * border + maxSize)
1017 if (height > 0 && !util_is_power_of_two_nonzero(height - 2 * border))
1031 if (height < 0 || height > maxSize)
1045 if (width != height)
1049 if (height < 2 * border || height > 2 * border + maxSize)
1054 if (height > 0 && !util_is_power_of_two_nonzero(height - 2 * border))
1064 if (height < 0 || height > ctx->Const.MaxArrayTextureLayers)
1079 if (height < 2 * border || height > 2 * border + maxSize)
1086 if (height > 0 && !util_is_power_of_two_nonzero(height - 2 * border))
1096 if (height < 2 * border || height > 2 * border + maxSize)
1100 if (width != height)
1107 if (height > 0 && !util_is_power_of_two_nonzero(height - 2 * border))
1132 _mesa_error(ctx, GL_INVALID_VALUE, "%s(height=%d)", func, subHeight);
1145 * Do error checking of xoffset, yoffset, zoffset, width, height and depth
1172 /* check yoffset and height */
1180 _mesa_error(ctx, GL_INVALID_VALUE, "%s(yoffset %d + height %d > %u)",
1241 "%s(height = %d)", func, subHeight);
1266 * Note that width, height, depth == 0 is not an error. However, a
1267 * texture with zero width/height/depth will be considered "incomplete"
1276 * \param height as passed to glTexImage
1284 GLint width, GLint height, GLint depth)
1301 bytes += _mesa_format_image_size64(format, width, height, depth);
1303 if (_mesa_next_mipmap_level_size(target, 0, width, height, depth,
1307 height = nextHeight;
1317 bytes = _mesa_format_image_size64(format, width, height, depth);
1660 compressed_tex_size(GLsizei width, GLsizei height, GLsizei depth,
1664 return _mesa_format_image_size(mesaFormat, width, height, depth);
1808 * \param height image height given by the user.
1817 * Note that we don't fully error-check the width, height, depth values
1828 GLint width, GLint height,
1836 * Instead, they cause the width, height, depth, format fields of the
1858 if (width < 0 || height < 0 || depth < 0) {
1860 "glTexImage%dD(width, height or depth < 0)", dimensions);
1906 width, height, depth, format, type,
2001 * Note that the width, height and depth values are not fully error checked
2009 GLsizei height, GLsizei depth, GLint border,
2065 width, height);
2088 expectedSize = compressed_tex_size(width, height, depth, internalFormat);
2119 reason = "imageSize inconsistent with width/height/format";
2154 * \param height image height given by the user.
2168 GLint width, GLint height, GLint depth,
2188 width, height, depth,
2236 width, height, depth, format, type,
2243 width, height, depth, callerName)) {
2278 * \param height image height given by the user.
2565 GLint width, GLint height, const char *caller)
2604 width, height, 1, caller)) {
2610 width, height, 1, caller)) {
2771 UNUSED GLint height)
2776 printf("Convert rgba float tex to int %d x %d\n", width, height);
2781 printf("Convert rgb float tex to int %d x %d\n", width, height);
2786 printf("Convert luminance float tex to int %d x %d\n", width, height);
2791 printf("Convert luminance float tex to int %d x %d\n", width, height);
2796 printf("Convert luminance float tex to int %d x %d\n", width, height);
2863 GLint *width, GLint *height, GLint *depth,
2868 assert(height);
2877 unpackNew->ImageHeight = *height;
2883 /* The min height of a texture with a border is 3 */
2884 if (*height >= 3 && target != GL_TEXTURE_1D_ARRAY) {
2886 *height = *height - 2; /* reduce the height by two border pixels */
2972 GLsizei width, GLsizei height, GLsizei depth,
2991 width, height, depth, border, pixels);
2998 width, height, depth, border,
3003 internalFormat = override_internal_format(internalFormat, width, height);
3021 width, height, depth,
3026 format, type, width, height, depth, border,
3050 width, height, imageSize, pixels);
3083 /* check that width, height, depth are legal for the mipmap level */
3085 height, depth, border);
3090 width, height, depth);
3102 _mesa_init_teximage_fields(ctx, texImage, width, height, depth,
3116 "%s%uD(invalid width=%d or height=%d or depth=%d)",
3117 func, dims, width, height, depth);
3124 func, dims, width, height, depth,
3134 strip_texture_border(target, &width, &height, &depth, unpack,
3155 width, height, depth,
3159 if (width > 0 && height > 0 && depth > 0) {
3188 GLsizei width, GLsizei height, GLsizei depth,
3192 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height,
3200 GLsizei width, GLsizei height, GLsizei depth,
3204 teximage(ctx, compressed, dims, NULL, target, level, internalFormat, width, height,
3258 GLsizei width, GLsizei height, GLint border,
3263 teximage_err(ctx, GL_FALSE, 2, target, level, internalFormat, width, height, 1,
3269 GLint internalFormat, GLsizei width, GLsizei height,
3281 width, height, 1, border, format, type, 0, pixels, false);
3286 GLint internalFormat, GLsizei width, GLsizei height,
3299 teximage(ctx, GL_FALSE, 2, texObj, target, level, internalFormat, width, height, 1,
3305 * Note that width and height include the border.
3309 GLsizei width, GLsizei height, GLsizei depth,
3315 width, height, depth, border, format, type, 0, pixels);
3320 GLint internalFormat, GLsizei width, GLsizei height,
3332 width, height, depth, border, format, type, 0, pixels, false);
3338 GLint internalFormat, GLsizei width, GLsizei height,
3352 width, height, depth, border, format, type, 0, pixels, false);
3369 GLsizei width, GLsizei height, GLint border,
3374 height, 1, border, format, type, 0, pixels);
3380 GLsizei width, GLsizei height, GLsizei depth,
3386 width, height, depth, border, format, type, 0, pixels);
3540 GLsizei width, GLsizei height, GLsizei depth,
3549 if (width > 0 && height > 0 && depth > 0) {
3566 width, height, depth,
3586 GLsizei width, GLsizei height, GLsizei depth,
3606 width, height, depth, format, type,
3618 xoffset, yoffset, zoffset, width, height, depth,
3623 xoffset, yoffset, zoffset, width, height, depth,
3631 GLsizei width, GLsizei height, GLsizei depth,
3641 xoffset, yoffset, zoffset, width, height, depth,
3654 GLsizei width, GLsizei height, GLsizei depth,
3666 xoffset, yoffset, zoffset, width, height, depth,
3693 width, height, depth, format, type,
3739 imageStride = _mesa_image_image_stride(&ctx->Unpack, width, height,
3748 width, height, 1, format,
3759 width, height, depth, format,
3769 GLsizei width, GLsizei height, GLsizei depth,
3774 zoffset, width, height, depth, format, type, pixels,
3783 GLsizei width, GLsizei height, GLsizei depth,
3788 zoffset, width, height, depth, format, type, pixels,
3824 GLsizei width, GLsizei height,
3831 width, height, 1,
3839 GLsizei width, GLsizei height,
3846 width, height, 1,
3854 GLsizei width, GLsizei height, GLsizei depth,
3861 width, height, depth,
3869 GLsizei width, GLsizei height, GLsizei depth,
3876 width, height, depth,
3943 GLint yoffset, GLsizei width, GLsizei height,
3949 width, height, 1, format, type, pixels,
3957 GLsizei height, GLenum format, GLenum type,
3962 width, height, 1, format, type, pixels,
3970 GLsizei height, GLenum format, GLenum type,
3984 xoffset, yoffset, 0, width, height, 1,
3992 GLsizei width, GLsizei height,
3998 width, height, 1, format, type, pixels,
4006 GLsizei height, GLsizei depth, GLenum format,
4011 zoffset, width, height, depth, format, type,
4019 GLsizei width, GLsizei height, GLsizei depth,
4024 zoffset, width, height, depth, format, type,
4032 GLsizei width, GLsizei height, GLsizei depth,
4046 xoffset, yoffset, zoffset, width, height, depth,
4054 GLsizei width, GLsizei height, GLsizei depth,
4060 width, height, depth, format, type, pixels,
4091 GLsizei width, GLsizei height)
4101 for (slice = 0; slice < height; slice++) {
4110 rb, x, y, width, height);
4147 GLsizei height, GLint border)
4157 if (texImage->Height2 != height)
4171 GLint x, GLint y, GLsizei width, GLsizei height)
4195 &width, &height)) {
4200 srcRb, x, y, width, height);
4218 GLint x, GLint y, GLsizei width, GLsizei height,
4226 level, xoffset, yoffset, zoffset, x, y, width, height);
4235 width, height, caller)) {
4240 zoffset, x, y, width, height);
4249 GLint x, GLint y, GLsizei width, GLsizei height)
4259 zoffset, x, y, width, height);
4269 GLint x, GLint y, GLsizei width, GLsizei height, GLint border,
4282 x, y, width, height, border);
4304 if (!_mesa_legal_texture_dimensions(ctx, target, level, width, height,
4307 "glCopyTexImage%uD(invalid width=%d or height=%d)",
4308 dims, width, height);
4325 width, height, border)) {
4329 0, 0, x, y, width, height);
4332 0, x, y, width, height,"CopyTexImage");
4379 width, height, 1)) {
4390 height -= border * 2;
4410 _mesa_init_teximage_fields(ctx, texImage, width, height, 1,
4413 if (width && height) {
4419 &width, &height)) {
4425 srcRb, srcX, srcY, width, height);
4444 GLsizei width, GLsizei height, GLint border)
4446 copyteximage(ctx, dims, NULL, target, level, internalFormat, x, y, width, height,
4454 GLsizei width, GLsizei height, GLint border)
4456 copyteximage(ctx, dims, NULL, target, level, internalFormat, x, y, width, height,
4511 GLint x, GLint y, GLsizei width, GLsizei height,
4516 x, y, width, height, border);
4524 GLsizei width, GLsizei height,
4533 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height,
4542 GLsizei width, GLsizei height, GLint border )
4552 copyteximage(ctx, 2, texObj, target, level, internalFormat, x, y, width, height,
4569 GLint x, GLint y, GLsizei width, GLsizei height,
4574 x, y, width, height, border);
4607 GLint x, GLint y, GLsizei width, GLsizei height)
4627 0, x, y, width, height, self);
4634 GLint x, GLint y, GLsizei width, GLsizei height)
4654 zoffset, x, y, width, height, self);
4729 GLint x, GLint y, GLsizei width, GLsizei height)
4747 yoffset, 0, x, y, width, height, self);
4754 GLint x, GLint y, GLsizei width, GLsizei height)
4772 yoffset, 0, x, y, width, height, self);
4779 GLint x, GLint y, GLsizei width, GLsizei height)
4792 yoffset, 0, x, y, width, height, self);
4798 GLint x, GLint y, GLsizei width, GLsizei height)
4819 level, xoffset, yoffset, 0, x, y, width, height,
4824 yoffset, zoffset, x, y, width, height, self);
4831 GLint x, GLint y, GLsizei width, GLsizei height)
4852 level, xoffset, yoffset, 0, x, y, width, height,
4857 yoffset, zoffset, x, y, width, height, self);
4864 GLint x, GLint y, GLsizei width, GLsizei height)
4880 level, xoffset, yoffset, 0, x, y, width, height,
4885 yoffset, zoffset, x, y, width, height, self);
4904 GLsizei height)
4910 yoffset, 0, x, y, width, height);
4917 GLsizei width, GLsizei height)
4923 yoffset, zoffset, x, y, width, height);
4942 GLsizei width, GLsizei height)
4948 xoffset, yoffset, 0, x, y, width, height);
4955 GLint y, GLsizei width, GLsizei height)
4965 height);
4970 height);
5115 GLsizei width, GLsizei height, GLsizei depth,
5150 height < 0 ||
5153 yoffset + height > texImages[0]->Height ||
5166 width, height, depth,
5181 width, height, 1,
5385 GLsizei width, GLsizei height, GLsizei depth,
5432 expectedSize = compressed_tex_size(width, height, depth, format);
5457 if (error_check_subtexture_negative_dimensions(ctx, dims, width, height,
5463 zoffset, width, height, depth,
5525 GLsizei height, GLint border, GLsizei imageSize,
5530 width, height, 1, border, GL_NONE, GL_NONE, imageSize, data);
5537 GLsizei height, GLint border, GLsizei imageSize,
5548 width, height, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5555 GLsizei height, GLint border, GLsizei imageSize,
5568 width, height, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5575 GLsizei height, GLsizei depth, GLint border,
5579 teximage_err(ctx, GL_TRUE, 3, target, level, internalFormat, width, height,
5587 GLsizei height, GLsizei depth, GLint border,
5598 width, height, depth, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5605 GLsizei height, GLsizei depth, GLint border,
5618 width, height, depth, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5637 GLsizei height, GLint border,
5642 height, 1, border, GL_NONE, GL_NONE, imageSize, data);
5649 GLsizei height, GLsizei depth, GLint border,
5654 height, depth, border, GL_NONE, GL_NONE, imageSize, data);
5668 GLsizei height, GLsizei depth, GLenum format,
5675 if (width > 0 && height > 0 && depth > 0) {
5678 width, height, depth,
5709 GLint zoffset, GLsizei width, GLsizei height,
5770 height, depth, format,
5799 0, width, height, 1, format,
5815 xoffset, yoffset, zoffset, width, height,
5906 GLsizei width, GLsizei height,
5912 width, height, 1, format, imageSize, data,
5920 GLint yoffset, GLsizei width, GLsizei height,
5926 width, height, 1, format, imageSize, data,
5936 GLsizei height, GLenum format,
5940 yoffset, 0, width, height, 1, format,
5950 GLsizei width, GLsizei height, GLenum format,
5954 xoffset, yoffset, 0, width, height, 1, format,
5964 GLsizei width, GLsizei height,
5969 width, height, 1, format, imageSize, data,
5978 GLsizei width, GLsizei height,
5983 width, height, 1, format, imageSize, data,
5992 GLsizei height, GLsizei depth,
5997 zoffset, width, height, depth, format,
6006 GLsizei height, GLsizei depth, GLenum format,
6010 zoffset, width, height, depth, format,
6020 GLsizei height, GLsizei depth,
6025 zoffset, width, height, depth, format,
6034 GLsizei height, GLsizei depth,
6039 zoffset, width, height, depth, format,
6050 GLsizei width, GLsizei height,
6055 zoffset, width, height, depth, format,
6065 GLint zoffset, GLsizei width, GLsizei height,
6070 xoffset, yoffset, zoffset, width, height, depth,
6739 GLsizei height, GLsizei depth,
6840 width, height, depth, 0);
6843 samples, width, height, depth);
6847 _mesa_init_teximage_fields_ms(ctx, texImage, width, height, depth, 0,
6859 "%s(invalid width=%d or height=%d)", func, width, height);
6876 width, height, depth, func))
6881 _mesa_init_teximage_fields_ms(ctx, texImage, width, height, depth, 0,
6885 if (width > 0 && height > 0 && depth > 0) {
6889 height, depth,
6897 width, height, depth)) {
6923 GLsizei height, GLboolean fixedsamplelocations)
6928 internalformat, width, height, 1,
6937 GLsizei height, GLsizei depth,
6943 internalformat, width, height, depth,
6949 valid_texstorage_ms_parameters(GLsizei width, GLsizei height, GLsizei depth,
6954 if (!_mesa_valid_tex_storage_dim(width, height, depth)) {
6956 "glTexStorage%uDMultisample(width=%d,height=%d,depth=%d)",
6957 dims, width, height, depth);
6966 GLsizei height, GLboolean fixedsamplelocations)
6970 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
6974 internalformat, width, height, 1,
6982 GLsizei height, GLsizei depth,
6987 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
6991 internalformat, width, height, depth,
6999 GLsizei height,
7010 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
7014 samples, internalformat, width, height, 1,
7022 GLsizei height, GLsizei depth,
7034 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
7038 internalformat, width, height, depth,
7046 GLsizei height,
7057 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
7061 samples, internalformat, width, height, 1,
7069 GLsizei height, GLsizei depth,
7080 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
7084 internalformat, width, height, depth,
7095 GLsizei height, GLsizei depth,
7102 internalFormat, width, height, depth,