Home | History | Annotate | Download | only in main

Lines Matching refs:texObj

47 #include "texobj.h"
789 * \param texObj texture unit.
797 const struct gl_texture_object *texObj,
802 ASSERT(texObj);
806 return texObj->Image[face][level];
816 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj,
821 if (!texObj)
824 texImage = _mesa_select_tex_image(ctx, texObj, target, level);
832 set_tex_image(texObj, target, level, texImage);
1611 struct gl_texture_object *texObj =
1613 return !texObj->Immutable;
2670 struct gl_texture_object *texObj;
2684 const struct gl_texture_object *texObj = info->texObj;
2690 /* check if any of the FBO's attachments point to 'texObj' */
2694 att->Texture == texObj &&
2716 struct gl_texture_object *texObj,
2720 if (texObj->_RenderToTexture) {
2723 info.texObj = texObj;
2738 struct gl_texture_object *texObj, GLint level)
2741 if (texObj->GenerateMipmap &&
2742 level == texObj->BaseLevel &&
2743 level < texObj->MaxLevel) {
2745 ctx->Driver.GenerateMipmap(ctx, target, texObj);
2804 struct gl_texture_object *texObj,
2813 _mesa_select_tex_image(ctx, texObj, target, level - 1);
2858 f = ctx->Driver.ChooseTextureFormat(ctx, texObj->Target, internalFormat,
3004 struct gl_texture_object *texObj =
3006 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level,
3031 struct gl_texture_object *texObj;
3052 texObj = _mesa_get_current_tex_object(ctx, target);
3054 _mesa_lock_texture(ctx, texObj);
3056 texObj, target, level);
3066 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level,
3087 check_gen_mipmap(ctx, target, texObj, level);
3089 _mesa_update_fbo_texture(ctx, texObj, face, level);
3091 _mesa_dirty_texobj(ctx, texObj, GL_TRUE);
3098 _mesa_unlock_texture(ctx, texObj);
3161 struct gl_texture_object *texObj;
3188 texObj = _mesa_get_current_tex_object(ctx, target);
3189 _mesa_lock_texture(ctx, texObj);
3191 if (texObj->Immutable) {
3194 _mesa_unlock_texture(ctx, texObj);
3198 texImage = _mesa_get_tex_image(ctx, texObj, target, 0);
3205 texObj, texImage, image);
3207 _mesa_dirty_texobj(ctx, texObj, GL_TRUE);
3209 _mesa_unlock_texture(ctx, texObj);
3225 struct gl_texture_object *texObj;
3253 texObj = _mesa_get_current_tex_object(ctx, target);
3255 _mesa_lock_texture(ctx, texObj);
3257 texImage = _mesa_select_tex_image(ctx, texObj, target, level);
3285 check_gen_mipmap(ctx, target, texObj, level);
3290 _mesa_unlock_texture(ctx, texObj);
3367 struct gl_texture_object *texObj;
3387 texObj = _mesa_get_current_tex_object(ctx, target);
3399 _mesa_lock_texture(ctx, texObj);
3401 texImage = _mesa_get_tex_image(ctx, texObj, target, level);
3408 gl_format texFormat = _mesa_choose_texture_format(ctx, texObj,
3436 check_gen_mipmap(ctx, target, texObj, level);
3438 _mesa_update_fbo_texture(ctx, texObj, face, level);
3440 _mesa_dirty_texobj(ctx, texObj, GL_TRUE);
3448 _mesa_unlock_texture(ctx, texObj);
3485 struct gl_texture_object *texObj;
3502 texObj = _mesa_get_current_tex_object(ctx, target);
3504 _mesa_lock_texture(ctx, texObj);
3506 texImage = _mesa_select_tex_image(ctx, texObj, target, level);
3536 check_gen_mipmap(ctx, target, texObj, level);
3542 _mesa_unlock_texture(ctx, texObj);
3778 struct gl_texture_object *texObj;
3793 texObj = _mesa_get_current_tex_object(ctx, target);
3795 _mesa_lock_texture(ctx, texObj);
3797 texImage = _mesa_select_tex_image(ctx, texObj, target, level);
3809 check_gen_mipmap(ctx, target, texObj, level);
3814 _mesa_unlock_texture(ctx, texObj);
4035 struct gl_texture_object *texObj;
4066 texObj = _mesa_get_current_tex_object(ctx, target);
4068 _mesa_lock_texture(ctx, texObj);
4070 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, bufObj);
4071 texObj->BufferObjectFormat = internalFormat;
4072 texObj->_BufferObjectFormat = format;
4074 _mesa_unlock_texture(ctx, texObj);