Lines Matching refs:texObj

797                        const struct gl_texture_object *texObj,  in _mesa_select_tex_image()  argument
802 ASSERT(texObj); in _mesa_select_tex_image()
806 return texObj->Image[face][level]; in _mesa_select_tex_image()
816 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj, in _mesa_get_tex_image() argument
821 if (!texObj) in _mesa_get_tex_image()
824 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in _mesa_get_tex_image()
832 set_tex_image(texObj, target, level, texImage); in _mesa_get_tex_image()
1611 struct gl_texture_object *texObj = in mutable_tex_object() local
1613 return !texObj->Immutable; in mutable_tex_object()
2670 struct gl_texture_object *texObj; member
2684 const struct gl_texture_object *texObj = info->texObj; in check_rtt_cb() local
2694 att->Texture == texObj && in check_rtt_cb()
2716 struct gl_texture_object *texObj, in _mesa_update_fbo_texture() argument
2720 if (texObj->_RenderToTexture) { in _mesa_update_fbo_texture()
2723 info.texObj = texObj; in _mesa_update_fbo_texture()
2738 struct gl_texture_object *texObj, GLint level) in check_gen_mipmap() argument
2741 if (texObj->GenerateMipmap && in check_gen_mipmap()
2742 level == texObj->BaseLevel && in check_gen_mipmap()
2743 level < texObj->MaxLevel) { in check_gen_mipmap()
2745 ctx->Driver.GenerateMipmap(ctx, target, texObj); in check_gen_mipmap()
2804 struct gl_texture_object *texObj, in _mesa_choose_texture_format() argument
2813 _mesa_select_tex_image(ctx, texObj, target, level - 1); in _mesa_choose_texture_format()
2858 f = ctx->Driver.ChooseTextureFormat(ctx, texObj->Target, internalFormat, in _mesa_choose_texture_format()
3004 struct gl_texture_object *texObj = in teximage() local
3006 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level, in teximage()
3031 struct gl_texture_object *texObj; in teximage() local
3052 texObj = _mesa_get_current_tex_object(ctx, target); in teximage()
3054 _mesa_lock_texture(ctx, texObj); in teximage()
3056 texImage = _mesa_get_tex_image(ctx, texObj, target, level); in teximage()
3066 texFormat = _mesa_choose_texture_format(ctx, texObj, target, level, in teximage()
3087 check_gen_mipmap(ctx, target, texObj, level); in teximage()
3089 _mesa_update_fbo_texture(ctx, texObj, face, level); in teximage()
3091 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in teximage()
3098 _mesa_unlock_texture(ctx, texObj); in teximage()
3161 struct gl_texture_object *texObj; in _mesa_EGLImageTargetTexture2DOES() local
3188 texObj = _mesa_get_current_tex_object(ctx, target); in _mesa_EGLImageTargetTexture2DOES()
3189 _mesa_lock_texture(ctx, texObj); in _mesa_EGLImageTargetTexture2DOES()
3191 if (texObj->Immutable) { in _mesa_EGLImageTargetTexture2DOES()
3194 _mesa_unlock_texture(ctx, texObj); in _mesa_EGLImageTargetTexture2DOES()
3198 texImage = _mesa_get_tex_image(ctx, texObj, target, 0); in _mesa_EGLImageTargetTexture2DOES()
3205 texObj, texImage, image); in _mesa_EGLImageTargetTexture2DOES()
3207 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in _mesa_EGLImageTargetTexture2DOES()
3209 _mesa_unlock_texture(ctx, texObj); in _mesa_EGLImageTargetTexture2DOES()
3225 struct gl_texture_object *texObj; in texsubimage() local
3253 texObj = _mesa_get_current_tex_object(ctx, target); in texsubimage()
3255 _mesa_lock_texture(ctx, texObj); in texsubimage()
3257 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in texsubimage()
3285 check_gen_mipmap(ctx, target, texObj, level); in texsubimage()
3290 _mesa_unlock_texture(ctx, texObj); in texsubimage()
3367 struct gl_texture_object *texObj; in copyteximage() local
3387 texObj = _mesa_get_current_tex_object(ctx, target); in copyteximage()
3399 _mesa_lock_texture(ctx, texObj); in copyteximage()
3401 texImage = _mesa_get_tex_image(ctx, texObj, target, level); in copyteximage()
3408 gl_format texFormat = _mesa_choose_texture_format(ctx, texObj, in copyteximage()
3436 check_gen_mipmap(ctx, target, texObj, level); in copyteximage()
3438 _mesa_update_fbo_texture(ctx, texObj, face, level); in copyteximage()
3440 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in copyteximage()
3448 _mesa_unlock_texture(ctx, texObj); in copyteximage()
3485 struct gl_texture_object *texObj; in copytexsubimage() local
3502 texObj = _mesa_get_current_tex_object(ctx, target); in copytexsubimage()
3504 _mesa_lock_texture(ctx, texObj); in copytexsubimage()
3506 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in copytexsubimage()
3536 check_gen_mipmap(ctx, target, texObj, level); in copytexsubimage()
3542 _mesa_unlock_texture(ctx, texObj); in copytexsubimage()
3778 struct gl_texture_object *texObj; in compressed_tex_sub_image() local
3793 texObj = _mesa_get_current_tex_object(ctx, target); in compressed_tex_sub_image()
3795 _mesa_lock_texture(ctx, texObj); in compressed_tex_sub_image()
3797 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in compressed_tex_sub_image()
3809 check_gen_mipmap(ctx, target, texObj, level); in compressed_tex_sub_image()
3814 _mesa_unlock_texture(ctx, texObj); in compressed_tex_sub_image()
4035 struct gl_texture_object *texObj; in _mesa_TexBuffer() local
4066 texObj = _mesa_get_current_tex_object(ctx, target); in _mesa_TexBuffer()
4068 _mesa_lock_texture(ctx, texObj); in _mesa_TexBuffer()
4070 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, bufObj); in _mesa_TexBuffer()
4071 texObj->BufferObjectFormat = internalFormat; in _mesa_TexBuffer()
4072 texObj->_BufferObjectFormat = format; in _mesa_TexBuffer()
4074 _mesa_unlock_texture(ctx, texObj); in _mesa_TexBuffer()