Lines Matching refs:dims
52 legal_texobj_target(struct gl_context *ctx, GLuint dims, GLenum target) in legal_texobj_target() argument
54 switch (dims) { in legal_texobj_target()
94 _mesa_problem(ctx, "invalid dims=%u in legal_texobj_target()", dims); in legal_texobj_target()
127 GLuint dims, in setup_texstorage() argument
155 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glTexImage%uD", dims); in setup_texstorage()
191 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glTexStorage%uD", dims); in setup_texstorage()
207 GLuint dims, in clear_image_fields() argument
224 _mesa_error(ctx, GL_OUT_OF_MEMORY, "glTexStorage%uD", dims); in clear_image_fields()
242 tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target, in tex_storage_error_check() argument
291 "glTexStorage%uD(internalformat = %s)", dims, in tex_storage_error_check()
299 "glTexStorage%uD(width, height or depth < 1)", dims); in tex_storage_error_check()
306 dims); in tex_storage_error_check()
311 if (!legal_texobj_target(ctx, dims, target)) { in tex_storage_error_check()
314 dims, _mesa_lookup_enum_by_nr(target)); in tex_storage_error_check()
321 "glTexStorage%uD(levels too large)", dims); in tex_storage_error_check()
329 dims); in tex_storage_error_check()
337 "glTexStorage%uD(texture object 0)", dims); in tex_storage_error_check()
344 dims); in tex_storage_error_check()
356 texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat, in texstorage() argument
367 if (tex_storage_error_check(ctx, dims, target, levels, in texstorage()
379 clear_image_fields(ctx, dims, texObj); in texstorage()
384 dims); in texstorage()
389 setup_texstorage(ctx, texObj, dims, levels, internalformat, in texstorage()