Lines Matching refs:texObj

130    struct gl_texture_object *texObj = NULL;
133 texObj = _mesa_lookup_texture(ctx, id); /* Returns NULL if not found. */
135 if (!texObj)
138 return texObj;
461 * \param texObj the texture object to delete.
465 struct gl_texture_object *texObj)
472 texObj->Target = 0x99;
474 pipe_resource_reference(&texObj->pt, NULL);
475 st_delete_texture_sampler_views(ctx->st, texObj);
476 simple_mtx_destroy(&texObj->validate_mutex);
481 if (texObj->Image[face][i]) {
482 _mesa_delete_texture_image(ctx, texObj->Image[face][i]);
488 _mesa_delete_texture_handles(ctx, texObj);
490 _mesa_reference_buffer_object_shared(ctx, &texObj->BufferObject, NULL);
491 free(texObj->Label);
494 FREE(texObj);
503 * \param texObj texture object.
510 struct gl_texture_object *texObj,
515 if (texObj->Target == 0)
520 struct gl_texture_image *texImage = texObj->Image[i][j];
866 _mesa_cube_level_complete(const struct gl_texture_object *texObj,
872 if (texObj->Target != GL_TEXTURE_CUBE_MAP)
879 img0 = texObj->Image[0][level];
887 img = texObj->Image[face][level];
903 _mesa_cube_complete(const struct gl_texture_object *texObj)
905 return _mesa_cube_level_complete(texObj, texObj->Attrib.BaseLevel);
913 * \param texObj texture object.
916 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj)
918 texObj->_BaseComplete = GL_FALSE;
919 texObj->_MipmapComplete = GL_FALSE;
939 struct gl_texture_object *texObj;
1009 texObj = _mesa_new_texture_object(ctx, 0, target);
1010 if (!texObj)
1013 assert(texObj->RefCount == 1);
1014 texObj->Sampler.Attrib.MinFilter = GL_NEAREST;
1015 texObj->Sampler.Attrib.MagFilter = GL_NEAREST;
1016 texObj->Sampler.Attrib.state.min_img_filter = PIPE_TEX_FILTER_NEAREST;
1017 texObj->Sampler.Attrib.state.min_mip_filter = PIPE_TEX_MIPFILTER_NONE;
1018 texObj->Sampler.Attrib.state.mag_img_filter = PIPE_TEX_FILTER_NEAREST;
1029 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, 0);
1043 _mesa_test_texobj_completeness(ctx, texObj);
1044 assert(texObj->_BaseComplete);
1045 assert(texObj->_MipmapComplete);
1047 ctx->Shared->FallbackTex[tex] = texObj;
1061 texture_size(const struct gl_texture_object *texObj)
1063 const GLuint numFaces = _mesa_num_tex_faces(texObj->Target);
1068 const struct gl_texture_image *img = texObj->Image[face][level];
1087 const struct gl_texture_object *texObj =
1091 *total = *total + texture_size(texObj);
1121 _mesa_texture_base_format(const struct gl_texture_object *texObj)
1123 const struct gl_texture_image *texImage = _mesa_base_tex_image(texObj);
1208 struct gl_texture_object *texObj;
1209 texObj = _mesa_new_texture_object(ctx, textures[i], target);
1210 if (!texObj) {
1217 _mesa_HashInsertLocked(ctx->Shared->TexObjects, texObj->Name, texObj, true);
1321 struct gl_texture_object *texObj)
1341 progress = _mesa_detach_renderbuffer(ctx, ctx->DrawBuffer, texObj);
1345 progress = _mesa_detach_renderbuffer(ctx, ctx->ReadBuffer, texObj)
1361 struct gl_texture_object *texObj)
1363 const gl_texture_index index = texObj->TargetIndex;
1366 if (texObj->Target == 0) {
1376 if (texObj == unit->CurrentTex[index]) {
1392 struct gl_texture_object *texObj)
1399 if (texObj == unit->TexObj) {
1417 struct gl_texture_object *texObj = ctx->Shared->DefaultTex[index];
1419 _mesa_reference_texobj(&texUnit->CurrentTex[index], texObj);
1582 * always specified by the texObj->TargetIndex.
1585 * \param texObj the new texture object (cannot be NULL)
1589 struct gl_texture_object *texObj)
1597 assert(texObj);
1598 assert(valid_texture_object(texObj));
1600 targetIndex = texObj->TargetIndex;
1610 texObj == texUnit->CurrentTex[targetIndex])
1627 texObj->Sampler.glclamp_mask)
1633 _mesa_reference_texobj(&texUnit->CurrentTex[targetIndex], texObj);
1638 if (texObj->Name != 0)
1806 struct gl_texture_object *texObj;
1820 texObj = _mesa_lookup_texture(ctx, texture);
1823 if (!texObj) {
1829 if (texObj->Target == 0) {
1836 assert(valid_texture_object(texObj));
1838 bind_texture_object(ctx, unit, texObj);
1903 struct gl_texture_object *texObj;
1906 texObj = current;
1908 texObj = _mesa_lookup_texture_locked(ctx, textures[i]);
1910 if (texObj && texObj->Target != 0) {
1911 bind_texture_object(ctx, first + i, texObj);
2369 struct gl_texture_object *texObj;
2371 texObj = _mesa_get_current_tex_object(ctx, target);
2372 if (!texObj) {
2377 texture_page_commitment(ctx, target, texObj, level, xoffset, yoffset, zoffset,
2388 struct gl_texture_object *texObj;
2390 texObj = _mesa_lookup_texture(ctx, texture);
2391 if (texture == 0 || texObj == NULL) {
2396 texture_page_commitment(ctx, texObj->Target, texObj, level, xoffset, yoffset,