Lines Matching full:levels
142 GLint levels,
152 for (level = 0; level < levels; level++) {
275 GLsizei levels, GLsizei width,
287 for (level = 0; level < levels; level++) {
308 GLsizei levels, GLenum internalformat,
335 /* levels check */
336 if (levels < 1) {
337 _mesa_error(ctx, GL_INVALID_VALUE, "glTex%sStorage%uD(levels < 1)",
342 /* check levels against maximum (note different error than above) */
343 if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) {
345 "glTex%sStorage%uD(levels too large)",
350 /* check levels against width/height/depth */
351 if (levels > _mesa_get_tex_max_num_levels(target, width, height, depth)) {
353 "glTex%sStorage%uD(too many levels"
392 GLenum target, GLsizei levels,
402 if (tex_storage_error_check(ctx, texObj, dims, target, levels,
415 sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, levels, 0, texFormat,
420 initialize_texture_fields(ctx, texObj, levels, width, height, depth,
424 /* clear all image fields for [levels] */
442 assert(levels > 0);
447 if (!initialize_texture_fields(ctx, texObj, levels, width, height, depth,
453 if (!ctx->Driver.AllocTextureStorage(ctx, texObj, levels,
466 _mesa_set_texture_view_state(ctx, texObj, target, levels);
477 texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat,
496 _mesa_enum_to_string(target), levels,
512 _mesa_texture_storage(ctx, dims, texObj, target, levels,
521 texturestorage(GLuint dims, GLuint texture, GLsizei levels,
530 dims, texture, levels,
561 levels, internalformat, width, height, depth, true);
566 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat,
569 texstorage(1, target, levels, internalformat, width, 1, 1);
574 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat,
577 texstorage(2, target, levels, internalformat, width, height, 1);
582 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat,
585 texstorage(3, target, levels, internalformat, width, height, depth);
590 _mesa_TextureStorage1D(GLuint texture, GLsizei levels, GLenum internalformat,
593 texturestorage(1, texture, levels, internalformat, width, 1, 1);
598 _mesa_TextureStorage2D(GLuint texture, GLsizei levels,
602 texturestorage(2, texture, levels, internalformat, width, height, 1);
607 _mesa_TextureStorage3D(GLuint texture, GLsizei levels, GLenum internalformat,
610 texturestorage(3, texture, levels, internalformat, width, height, depth);
623 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels,
631 (void) levels;
641 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels,
649 (void) levels;
660 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,
668 (void) levels;