Lines Matching defs:width
682 _mesa_get_tex_max_num_levels(GLenum target, GLsizei width, GLsizei height,
692 size = width;
698 size = width;
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;
763 for (j = 0; j < width; j++) {
812 * \param width image width.
822 * Note: width, height and depth include the border.
827 GLsizei width, GLsizei height, GLsizei depth,
835 assert(width >= 0);
844 img->Width = width;
848 img->Width2 = width - 2 * border; /* == 1 << img->WidthLog2; */
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,
979 if (width < 2 * border || width > 2 * border + maxSize)
982 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
992 if (width < 2 * border || width > 2 * border + maxSize)
997 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1008 if (width < 2 * border || width > 2 * border + maxSize)
1015 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1029 if (width < 0 || width > maxSize)
1045 if (width != height)
1047 if (width < 2 * border || width > 2 * border + maxSize)
1052 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1062 if (width < 2 * border || width > 2 * border + maxSize)
1067 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1077 if (width < 2 * border || width > 2 * border + maxSize)
1084 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1094 if (width < 2 * border || width > 2 * border + maxSize)
1100 if (width != height)
1105 if (width > 0 && !util_is_power_of_two_nonzero(width - 2 * border))
1127 _mesa_error(ctx, GL_INVALID_VALUE, "%s(width=%d)", func, subWidth);
1145 * Do error checking of xoffset, yoffset, zoffset, width, height and depth
1160 /* check xoffset and width */
1167 _mesa_error(ctx, GL_INVALID_VALUE, "%s(xoffset %d + width %d > %u)", func,
1234 "%s(width = %d)", func, subWidth);
1266 * Note that width, height, depth == 0 is not an error. However, a
1267 * texture with zero width/height/depth will be considered "incomplete"
1275 * \param width 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,
1306 width = nextWidth;
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);
1807 * \param width image width 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
2008 GLint level, GLenum internalFormat, GLsizei width,
2065 width, height);
2088 expectedSize = compressed_tex_size(width, height, depth, internalFormat);
2119 reason = "imageSize inconsistent with width/height/format";
2153 * \param width image width 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)) {
2277 * \param width image width given by the user.
2565 GLint width, GLint height, const char *caller)
2604 width, height, 1, caller)) {
2610 width, height, 1, caller)) {
2770 override_internal_format(GLenum internalFormat, UNUSED GLint width,
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,
2867 assert(width);
2874 unpackNew->RowLength = *width;
2879 assert(*width >= 3);
2881 *width = *width - 2; /* reduce the width 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 */
3084 dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, level, width,
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,
3210 * Called from the API. Note that width includes the border.
3214 GLsizei width, GLint border, GLenum format,
3218 teximage_err(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1, 1,
3224 GLint internalFormat, GLsizei width, GLint border,
3235 width, 1, 1, border, format, type, 0, pixels, false);
3240 GLint internalFormat, GLsizei width, GLint border,
3252 teximage(ctx, GL_FALSE, 1, texObj, target, level, internalFormat, width, 1, 1,
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);
3358 GLsizei width, GLint border, GLenum format,
3362 teximage_no_error(ctx, GL_FALSE, 1, target, level, internalFormat, width, 1,
3369 GLsizei width, GLsizei height, GLint border,
3373 teximage_no_error(ctx, GL_FALSE, 2, target, level, internalFormat, width,
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) {
3550 /* If we have a border, offset=-1 is legal. Bias by border width. */
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,
3795 GLint xoffset, GLsizei width,
3802 width, 1, 1,
3809 GLint xoffset, GLsizei width,
3816 width, 1, 1,
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,
3883 GLsizei width, GLenum format, GLenum type,
3887 texturesubimage_no_error(ctx, 1, texture, 0, level, xoffset, 0, 0, width,
3895 GLint xoffset, GLsizei width,
3900 texturesubimage_error(ctx, 1, texture, target, level, xoffset, 0, 0, width, 1,
3908 GLint xoffset, GLsizei width,
3923 xoffset, 0, 0, width, 1, 1,
3930 GLint xoffset, GLsizei width,
3935 texturesubimage_error(ctx, 1, texture, 0, level, xoffset, 0, 0, width, 1,
3943 GLint yoffset, GLsizei width, GLsizei height,
3949 width, height, 1, format, type, pixels,
3956 GLint xoffset, GLint yoffset, GLsizei width,
3962 width, height, 1, format, type, pixels,
3969 GLint xoffset, GLint yoffset, GLsizei width,
3984 xoffset, yoffset, 0, width, height, 1,
3992 GLsizei width, GLsizei height,
3998 width, height, 1, format, type, pixels,
4005 GLint yoffset, GLint zoffset, GLsizei width,
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)
4105 rb, x, y + slice, width, 1);
4110 rb, x, y, width, height);
4146 mesa_format texFormat, GLsizei width,
4155 if (texImage->Width2 != width)
4171 GLint x, GLint y, GLsizei width, GLsizei height)
4179 /* If we have a border, offset=-1 is legal. Bias by border width. */
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)) {
4387 width -= 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,
4465 GLsizei width, GLint border )
4468 copyteximage_err(ctx, 1, target, level, internalFormat, x, y, width, 1,
4477 GLsizei width, GLint border )
4485 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1,
4494 GLsizei width, GLint border )
4504 copyteximage(ctx, 1, texObj, target, level, internalFormat, x, y, width, 1,
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,
4559 GLint x, GLint y, GLsizei width, GLint border)
4562 copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1,
4569 GLint x, GLint y, GLsizei width, GLsizei height,
4574 x, y, width, height, border);
4580 GLint xoffset, GLint x, GLint y, GLsizei width)
4600 x, y, width, 1, self);
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);
4660 GLint xoffset, GLint x, GLint y, GLsizei width)
4678 0, x, y, width, 1, self);
4684 GLint xoffset, GLint x, GLint y, GLsizei width)
4703 0, x, y, width, 1, self);
4709 GLint xoffset, GLint x, GLint y, GLsizei width)
4722 0, x, y, width, 1, 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);
4891 GLint x, GLint y, GLsizei width)
4897 x, y, width, 1);
4903 GLint yoffset, GLint x, GLint y, GLsizei width,
4910 yoffset, 0, x, y, width, height);
4917 GLsizei width, GLsizei height)
4923 yoffset, zoffset, x, y, width, height);
4929 GLint x, GLint y, GLsizei width)
4935 xoffset, 0, 0, x, y, width, 1);
4942 GLsizei width, GLsizei height)
4948 xoffset, yoffset, 0, x, y, width, height);
4955 GLint y, GLsizei width, GLsizei height)
4964 level, xoffset, yoffset, 0, x, y, width,
4969 xoffset, yoffset, zoffset, x, y, width,
5115 GLsizei width, GLsizei height, GLsizei depth,
5149 width < 0 ||
5152 xoffset + width > texImages[0]->Width ||
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,
5474 GLenum internalFormat, GLsizei width,
5480 width, 1, 1, border, GL_NONE, GL_NONE, imageSize, data);
5486 GLenum internalFormat, GLsizei width,
5498 width, 1, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5504 GLenum internalFormat, GLsizei width,
5518 width, 1, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5524 GLenum internalFormat, GLsizei width,
5530 width, height, 1, border, GL_NONE, GL_NONE, imageSize, data);
5536 GLenum internalFormat, GLsizei width,
5548 width, height, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5554 GLenum internalFormat, GLsizei width,
5568 width, height, 1, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5574 GLenum internalFormat, GLsizei width,
5579 teximage_err(ctx, GL_TRUE, 3, target, level, internalFormat, width, height,
5586 GLenum internalFormat, GLsizei width,
5598 width, height, depth, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5604 GLenum internalFormat, GLsizei width,
5618 width, height, depth, border, GL_NONE, GL_NONE, imageSize, pixels, false);
5624 GLenum internalFormat, GLsizei width,
5629 teximage_no_error(ctx, GL_TRUE, 1, target, level, internalFormat, width, 1,
5636 GLenum internalFormat, GLsizei width,
5641 teximage_no_error(ctx, GL_TRUE, 2, target, level, internalFormat, width,
5648 GLenum internalFormat, GLsizei width,
5653 teximage_no_error(ctx, GL_TRUE, 3, target, level, internalFormat, width,
5667 GLint yoffset, GLint zoffset, GLsizei width,
5675 if (width > 0 && height > 0 && depth > 0) {
5678 width, height, depth,
5709 GLint zoffset, GLsizei width, GLsizei height,
5769 xoffset, yoffset, zoffset, width,
5799 0, width, height, 1, format,
5815 xoffset, yoffset, zoffset, width, height,
5823 GLint xoffset, GLsizei width,
5828 level, xoffset, 0, 0, width,
5837 GLsizei width, GLenum format,
5841 level, xoffset, 0, 0, width,
5850 GLint xoffset, GLsizei width,
5856 width, 1, 1, format, imageSize, data,
5864 GLsizei width, GLenum format,
5869 width, 1, 1, format, imageSize, data,
5878 GLsizei width, GLenum format,
5882 0, width, 1, 1, format, imageSize,
5892 GLsizei width, GLenum format,
5896 xoffset, 0, 0, width, 1, 1, format, imageSize,
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,
5935 GLint yoffset, GLsizei width,
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,
5991 GLint zoffset, GLsizei width,
5997 zoffset, width, height, depth, format,
6005 GLint yoffset, GLint zoffset, GLsizei width,
6010 zoffset, width, height, depth, format,
6019 GLint zoffset, GLsizei width,
6025 zoffset, width, height, depth, format,
6033 GLint yoffset, GLint zoffset, GLsizei width,
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,
6738 GLint internalformat, GLsizei width,
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) {
6888 memObj, 1, width,
6897 width, height, depth)) {
6922 GLenum internalformat, GLsizei width,
6928 internalformat, width, height, 1,
6936 GLenum internalformat, GLsizei width,
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);
6965 GLenum internalformat, GLsizei width,
6970 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
6974 internalformat, width, height, 1,
6981 GLenum internalformat, GLsizei width,
6987 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
6991 internalformat, width, height, depth,
6998 GLenum internalformat, GLsizei width,
7010 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
7014 samples, internalformat, width, height, 1,
7021 GLenum internalformat, GLsizei width,
7034 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
7038 internalformat, width, height, depth,
7045 GLenum internalformat, GLsizei width,
7057 if (!valid_texstorage_ms_parameters(width, height, 1, 2))
7061 samples, internalformat, width, height, 1,
7068 GLenum internalformat, GLsizei width,
7080 if (!valid_texstorage_ms_parameters(width, height, depth, 3))
7084 internalformat, width, height, depth,
7094 GLenum internalFormat, GLsizei width,
7102 internalFormat, width, height, depth,