Lines Matching full:levels
143 GLint levels, in initialize_texture_fields() argument
153 for (level = 0; level < levels; level++) { in initialize_texture_fields()
326 GLsizei levels, GLenum internalformat, in tex_storage_error_check() argument
354 /* levels check */ in tex_storage_error_check()
355 if (levels < 1) { in tex_storage_error_check()
356 _mesa_error(ctx, GL_INVALID_VALUE, "glTex%sStorage%uD(levels < 1)", in tex_storage_error_check()
361 /* check levels against maximum (note different error than above) */ in tex_storage_error_check()
362 if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) { in tex_storage_error_check()
364 "glTex%sStorage%uD(levels too large)", in tex_storage_error_check()
369 /* check levels against width/height/depth */ in tex_storage_error_check()
370 if (levels > _mesa_get_tex_max_num_levels(target, width, height, depth)) { in tex_storage_error_check()
372 "glTex%sStorage%uD(too many levels" in tex_storage_error_check()
406 mesa_format format, GLenum target, GLsizei levels, in _mesa_sparse_texture_error_check() argument
457 * 2^(<levels>-1), or in _mesa_sparse_texture_error_check()
459 * 2^(<levels>-1). in _mesa_sparse_texture_error_check()
469 (width % (px << (levels - 1)) || in _mesa_sparse_texture_error_check()
470 height % (py << (levels - 1)))) { in _mesa_sparse_texture_error_check()
490 GLsizei levels, GLenum internalformat, GLsizei width, in texture_storage() argument
502 if (tex_storage_error_check(ctx, texObj, memObj, dims, target, levels, in texture_storage()
516 sizeOK = st_TestProxyTexImage(ctx, target, levels, 0, texFormat, in texture_storage()
522 initialize_texture_fields(ctx, texObj, levels, width, height, depth, in texture_storage()
526 /* clear all image fields for [levels] */ in texture_storage()
550 levels, width, height, depth, func)) in texture_storage()
555 assert(levels > 0); in texture_storage()
560 if (!initialize_texture_fields(ctx, texObj, levels, width, height, depth, in texture_storage()
568 levels, in texture_storage()
577 if (!st_AllocTextureStorage(ctx, texObj, levels, in texture_storage()
591 _mesa_set_texture_view_state(ctx, texObj, target, levels); in texture_storage()
601 GLenum target, GLsizei levels, in texture_storage_error() argument
605 texture_storage(ctx, dims, texObj, NULL, target, levels, internalformat, in texture_storage_error()
613 GLenum target, GLsizei levels, in texture_storage_no_error() argument
617 texture_storage(ctx, dims, texObj, NULL, target, levels, internalformat, in texture_storage_no_error()
626 texstorage_error(GLuint dims, GLenum target, GLsizei levels, in texstorage_error() argument
645 _mesa_enum_to_string(target), levels, in texstorage_error()
661 texture_storage_error(ctx, dims, texObj, target, levels, in texstorage_error()
667 texstorage_no_error(GLuint dims, GLenum target, GLsizei levels, in texstorage_no_error() argument
674 texture_storage_no_error(ctx, dims, texObj, target, levels, in texstorage_no_error()
683 texturestorage_error(GLuint dims, GLuint texture, GLsizei levels, in texturestorage_error() argument
692 caller, texture, levels, in texturestorage_error()
719 levels, internalformat, width, height, depth, true, caller); in texturestorage_error()
724 texturestorage_no_error(GLuint dims, GLuint texture, GLsizei levels, in texturestorage_no_error() argument
732 levels, internalformat, width, height, depth, true, caller); in texturestorage_no_error()
737 _mesa_TexStorage1D_no_error(GLenum target, GLsizei levels, in _mesa_TexStorage1D_no_error() argument
740 texstorage_no_error(1, target, levels, internalformat, width, 1, 1, in _mesa_TexStorage1D_no_error()
746 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, in _mesa_TexStorage1D() argument
749 texstorage_error(1, target, levels, internalformat, width, 1, 1, in _mesa_TexStorage1D()
755 _mesa_TexStorage2D_no_error(GLenum target, GLsizei levels, in _mesa_TexStorage2D_no_error() argument
759 texstorage_no_error(2, target, levels, internalformat, width, height, 1, in _mesa_TexStorage2D_no_error()
765 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, in _mesa_TexStorage2D() argument
768 texstorage_error(2, target, levels, internalformat, width, height, 1, in _mesa_TexStorage2D()
774 _mesa_TexStorage3D_no_error(GLenum target, GLsizei levels, in _mesa_TexStorage3D_no_error() argument
778 texstorage_no_error(3, target, levels, internalformat, width, height, depth, in _mesa_TexStorage3D_no_error()
784 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, in _mesa_TexStorage3D() argument
787 texstorage_error(3, target, levels, internalformat, width, height, depth, in _mesa_TexStorage3D()
793 _mesa_TextureStorage1D_no_error(GLuint texture, GLsizei levels, in _mesa_TextureStorage1D_no_error() argument
796 texturestorage_no_error(1, texture, levels, internalformat, width, 1, 1, in _mesa_TextureStorage1D_no_error()
802 _mesa_TextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat, in _mesa_TextureStorage1D() argument
805 texturestorage_error(1, texture, levels, internalformat, width, 1, 1, in _mesa_TextureStorage1D()
811 _mesa_TextureStorage2D_no_error(GLuint texture, GLsizei levels, in _mesa_TextureStorage2D_no_error() argument
815 texturestorage_no_error(2, texture, levels, internalformat, width, height, 1, in _mesa_TextureStorage2D_no_error()
821 _mesa_TextureStorage2D(GLuint texture, GLsizei levels, in _mesa_TextureStorage2D() argument
825 texturestorage_error(2, texture, levels, internalformat, width, height, 1, in _mesa_TextureStorage2D()
831 _mesa_TextureStorage3D_no_error(GLuint texture, GLsizei levels, in _mesa_TextureStorage3D_no_error() argument
835 texturestorage_no_error(3, texture, levels, internalformat, width, height, in _mesa_TextureStorage3D_no_error()
841 _mesa_TextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat, in _mesa_TextureStorage3D() argument
844 texturestorage_error(3, texture, levels, internalformat, width, height, depth, in _mesa_TextureStorage3D()
850 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, in _mesa_TextureStorage1DEXT() argument
861 texturestorage_error(1, texture, levels, internalformat, width, 1, 1, in _mesa_TextureStorage1DEXT()
867 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, in _mesa_TextureStorage2DEXT() argument
878 texturestorage_error(2, texture, levels, internalformat, width, height, 1, in _mesa_TextureStorage2DEXT()
884 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, in _mesa_TextureStorage3DEXT() argument
895 texturestorage_error(3, texture, levels, internalformat, width, height, depth, in _mesa_TextureStorage3DEXT()
904 GLenum target, GLsizei levels, in _mesa_texture_storage_memory() argument
911 texture_storage(ctx, dims, texObj, memObj, target, levels, internalformat, in _mesa_texture_storage_memory()