Lines Matching refs:levels
143 GLint levels,
153 for (level = 0; level < levels; level++) {
275 GLsizei levels, GLenum internalformat,
303 /* levels check */
304 if (levels < 1) {
305 _mesa_error(ctx, GL_INVALID_VALUE, "glTex%sStorage%uD(levels < 1)",
310 /* check levels against maximum (note different error than above) */
311 if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) {
313 "glTex%sStorage%uD(levels too large)",
318 /* check levels against width/height/depth */
319 if (levels > _mesa_get_tex_max_num_levels(target, width, height, depth)) {
321 "glTex%sStorage%uD(too many levels"
355 mesa_format format, GLenum target, GLsizei levels,
406 * 2^(<levels>-1), or
408 * 2^(<levels>-1).
418 (width % (px << (levels - 1)) ||
419 height % (py << (levels - 1)))) {
439 GLsizei levels, GLenum internalformat, GLsizei width,
451 if (tex_storage_error_check(ctx, texObj, memObj, dims, target, levels,
465 sizeOK = st_TestProxyTexImage(ctx, target, levels, 0, texFormat,
471 initialize_texture_fields(ctx, texObj, levels, width, height, depth,
475 /* clear all image fields for [levels] */
499 levels, width, height, depth, func))
504 assert(levels > 0);
509 if (!initialize_texture_fields(ctx, texObj, levels, width, height, depth,
517 levels,
526 if (!st_AllocTextureStorage(ctx, texObj, levels,
540 _mesa_set_texture_view_state(ctx, texObj, target, levels);
550 GLenum target, GLsizei levels,
554 texture_storage(ctx, dims, texObj, NULL, target, levels, internalformat,
562 GLenum target, GLsizei levels,
566 texture_storage(ctx, dims, texObj, NULL, target, levels, internalformat,
575 texstorage_error(GLuint dims, GLenum target, GLsizei levels,
594 _mesa_enum_to_string(target), levels,
610 texture_storage_error(ctx, dims, texObj, target, levels,
616 texstorage_no_error(GLuint dims, GLenum target, GLsizei levels,
623 texture_storage_no_error(ctx, dims, texObj, target, levels,
632 texturestorage_error(GLuint dims, GLuint texture, GLsizei levels,
641 caller, texture, levels,
668 levels, internalformat, width, height, depth, true);
673 texturestorage_no_error(GLuint dims, GLuint texture, GLsizei levels,
681 levels, internalformat, width, height, depth, true);
686 _mesa_TexStorage1D_no_error(GLenum target, GLsizei levels,
689 texstorage_no_error(1, target, levels, internalformat, width, 1, 1);
694 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat,
697 texstorage_error(1, target, levels, internalformat, width, 1, 1,
703 _mesa_TexStorage2D_no_error(GLenum target, GLsizei levels,
707 texstorage_no_error(2, target, levels, internalformat, width, height, 1);
712 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat,
715 texstorage_error(2, target, levels, internalformat, width, height, 1,
721 _mesa_TexStorage3D_no_error(GLenum target, GLsizei levels,
725 texstorage_no_error(3, target, levels, internalformat, width, height, depth);
730 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat,
733 texstorage_error(3, target, levels, internalformat, width, height, depth,
739 _mesa_TextureStorage1D_no_error(GLuint texture, GLsizei levels,
742 texturestorage_no_error(1, texture, levels, internalformat, width, 1, 1);
747 _mesa_TextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat,
750 texturestorage_error(1, texture, levels, internalformat, width, 1, 1,
756 _mesa_TextureStorage2D_no_error(GLuint texture, GLsizei levels,
760 texturestorage_no_error(2, texture, levels, internalformat, width, height, 1);
765 _mesa_TextureStorage2D(GLuint texture, GLsizei levels,
769 texturestorage_error(2, texture, levels, internalformat, width, height, 1,
775 _mesa_TextureStorage3D_no_error(GLuint texture, GLsizei levels,
779 texturestorage_no_error(3, texture, levels, internalformat, width, height,
785 _mesa_TextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat,
788 texturestorage_error(3, texture, levels, internalformat, width, height, depth,
794 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels,
805 texturestorage_error(1, texture, levels, internalformat, width, 1, 1,
811 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels,
822 texturestorage_error(2, texture, levels, internalformat, width, height, 1,
828 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,
839 texturestorage_error(3, texture, levels, internalformat, width, height, depth,
848 GLenum target, GLsizei levels,
855 texture_storage(ctx, dims, texObj, memObj, target, levels, internalformat,