Home
last modified time | relevance | path

Searched refs:tex_obj (Results 1 – 13 of 13) sorted by relevance

/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_generate_mipmap.c39 struct gl_texture_object *tex_obj) in brw_generate_mipmap() argument
43 struct intel_texture_object *intel_obj = intel_texture_object(tex_obj); in brw_generate_mipmap()
44 const unsigned base_level = tex_obj->BaseLevel; in brw_generate_mipmap()
49 (tex_obj->Image[0][base_level]->_BaseFormat == GL_DEPTH_COMPONENT || in brw_generate_mipmap()
50 tex_obj->Image[0][base_level]->_BaseFormat == GL_DEPTH_STENCIL)) { in brw_generate_mipmap()
51 _mesa_meta_GenerateMipmap(ctx, target, tex_obj); in brw_generate_mipmap()
56 last_level = _mesa_compute_num_levels(ctx, tex_obj, target) - 1; in brw_generate_mipmap()
66 if (!tex_obj->Immutable) { in brw_generate_mipmap()
67 _mesa_prepare_mipmap_levels(ctx, tex_obj, base_level, last_level); in brw_generate_mipmap()
77 intel_finalize_mipmap_tree(brw, tex_obj); in brw_generate_mipmap()
[all …]
Dbrw_draw.c499 struct intel_texture_object *tex_obj; in brw_predraw_resolve_inputs() local
526 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs()
527 if (!tex_obj || !tex_obj->mt) in brw_predraw_resolve_inputs()
530 astc5x5_wa_bits |= gen9_astc5x5_wa_bits(tex_obj->_Format, in brw_predraw_resolve_inputs()
531 tex_obj->mt->aux_usage); in brw_predraw_resolve_inputs()
540 tex_obj = intel_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs()
541 if (!tex_obj || !tex_obj->mt) in brw_predraw_resolve_inputs()
546 translate_tex_format(brw, tex_obj->_Format, sampler->sRGBDecode); in brw_predraw_resolve_inputs()
549 if (tex_obj->base.Immutable) { in brw_predraw_resolve_inputs()
550 min_level = tex_obj->base.MinLevel; in brw_predraw_resolve_inputs()
[all …]
Dintel_tex_validate.c206 struct gl_texture_object *tex_obj = ctx->Texture.Unit[unit]._Current; in brw_validate_textures() local
208 if (!tex_obj) in brw_validate_textures()
216 assert(tex_obj->_BaseComplete); in brw_validate_textures()
218 intel_update_max_level(tex_obj, sampler); in brw_validate_textures()
219 intel_finalize_mipmap_tree(brw, tex_obj); in brw_validate_textures()
Dintel_tex_image.c506 struct gl_texture_object *tex_obj; in intelReleaseTexBuffer() local
509 tex_obj = _mesa_get_current_tex_object(ctx, target); in intelReleaseTexBuffer()
510 if (!tex_obj) in intelReleaseTexBuffer()
513 _mesa_lock_texture(&brw->ctx, tex_obj); in intelReleaseTexBuffer()
515 intel_tex = intel_texture_object(tex_obj); in intelReleaseTexBuffer()
517 _mesa_unlock_texture(&brw->ctx, tex_obj); in intelReleaseTexBuffer()
558 _mesa_unlock_texture(&brw->ctx, tex_obj); in intelReleaseTexBuffer()
Dintel_tex.h56 struct gl_texture_object *tex_obj);
Dbrw_context.h1521 struct gl_texture_object *tex_obj);
/external/mesa3d/src/mesa/drivers/common/
Dmeta_blit.c158 texObj = meta_temp_texture->tex_obj; in blitframebuffer_texture()
178 fb_tex_blit.tex_obj = texObj; in blitframebuffer_texture()
516 if (blit->depthTex.tex_obj != NULL) { in _mesa_meta_glsl_blit_cleanup()
517 _mesa_delete_nameless_texture(ctx, blit->depthTex.tex_obj); in _mesa_meta_glsl_blit_cleanup()
518 blit->depthTex.tex_obj = NULL; in _mesa_meta_glsl_blit_cleanup()
Dmeta.h202 struct gl_texture_object *tex_obj; member
255 struct gl_texture_object *tex_obj; member
Dmeta.c1259 tex->tex_obj = ctx->Driver.NewTextureObject(ctx, 0xDEADBEEF, tex->Target); in init_temp_texture()
1265 _mesa_delete_nameless_texture(ctx, tex->tex_obj); in cleanup_temp_texture()
1266 tex->tex_obj = NULL; in cleanup_temp_texture()
1279 if (tex->tex_obj == NULL) { in _mesa_meta_get_temp_texture()
1297 if (tex->tex_obj == NULL) { in get_bitmap_temp_texture()
1313 if (tex->tex_obj == NULL) { in _mesa_meta_get_temp_depth_texture()
1392 _mesa_bind_texture(ctx, tex->Target, tex->tex_obj); in _mesa_meta_setup_copypix_texture()
1393 _mesa_texture_parameteriv(ctx, tex->tex_obj, GL_TEXTURE_MIN_FILTER, in _mesa_meta_setup_copypix_texture()
1395 _mesa_texture_parameteriv(ctx, tex->tex_obj, GL_TEXTURE_MAG_FILTER, in _mesa_meta_setup_copypix_texture()
1443 _mesa_bind_texture(ctx, tex->Target, tex->tex_obj); in _mesa_meta_setup_drawpix_texture()
[all …]
/external/mesa3d/src/mesa/main/
Dtexobj.c1714 struct gl_texture_object *tex_obj) in _mesa_bind_texture() argument
1720 if (tex_obj->Target == 0) in _mesa_bind_texture()
1721 finish_texture_init(ctx, target, tex_obj, targetIndex); in _mesa_bind_texture()
1723 assert(tex_obj->Target == target); in _mesa_bind_texture()
1724 assert(tex_obj->TargetIndex == targetIndex); in _mesa_bind_texture()
1726 bind_texture_object(ctx, ctx->Texture.CurrentUnit, tex_obj); in _mesa_bind_texture()
Dformatquery.c1460 struct gl_texture_object *tex_obj = _mesa_new_texture_object(ctx, 0, target); in _mesa_GetInternalformativ() local
1461 buffer[0] = tex_obj->ImageFormatCompatibilityType; in _mesa_GetInternalformativ()
1462 _mesa_delete_texture_object(ctx, tex_obj); in _mesa_GetInternalformativ()
Dtexobj.h212 struct gl_texture_object *tex_obj);
Ddd.h1181 struct gl_texture_object *tex_obj,