/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_generate_mipmap.c | 39 struct gl_texture_object *tex_obj) in brw_generate_mipmap() argument 43 struct brw_texture_object *intel_obj = brw_texture_object(tex_obj); in brw_generate_mipmap() 44 const unsigned base_level = tex_obj->Attrib.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 brw_finalize_mipmap_tree(brw, tex_obj); in brw_generate_mipmap() [all …]
|
D | brw_draw.c | 497 struct brw_texture_object *tex_obj; in brw_predraw_resolve_inputs() local 524 tex_obj = brw_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs() 525 if (!tex_obj || !tex_obj->mt) in brw_predraw_resolve_inputs() 528 astc5x5_wa_bits |= gfx9_astc5x5_wa_bits(tex_obj->_Format, in brw_predraw_resolve_inputs() 529 tex_obj->mt->aux_usage); in brw_predraw_resolve_inputs() 538 tex_obj = brw_texture_object(ctx->Texture.Unit[i]._Current); in brw_predraw_resolve_inputs() 539 if (!tex_obj || !tex_obj->mt) in brw_predraw_resolve_inputs() 544 translate_tex_format(brw, tex_obj->_Format, sampler->Attrib.sRGBDecode); in brw_predraw_resolve_inputs() 547 if (tex_obj->base.Immutable) { in brw_predraw_resolve_inputs() 548 min_level = tex_obj->base.Attrib.MinLevel; in brw_predraw_resolve_inputs() [all …]
|
D | brw_tex_validate.c | 208 struct gl_texture_object *tex_obj = ctx->Texture.Unit[unit]._Current; in brw_validate_textures() local 210 if (!tex_obj) in brw_validate_textures() 218 assert(tex_obj->_BaseComplete); in brw_validate_textures() 220 brw_update_max_level(tex_obj, sampler); in brw_validate_textures() 221 brw_finalize_mipmap_tree(brw, tex_obj); in brw_validate_textures()
|
D | brw_tex.c | 344 struct gl_texture_object *tex_obj, in intel_texture_for_memory_object() argument 352 struct brw_texture_object *intel_texobj = brw_texture_object(tex_obj); in intel_texture_for_memory_object() 353 struct gl_texture_image *image = tex_obj->Image[0][0]; in intel_texture_for_memory_object() 361 if (tex_obj->TextureTiling == GL_LINEAR_TILING_EXT) in intel_texture_for_memory_object() 366 .dim = get_isl_surf_dim(tex_obj->Target), in intel_texture_for_memory_object() 372 .array_len = tex_obj->Target == GL_TEXTURE_3D ? 1 : depth, in intel_texture_for_memory_object()
|
D | brw_tex_image.c | 506 struct gl_texture_object *tex_obj; in brw_release_texbuffer() local 509 tex_obj = _mesa_get_current_tex_object(ctx, target); in brw_release_texbuffer() 510 if (!tex_obj) in brw_release_texbuffer() 513 _mesa_lock_texture(&brw->ctx, tex_obj); in brw_release_texbuffer() 515 intel_tex = brw_texture_object(tex_obj); in brw_release_texbuffer() 517 _mesa_unlock_texture(&brw->ctx, tex_obj); in brw_release_texbuffer() 558 _mesa_unlock_texture(&brw->ctx, tex_obj); in brw_release_texbuffer()
|
D | brw_tex.h | 56 struct gl_texture_object *tex_obj);
|
D | brw_context.h | 1515 struct gl_texture_object *tex_obj);
|
/third_party/flutter/glfw/tests/ |
D | vulkan.c | 919 struct texture_object *tex_obj, VkImageTiling tiling, in demo_prepare_texture_image() argument 927 tex_obj->tex_width = tex_width; in demo_prepare_texture_image() 928 tex_obj->tex_height = tex_height; in demo_prepare_texture_image() 953 vkCreateImage(demo->device, &image_create_info, NULL, &tex_obj->image); in demo_prepare_texture_image() 956 vkGetImageMemoryRequirements(demo->device, tex_obj->image, &mem_reqs); in demo_prepare_texture_image() 965 err = vkAllocateMemory(demo->device, &mem_alloc, NULL, &tex_obj->mem); in demo_prepare_texture_image() 969 err = vkBindImageMemory(demo->device, tex_obj->image, tex_obj->mem, 0); in demo_prepare_texture_image() 982 vkGetImageSubresourceLayout(demo->device, tex_obj->image, &subres, in demo_prepare_texture_image() 985 err = vkMapMemory(demo->device, tex_obj->mem, 0, in demo_prepare_texture_image() 995 vkUnmapMemory(demo->device, tex_obj->mem); in demo_prepare_texture_image() [all …]
|
/third_party/mesa3d/src/mesa/drivers/common/ |
D | meta_blit.c | 158 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()
|
D | meta.h | 202 struct gl_texture_object *tex_obj; member 255 struct gl_texture_object *tex_obj; member
|
D | meta.c | 1261 tex->tex_obj = ctx->Driver.NewTextureObject(ctx, 0xDEADBEEF, tex->Target); in init_temp_texture() 1267 _mesa_delete_nameless_texture(ctx, tex->tex_obj); in cleanup_temp_texture() 1268 tex->tex_obj = NULL; in cleanup_temp_texture() 1281 if (tex->tex_obj == NULL) { in _mesa_meta_get_temp_texture() 1299 if (tex->tex_obj == NULL) { in get_bitmap_temp_texture() 1315 if (tex->tex_obj == NULL) { in _mesa_meta_get_temp_depth_texture() 1394 _mesa_bind_texture(ctx, tex->Target, tex->tex_obj); in _mesa_meta_setup_copypix_texture() 1395 _mesa_texture_parameteriv(ctx, tex->tex_obj, GL_TEXTURE_MIN_FILTER, in _mesa_meta_setup_copypix_texture() 1397 _mesa_texture_parameteriv(ctx, tex->tex_obj, GL_TEXTURE_MAG_FILTER, in _mesa_meta_setup_copypix_texture() 1445 _mesa_bind_texture(ctx, tex->Target, tex->tex_obj); in _mesa_meta_setup_drawpix_texture() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | texobj.c | 1682 struct gl_texture_object *tex_obj) in _mesa_bind_texture() argument 1688 if (tex_obj->Target == 0) in _mesa_bind_texture() 1689 finish_texture_init(ctx, target, tex_obj, targetIndex); in _mesa_bind_texture() 1691 assert(tex_obj->Target == target); in _mesa_bind_texture() 1692 assert(tex_obj->TargetIndex == targetIndex); in _mesa_bind_texture() 1694 bind_texture_object(ctx, ctx->Texture.CurrentUnit, tex_obj); in _mesa_bind_texture()
|
D | formatquery.c | 1470 struct gl_texture_object *tex_obj = _mesa_new_texture_object(ctx, 0, target); in _mesa_GetInternalformativ() local 1471 buffer[0] = tex_obj->Attrib.ImageFormatCompatibilityType; in _mesa_GetInternalformativ() 1472 _mesa_delete_texture_object(ctx, tex_obj); in _mesa_GetInternalformativ()
|
D | texobj.h | 214 struct gl_texture_object *tex_obj);
|
D | dd.h | 1256 struct gl_texture_object *tex_obj,
|