Lines Matching refs:texObj
199 struct gl_texture_object *texObj) in _mesa_delete_texture_object() argument
206 texObj->Target = 0x99; in _mesa_delete_texture_object()
211 if (texObj->Image[face][i]) { in _mesa_delete_texture_object()
212 ctx->Driver.DeleteTextureImage(ctx, texObj->Image[face][i]); in _mesa_delete_texture_object()
217 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, NULL); in _mesa_delete_texture_object()
220 _glthread_DESTROY_MUTEX(texObj->Mutex); in _mesa_delete_texture_object()
223 free(texObj); in _mesa_delete_texture_object()
284 struct gl_texture_object *texObj) in _mesa_clear_texture_object() argument
288 if (texObj->Target == 0) in _mesa_clear_texture_object()
293 struct gl_texture_image *texImage = texObj->Image[i][j]; in _mesa_clear_texture_object()
661 _mesa_cube_complete(const struct gl_texture_object *texObj) in _mesa_cube_complete() argument
663 const GLint baseLevel = texObj->BaseLevel; in _mesa_cube_complete()
667 if (texObj->Target != GL_TEXTURE_CUBE_MAP) in _mesa_cube_complete()
674 img0 = texObj->Image[0][baseLevel]; in _mesa_cube_complete()
682 img = texObj->Image[face][baseLevel]; in _mesa_cube_complete()
703 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj, in _mesa_dirty_texobj() argument
706 texObj->_BaseComplete = GL_FALSE; in _mesa_dirty_texobj()
707 texObj->_MipmapComplete = GL_FALSE; in _mesa_dirty_texobj()
726 struct gl_texture_object *texObj; in _mesa_get_fallback_texture() local
781 texObj = ctx->Driver.NewTextureObject(ctx, 0, target); in _mesa_get_fallback_texture()
782 if (!texObj) in _mesa_get_fallback_texture()
785 assert(texObj->RefCount == 1); in _mesa_get_fallback_texture()
786 texObj->Sampler.MinFilter = GL_NEAREST; in _mesa_get_fallback_texture()
787 texObj->Sampler.MagFilter = GL_NEAREST; in _mesa_get_fallback_texture()
803 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, 0); in _mesa_get_fallback_texture()
817 _mesa_test_texobj_completeness(ctx, texObj); in _mesa_get_fallback_texture()
818 assert(texObj->_BaseComplete); in _mesa_get_fallback_texture()
819 assert(texObj->_MipmapComplete); in _mesa_get_fallback_texture()
821 ctx->Shared->FallbackTex[tex] = texObj; in _mesa_get_fallback_texture()
831 texture_size(const struct gl_texture_object *texObj) in texture_size() argument
833 const GLuint numFaces = _mesa_num_tex_faces(texObj->Target); in texture_size()
838 const struct gl_texture_image *img = texObj->Image[face][level]; in texture_size()
857 const struct gl_texture_object *texObj = in count_tex_size() local
861 *total = *total + texture_size(texObj); in count_tex_size()
982 struct gl_texture_object *texObj; in _mesa_GenTextures() local
985 texObj = ctx->Driver.NewTextureObject(ctx, name, target); in _mesa_GenTextures()
986 if (!texObj) { in _mesa_GenTextures()
993 _mesa_HashInsert(ctx->Shared->TexObjects, texObj->Name, texObj); in _mesa_GenTextures()
1008 struct gl_texture_object *texObj) in unbind_texobj_from_fbo() argument
1019 fb->Attachment[j].Texture == texObj) { in unbind_texobj_from_fbo()
1036 struct gl_texture_object *texObj) in unbind_texobj_from_texunits() argument
1043 if (texObj == unit->CurrentTex[tex]) { in unbind_texobj_from_texunits()