Lines Matching refs:levels
128 GLsizei levels, GLenum internalFormat,
137 assert(levels > 0);
146 for (level = 0; level < levels; level++) {
173 if (!ctx->Driver.AllocTextureStorage(ctx, texObj, levels,
180 for (level = 0; level < levels; level++) {
243 GLsizei levels, GLenum internalformat,
303 /* levels check */
304 if (levels < 1 || height < 1 || depth < 1) {
305 _mesa_error(ctx, GL_INVALID_VALUE, "glTexStorage%uD(levels < 1)",
318 /* check levels against maximum */
319 if (levels > _mesa_max_texture_levels(ctx, target)) {
321 "glTexStorage%uD(levels too large)", dims);
325 /* check levels against width/height/depth */
326 if (levels > _mesa_get_tex_max_num_levels(target, width, height, depth)) {
328 "glTexStorage%uD(too many levels for max texture dimension)",
356 texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat,
367 if (tex_storage_error_check(ctx, dims, target, levels,
378 /* clear all image fields for [levels] */
389 setup_texstorage(ctx, texObj, dims, levels, internalformat,
396 _mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat,
399 texstorage(1, target, levels, internalformat, width, 1, 1);
404 _mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat,
407 texstorage(2, target, levels, internalformat, width, height, 1);
412 _mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat,
415 texstorage(3, target, levels, internalformat, width, height, depth);
429 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels,
438 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels,
448 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,