Lines Matching refs:target

48  * Check if the given texture target is a legal texture object target
55 GLuint dims, GLenum target)
64 switch (target) {
71 switch (target) {
87 switch (target) {
95 switch (target) {
109 switch (target) {
147 const GLenum target = texObj->Target;
148 const GLuint numFaces = _mesa_num_tex_faces(target);
168 _mesa_next_mipmap_level_size(target, 0,
184 const GLenum target = texObj->Target;
185 const GLuint numFaces = _mesa_num_tex_faces(target);
266 * If an error is found, record it with _mesa_error(), unless the target
274 GLuint dims, GLenum target,
295 if (!_mesa_target_can_be_compressed(ctx, target, internalformat, &err)) {
311 if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) {
319 if (levels > _mesa_get_tex_max_num_levels(target, width, height, depth)) {
328 if (!_mesa_is_proxy_texture(target) && (!texObj || (texObj->Name == 0))) {
336 if (!_mesa_is_proxy_texture(target) && texObj->Immutable) {
343 if (!_mesa_legal_texture_base_format_for_target(ctx, target, internalformat)) {
344 _mesa_error(ctx, GL_INVALID_OPERATION, "glTex%sStorage%uD(bad target for texture)",
355 mesa_format format, GLenum target, GLsizei levels,
361 if (!st_GetSparseTextureVirtualPageSize(ctx, target, format, index,
368 if (target == GL_TEXTURE_3D) {
378 if (target == GL_TEXTURE_2D_ARRAY ||
379 target == GL_TEXTURE_CUBE_MAP_ARRAY) {
382 } else if (target == GL_TEXTURE_1D_ARRAY) {
400 * * <target> is one of TEXTURE_1D_ARRAY, TEXTURE_2D_ARRAY,
414 (target == GL_TEXTURE_1D_ARRAY ||
415 target == GL_TEXTURE_2D_ARRAY ||
416 target == GL_TEXTURE_CUBE_MAP ||
417 target == GL_TEXTURE_CUBE_MAP_ARRAY) &&
438 struct gl_memory_object *memObj, GLenum target,
451 if (tex_storage_error_check(ctx, texObj, memObj, dims, target, levels,
457 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0,
462 dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,
465 sizeOK = st_TestProxyTexImage(ctx, target, levels, 0, texFormat,
469 if (_mesa_is_proxy_texture(target)) {
498 if (_mesa_sparse_texture_error_check(ctx, dims, texObj, texFormat, target,
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,
582 /* Check target. This is done here so that texture_storage
585 if (!_mesa_is_legal_tex_storage_target(ctx, dims, target)) {
587 "%s(illegal target=%s)",
588 caller, _mesa_enum_to_string(target));
594 _mesa_enum_to_string(target), levels,
606 texObj = _mesa_get_current_tex_object(ctx, target);
610 texture_storage_error(ctx, dims, texObj, target, levels,
616 texstorage_no_error(GLuint dims, GLenum target, GLsizei levels,
622 struct gl_texture_object *texObj = _mesa_get_current_tex_object(ctx, target);
623 texture_storage_no_error(ctx, dims, texObj, target, levels,
657 /* Check target. This is done here so that texture_storage
662 "%s(illegal target=%s)", caller,
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,
794 _mesa_TextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels,
802 if (!_mesa_lookup_or_create_texture(ctx, target, texture, false, true,
811 _mesa_TextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels,
819 if (!_mesa_lookup_or_create_texture(ctx, target, texture, false, true,
828 _mesa_TextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels,
836 if (!_mesa_lookup_or_create_texture(ctx, target, texture, false, true,
848 GLenum target, GLsizei levels,
855 texture_storage(ctx, dims, texObj, memObj, target, levels, internalformat,