/external/mesa3d/src/mesa/main/ |
D | texparam.c | 148 struct gl_texture_object *texObj; in get_texobj_by_name() local 150 texObj = _mesa_lookup_texture_err(ctx, texture, name); in get_texobj_by_name() 151 if (!texObj) in get_texobj_by_name() 154 if (!is_texparameteri_target_valid(texObj->Target)) { in get_texobj_by_name() 159 return texObj; in get_texobj_by_name() 221 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) in incomplete() argument 224 _mesa_dirty_texobj(ctx, texObj); in incomplete() 248 struct gl_texture_object *texObj, in set_tex_parameteri() argument 253 if (texObj->HandleAllocated) { in set_tex_parameteri() 268 if (!_mesa_target_allows_setting_sampler_parameters(texObj->Target)) in set_tex_parameteri() [all …]
|
D | genmipmap.c | 113 struct gl_texture_object *texObj, GLenum target, in generate_texture_mipmap() argument 120 if (texObj->BaseLevel >= texObj->MaxLevel) { in generate_texture_mipmap() 125 if (caller && texObj->Target == GL_TEXTURE_CUBE_MAP && in generate_texture_mipmap() 126 !_mesa_cube_complete(texObj)) { in generate_texture_mipmap() 132 _mesa_lock_texture(ctx, texObj); in generate_texture_mipmap() 134 srcImage = _mesa_select_tex_image(texObj, target, texObj->BaseLevel); in generate_texture_mipmap() 137 _mesa_unlock_texture(ctx, texObj); in generate_texture_mipmap() 145 _mesa_unlock_texture(ctx, texObj); in generate_texture_mipmap() 154 _mesa_unlock_texture(ctx, texObj); in generate_texture_mipmap() 162 GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, texObj); in generate_texture_mipmap() [all …]
|
D | texturebindless.c | 125 struct gl_texture_object *texObj = NULL; in make_texture_handle_resident() local 140 _mesa_reference_texobj(&texObj, texHandleObj->texObj); in make_texture_handle_resident() 153 texObj = texHandleObj->texObj; in make_texture_handle_resident() 154 _mesa_reference_texobj(&texObj, NULL); in make_texture_handle_resident() 174 struct gl_texture_object *texObj = NULL; in make_image_handle_resident() local 189 _mesa_reference_texobj(&texObj, imgHandleObj->imgObj.TexObj); in make_image_handle_resident() 200 texObj = imgHandleObj->imgObj.TexObj; in make_image_handle_resident() 201 _mesa_reference_texobj(&texObj, NULL); in make_image_handle_resident() 206 find_texhandleobj(struct gl_texture_object *texObj, in find_texhandleobj() argument 209 util_dynarray_foreach(&texObj->SamplerHandles, in find_texhandleobj() [all …]
|
D | teximage.c | 367 _mesa_select_tex_image(const struct gl_texture_object *texObj, in _mesa_select_tex_image() argument 372 assert(texObj); in _mesa_select_tex_image() 376 return texObj->Image[face][level]; in _mesa_select_tex_image() 386 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj, in _mesa_get_tex_image() argument 391 if (!texObj) in _mesa_get_tex_image() 394 texImage = _mesa_select_tex_image(texObj, target, level); in _mesa_get_tex_image() 402 set_tex_image(texObj, target, level, texImage); in _mesa_get_tex_image() 638 _mesa_get_texture_layers(const struct gl_texture_object *texObj, GLint level) in _mesa_get_texture_layers() argument 642 switch (texObj->Target) { in _mesa_get_texture_layers() 655 struct gl_texture_image *img = texObj->Image[0][level]; in _mesa_get_texture_layers() [all …]
|
D | texstorage.c | 127 struct gl_texture_object *texObj, in get_tex_image() argument 131 (texObj->Target == GL_TEXTURE_CUBE_MAP || in get_tex_image() 132 texObj->Target == GL_PROXY_TEXTURE_CUBE_MAP) in get_tex_image() 133 ? GL_TEXTURE_CUBE_MAP_POSITIVE_X + face : texObj->Target; in get_tex_image() 134 return _mesa_get_tex_image(ctx, texObj, faceTarget, level); in get_tex_image() 141 struct gl_texture_object *texObj, in initialize_texture_fields() argument 146 const GLenum target = texObj->Target; in initialize_texture_fields() 155 get_tex_image(ctx, texObj, face, level); in initialize_texture_fields() 181 struct gl_texture_object *texObj) in clear_texture_fields() argument 183 const GLenum target = texObj->Target; in clear_texture_fields() [all …]
|
D | texgetimage.c | 894 select_tex_image(const struct gl_texture_object *texObj, GLenum target, in select_tex_image() argument 904 return _mesa_select_tex_image(texObj, target, level); in select_tex_image() 915 struct gl_texture_object *texObj, in dimensions_error_check() argument 996 texImage = select_tex_image(texObj, target, level, zoffset); in dimensions_error_check() 1211 struct gl_texture_object *texObj, in common_error_check() argument 1220 if (texObj->Target == 0) { in common_error_check() 1247 if (target == GL_TEXTURE_CUBE_MAP && !_mesa_cube_complete(texObj)) { in common_error_check() 1263 struct gl_texture_object *texObj, in getteximage_error_check() argument 1271 assert(texObj); in getteximage_error_check() 1273 if (common_error_check(ctx, texObj, target, level, width, height, depth, in getteximage_error_check() [all …]
|
D | textureview.c | 305 struct gl_texture_object *texObj, in initialize_texture_fields() argument 316 texObj->Target = target; in initialize_texture_fields() 324 texImage = _mesa_get_tex_image(ctx, texObj, faceTarget, level); in initialize_texture_fields() 343 texObj->Target = 0; in initialize_texture_fields() 462 struct gl_texture_object *texObj, in _mesa_set_texture_view_state() argument 468 texImage = _mesa_select_tex_image(texObj, target, 0); in _mesa_set_texture_view_state() 487 texObj->Immutable = GL_TRUE; in _mesa_set_texture_view_state() 488 texObj->ImmutableLevels = levels; in _mesa_set_texture_view_state() 489 texObj->MinLevel = 0; in _mesa_set_texture_view_state() 490 texObj->NumLevels = levels; in _mesa_set_texture_view_state() [all …]
|
D | texobj.h | 107 _mesa_lock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _mesa_lock_texture() argument 111 (void) texObj; in _mesa_lock_texture() 115 _mesa_unlock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _mesa_unlock_texture() argument 117 (void) texObj; in _mesa_unlock_texture() 124 _mesa_is_texture_complete(const struct gl_texture_object *texObj, in _mesa_is_texture_complete() argument 128 struct gl_texture_image *img = texObj->Image[0][texObj->BaseLevel]; in _mesa_is_texture_complete() 147 (texObj->_IsIntegerFormat || in _mesa_is_texture_complete() 148 (texObj->StencilSampling && in _mesa_is_texture_complete() 157 if (texObj->_IsIntegerFormat && in _mesa_is_texture_complete() 171 return texObj->_MipmapComplete; in _mesa_is_texture_complete() [all …]
|
D | shaderimage.c | 561 set_image_binding(struct gl_image_unit *u, struct gl_texture_object *texObj, in set_image_binding() argument 570 if (texObj && _mesa_tex_target_is_layered(texObj->Target)) { in set_image_binding() 579 _mesa_reference_texobj(&u->TexObj, texObj); in set_image_binding() 583 bind_image_texture(struct gl_context *ctx, struct gl_texture_object *texObj, in bind_image_texture() argument 594 set_image_binding(u, texObj, level, layered, layer, access, format); in bind_image_texture() 602 struct gl_texture_object *texObj = NULL; in _mesa_BindImageTexture_no_error() local 607 texObj = _mesa_lookup_texture(ctx, texture); in _mesa_BindImageTexture_no_error() 609 bind_image_texture(ctx, texObj, unit, level, layered, layer, access, format); in _mesa_BindImageTexture_no_error() 617 struct gl_texture_object *texObj = NULL; in _mesa_BindImageTexture() local 626 texObj = _mesa_lookup_texture(ctx, texture); in _mesa_BindImageTexture() [all …]
|
D | texobj.c | 121 struct gl_texture_object *texObj = NULL; in _mesa_lookup_texture_err() local 124 texObj = _mesa_lookup_texture(ctx, id); /* Returns NULL if not found. */ in _mesa_lookup_texture_err() 126 if (!texObj) in _mesa_lookup_texture_err() 129 return texObj; in _mesa_lookup_texture_err() 427 struct gl_texture_object *texObj) in _mesa_delete_texture_object() argument 434 texObj->Target = 0x99; in _mesa_delete_texture_object() 439 if (texObj->Image[face][i]) { in _mesa_delete_texture_object() 440 ctx->Driver.DeleteTextureImage(ctx, texObj->Image[face][i]); in _mesa_delete_texture_object() 446 _mesa_delete_texture_handles(ctx, texObj); in _mesa_delete_texture_object() 448 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, NULL); in _mesa_delete_texture_object() [all …]
|
D | texstate.c | 531 const struct gl_texture_object *texObj = texUnit->_Current; in update_tex_combine() local 532 GLenum format = texObj->Image[0][texObj->BaseLevel]->_BaseFormat; in update_tex_combine() 535 format = texObj->DepthMode; in update_tex_combine() 651 struct gl_texture_object *texObj; in update_single_program_texture() local 667 texObj = texUnit->CurrentTex[target_index]; in update_single_program_texture() 670 texUnit->Sampler : &texObj->Sampler; in update_single_program_texture() 672 if (likely(texObj)) { in update_single_program_texture() 673 if (_mesa_is_texture_complete(texObj, sampler, in update_single_program_texture() 675 return texObj; in update_single_program_texture() 677 _mesa_test_texobj_completeness(ctx, texObj); in update_single_program_texture() [all …]
|
D | externalobjects.c | 295 struct gl_texture_object *texObj; in texstorage_memory() local 305 texObj = _mesa_get_current_tex_object(ctx, target); in texstorage_memory() 306 if (!texObj) in texstorage_memory() 313 _mesa_texture_storage_memory(ctx, dims, texObj, memObj, target, in texstorage_memory() 324 struct gl_texture_object *texObj; in texstorage_memory_ms() local 334 texObj = _mesa_get_current_tex_object(ctx, target); in texstorage_memory_ms() 335 if (!texObj) in texstorage_memory_ms() 342 _mesa_texture_storage_ms_memory(ctx, dims, texObj, memObj, target, samples, in texstorage_memory_ms() 356 struct gl_texture_object *texObj; in texturestorage_memory() local 366 texObj = _mesa_lookup_texture(ctx, texture); in texturestorage_memory() [all …]
|
D | debug.c | 265 write_texture_image(struct gl_texture_object *texObj, in write_texture_image() argument 268 struct gl_texture_image *img = texObj->Image[face][level]; in write_texture_image() 286 snprintf(s, sizeof(s), "/tmp/tex%u.l%u.f%u.ppm", texObj->Name, level, face); in write_texture_image() 354 dump_texture(struct gl_texture_object *texObj, GLuint writeImages) in dump_texture() argument 356 const GLuint numFaces = texObj->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1; in dump_texture() 360 printf("Texture %u\n", texObj->Name); in dump_texture() 361 printf(" Target %s\n", tex_target_name(texObj->Target)); in dump_texture() 364 struct gl_texture_image *texImg = texObj->Image[j][i]; in dump_texture() 372 write_texture_image(texObj, j, i); in dump_texture() 388 struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, texture); in _mesa_dump_texture() local [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_gen_mipmap.c | 54 struct gl_texture_object *texObj) in st_generate_mipmap() argument 57 struct st_texture_object *stObj = st_texture_object(texObj); in st_generate_mipmap() 58 struct pipe_resource *pt = st_get_texobj_resource(texObj); in st_generate_mipmap() 59 uint baseLevel = texObj->BaseLevel; in st_generate_mipmap() 66 if (texObj->Immutable) in st_generate_mipmap() 67 baseLevel += texObj->MinLevel; in st_generate_mipmap() 74 lastLevel = _mesa_compute_num_levels(ctx, texObj, target) - 1; in st_generate_mipmap() 76 if (texObj->Immutable) in st_generate_mipmap() 77 lastLevel += texObj->MinLevel; in st_generate_mipmap() 90 if (!texObj->Immutable) { in st_generate_mipmap() [all …]
|
D | st_cb_eglimage.c | 238 struct gl_texture_object *texObj, in st_bind_egl_image() argument 257 stObj = st_texture_object(texObj); in st_bind_egl_image() 262 _mesa_clear_texture_object(ctx, texObj, NULL); in st_bind_egl_image() 274 texObj->RequiredTextureImageUnits = 1; in st_bind_egl_image() 277 texObj->RequiredTextureImageUnits = 2; in st_bind_egl_image() 284 texObj->RequiredTextureImageUnits = 2; in st_bind_egl_image() 288 texObj->RequiredTextureImageUnits = 3; in st_bind_egl_image() 293 texObj->RequiredTextureImageUnits = 2; in st_bind_egl_image() 298 texObj->RequiredTextureImageUnits = 1; in st_bind_egl_image() 302 texObj->RequiredTextureImageUnits = 1; in st_bind_egl_image() [all …]
|
D | st_cb_semaphoreobjects.c | 90 struct st_texture_object *texObj; in st_server_wait_semaphore() local 120 texObj = st_texture_object(texObjs[i]); in st_server_wait_semaphore() 121 if (texObj->pt) in st_server_wait_semaphore() 122 pipe->flush_resource(pipe, texObj->pt); in st_server_wait_semaphore() 139 struct st_texture_object *texObj; in st_server_signal_semaphore() local 154 texObj = st_texture_object(texObjs[i]); in st_server_signal_semaphore() 155 if (texObj->pt) in st_server_signal_semaphore() 156 pipe->flush_resource(pipe, texObj->pt); in st_server_signal_semaphore()
|
/external/mesa3d/src/mesa/drivers/common/ |
D | meta_generate_mipmap.c | 59 struct gl_texture_object *texObj) in fallback_required() argument 74 srcLevel = texObj->BaseLevel; in fallback_required() 75 baseImage = _mesa_select_tex_image(texObj, target, srcLevel); in fallback_required() 148 struct gl_texture_object *texObj) in _mesa_meta_GenerateMipmap() argument 152 const GLuint baseLevel = texObj->BaseLevel; in _mesa_meta_GenerateMipmap() 153 const GLuint maxLevel = texObj->MaxLevel; in _mesa_meta_GenerateMipmap() 154 const GLint maxLevelSave = texObj->MaxLevel; in _mesa_meta_GenerateMipmap() 155 const GLboolean genMipmapSave = texObj->GenerateMipmap; in _mesa_meta_GenerateMipmap() 170 if (fallback_required(ctx, target, texObj)) { in _mesa_meta_GenerateMipmap() 171 _mesa_generate_mipmap(ctx, target, texObj); in _mesa_meta_GenerateMipmap() [all …]
|
D | meta_blit.c | 108 struct gl_texture_object *texObj; in blitframebuffer_texture() local 125 texObj = readAtt->Texture; in blitframebuffer_texture() 127 texObj = texture_object_from_renderbuffer(ctx, rb); in blitframebuffer_texture() 128 if (texObj == NULL) in blitframebuffer_texture() 131 fb_tex_blit.temp_tex_obj = texObj; in blitframebuffer_texture() 158 texObj = meta_temp_texture->tex_obj; in blitframebuffer_texture() 159 if (texObj == NULL) { in blitframebuffer_texture() 169 assert(texObj->Target == meta_temp_texture->Target); in blitframebuffer_texture() 177 target = texObj->Target; in blitframebuffer_texture() 178 fb_tex_blit.tex_obj = texObj; in blitframebuffer_texture() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_mipmap_tree.c | 312 … GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) in radeon_miptree_matches_texture() argument 318 if (texObj->BaseLevel < mt->baseLevel) in radeon_miptree_matches_texture() 321 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; in radeon_miptree_matches_texture() 322 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture() 323 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture() 326 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); in radeon_miptree_matches_texture() 327 fprintf(stderr, "target %d vs %d\n", mt->target, texObj->Target); in radeon_miptree_matches_texture() 333 if (mt->target == texObj->Target && in radeon_miptree_matches_texture() 345 return (mt->target == texObj->Target && in radeon_miptree_matches_texture() 360 struct gl_texture_object *texObj = &t->base; in radeon_try_alloc_miptree() local [all …]
|
D | radeon_texture.c | 50 struct gl_texture_object *texObj, 54 struct gl_texture_object *texObj, 490 struct gl_texture_object *texObj, in teximage_assign_miptree() argument 493 radeonTexObj *t = radeon_tex_obj(texObj); in teximage_assign_miptree() 500 texObj, in teximage_assign_miptree() 506 __func__, texObj, texImage, t->mt); in teximage_assign_miptree() 535 struct gl_texture_object *texObj, in radeon_image_target_texture_2d() argument 540 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_image_target_texture_2d() 641 struct gl_texture_object *texObj, in radeon_miptree_create_for_teximage() argument 644 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_miptree_create_for_teximage() [all …]
|
D | r200_fragshader.c | 365 struct gl_texture_object *texObj = ctx->Texture.Unit[reg]._Current; in r200UpdateFSRouting() local 390 else if (texObj && texObj->Target == GL_TEXTURE_3D) { in r200UpdateFSRouting() 393 else if (texObj && texObj->Target == GL_TEXTURE_CUBE_MAP) { in r200UpdateFSRouting() 406 if (texObj) in r200UpdateFSRouting() 414 struct gl_texture_object *texObj = ctx->Texture.Unit[reg]._Current; in r200UpdateFSRouting() local 431 else if (texObj && texObj->Target == GL_TEXTURE_3D) { in r200UpdateFSRouting() 434 else if (texObj && texObj->Target == GL_TEXTURE_CUBE_MAP) { in r200UpdateFSRouting() 444 if (texObj) in r200UpdateFSRouting() 452 struct gl_texture_object *texObj = ctx->Texture.Unit[reg]._Current; in r200UpdateFSRouting() local 471 else if (texObj && texObj->Target == GL_TEXTURE_3D) { in r200UpdateFSRouting() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_mipmap_tree.c | 312 … GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) in radeon_miptree_matches_texture() argument 318 if (texObj->BaseLevel < mt->baseLevel) in radeon_miptree_matches_texture() 321 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; in radeon_miptree_matches_texture() 322 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture() 323 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture() 326 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); in radeon_miptree_matches_texture() 327 fprintf(stderr, "target %d vs %d\n", mt->target, texObj->Target); in radeon_miptree_matches_texture() 333 if (mt->target == texObj->Target && in radeon_miptree_matches_texture() 345 return (mt->target == texObj->Target && in radeon_miptree_matches_texture() 360 struct gl_texture_object *texObj = &t->base; in radeon_try_alloc_miptree() local [all …]
|
D | radeon_texture.c | 50 struct gl_texture_object *texObj, 54 struct gl_texture_object *texObj, 490 struct gl_texture_object *texObj, in teximage_assign_miptree() argument 493 radeonTexObj *t = radeon_tex_obj(texObj); in teximage_assign_miptree() 500 texObj, in teximage_assign_miptree() 506 __func__, texObj, texImage, t->mt); in teximage_assign_miptree() 535 struct gl_texture_object *texObj, in radeon_image_target_texture_2d() argument 540 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_image_target_texture_2d() 641 struct gl_texture_object *texObj, in radeon_miptree_create_for_teximage() argument 644 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_miptree_create_for_teximage() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_texture.c | 265 _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _swrast_map_texture() argument 267 const GLuint faces = _mesa_num_tex_faces(texObj->Target); in _swrast_map_texture() 271 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { in _swrast_map_texture() 272 struct gl_texture_image *texImage = texObj->Image[face][level]; in _swrast_map_texture() 325 _swrast_unmap_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _swrast_unmap_texture() argument 327 const GLuint faces = _mesa_num_tex_faces(texObj->Target); in _swrast_unmap_texture() 331 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { in _swrast_unmap_texture() 332 struct gl_texture_image *texImage = texObj->Image[face][level]; in _swrast_unmap_texture() 367 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in _swrast_map_textures() local 369 if (texObj) in _swrast_map_textures() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_tex.c | 54 struct gl_texture_object *texObj) in intelDeleteTextureObject() argument 56 struct intel_texture_object *intelObj = intel_texture_object(texObj); in intelDeleteTextureObject() 59 _mesa_delete_texture_object(ctx, texObj); in intelDeleteTextureObject() 260 struct gl_texture_object *texObj, in intel_texture_view() argument 264 struct intel_texture_object *intel_tex = intel_texture_object(texObj); in intel_texture_view() 276 const int numFaces = _mesa_num_tex_faces(texObj->Target); in intel_texture_view() 277 const int numLevels = texObj->NumLevels; in intel_texture_view() 284 struct gl_texture_image *image = texObj->Image[face][level]; in intel_texture_view() 301 intel_lower_compressed_format(brw, texObj->Image[0][0]->TexFormat)); in intel_texture_view()
|