/external/mesa3d/src/mesa/main/ |
genmipmap.c | 38 #include "texobj.h" 112 struct gl_texture_object *texObj, GLenum target, 120 if (texObj->BaseLevel >= texObj->MaxLevel) { 125 if (texObj->Target == GL_TEXTURE_CUBE_MAP && 126 !_mesa_cube_complete(texObj)) { 132 _mesa_lock_texture(ctx, texObj); 134 srcImage = _mesa_select_tex_image(texObj, target, texObj->BaseLevel); 136 _mesa_unlock_texture(ctx, texObj); [all...] |
objectpurge.c | 40 #include "texobj.h" 369 struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, name); 370 if (!texObj) { 378 *params = texObj->Purgeable;
|
dlist.h | 64 struct gl_texture_object *texObj;
|
objectlabel.c | 38 #include "texobj.h" 198 struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, name); 199 if (texObj && texObj->Target) 200 labelPtr = &texObj->Label;
|
copyimage.c | 34 #include "texobj.h" 138 struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, name); 140 if (!texObj) { 152 _mesa_test_texobj_completeness(ctx, texObj); 153 if (!texObj->_BaseComplete || 154 (level != 0 && !texObj->_MipmapComplete)) { 161 if (texObj->Target != target) { 186 if (!texObj->Image[z+i][level]) { 194 *tex_image = texObj->Image[z][level]; 197 *tex_image = _mesa_select_tex_image(texObj, target, level) [all...] |
shaderimage.c | 34 #include "texobj.h" 473 struct gl_texture_object *t = u->TexObj; 608 _mesa_reference_texobj(&u->TexObj, t); 610 _mesa_reference_texobj(&u->TexObj, NULL); 618 if (u->TexObj && _mesa_tex_target_is_layered(u->TexObj->Target)) { 683 struct gl_texture_object *texObj; 686 if (!u->TexObj || u->TexObj->Name != texture) { 687 texObj = _mesa_lookup_texture_locked(ctx, texture) [all...] |
shared.c | 119 /* Mutex and timestamp for texobj state validation */ 163 struct gl_texture_object *texObj = (struct gl_texture_object *) data; 165 ctx->Driver.DeleteTexture(ctx, texObj);
|
texstorage.c | 36 #include "texobj.h" 127 struct gl_texture_object *texObj, 131 (texObj->Target == GL_TEXTURE_CUBE_MAP || 132 texObj->Target == GL_PROXY_TEXTURE_CUBE_MAP) 133 ? GL_TEXTURE_CUBE_MAP_POSITIVE_X + face : texObj->Target; 134 return _mesa_get_tex_image(ctx, texObj, faceTarget, level); 141 struct gl_texture_object *texObj, 146 const GLenum target = texObj->Target; 155 get_tex_image(ctx, texObj, face, level); 181 struct gl_texture_object *texObj) [all...] |
debug.c | 38 #include "texobj.h" 260 write_texture_image(struct gl_texture_object *texObj, 263 struct gl_texture_image *img = texObj->Image[face][level]; 281 _mesa_snprintf(s, sizeof(s), "/tmp/tex%u.l%u.f%u.ppm", texObj->Name, level, face); 349 dump_texture(struct gl_texture_object *texObj, GLuint writeImages) 351 const GLuint numFaces = texObj->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1; 355 printf("Texture %u\n", texObj->Name); 356 printf(" Target %s\n", tex_target_name(texObj->Target)); 359 struct gl_texture_image *texImg = texObj->Image[j][i]; 367 write_texture_image(texObj, j, i) [all...] |
texstate.c | 37 #include "texobj.h" 399 const struct gl_texture_object *texObj = texUnit->_Current; 400 GLenum format = texObj->Image[0][texObj->BaseLevel]->_BaseFormat; 403 format = texObj->DepthMode; 516 struct gl_texture_object *texObj; 537 texObj = texUnit->CurrentTex[target_index]; 540 texUnit->Sampler : &texObj->Sampler; 542 if (likely(texObj)) { 543 if (_mesa_is_texture_complete(texObj, sampler) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_shader.c | 41 #include "main/texobj.h" 73 struct gl_texture_object *texObj = _mesa_get_tex_unit(ctx, unit)->_Current; 76 if (texObj) { 77 index = _mesa_tex_target_to_index(ctx, texObj->Target);
|
st_atom_texture.c | 40 #include "main/texobj.h" 62 struct gl_texture_object *texObj; 68 texObj = ctx->Texture.Unit[texUnit]._Current; 70 if (!texObj) { 71 texObj = _mesa_get_fallback_texture(ctx, TEXTURE_2D_INDEX); 72 samp = &texObj->Sampler; 74 stObj = st_texture_object(texObj); 76 retval = st_finalize_texture(ctx, st->pipe, texObj, 0);
|
st_context.c | 578 struct gl_texture_object *texObj = (struct gl_texture_object *) data; 581 st_texture_release_sampler_view(st, st_texture_object(texObj));
|
st_texture.h | 153 st_get_texobj_resource(struct gl_texture_object *texObj) 155 struct st_texture_object *stObj = st_texture_object(texObj); 173 struct gl_texture_object *texObj = ctx->Texture.Unit[texUnit]._Current; 175 if (!texObj) 178 return st_texture_object(texObj);
|
/external/mesa3d/src/mesa/swrast/ |
s_fragprog.c | 83 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; 85 if (texObj) { 95 swizzle_texel(rgba, color, texObj->_Swizzle); 117 const struct gl_texture_object *texObj = texUnit->_Current; 119 if (texObj) { 120 const struct gl_texture_image *texImg = _mesa_base_tex_image(texObj); 143 swizzle_texel(rgba, color, texObj->_Swizzle);
|
s_texfetch.c | 516 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; 521 if (!texObj) 526 dims = _mesa_get_texture_dimensions(texObj->Target); 530 if (texObj->Image[face][i]) { 532 swrast_texture_image(texObj->Image[face][i]),
|
s_renderbuffer.c | 559 struct gl_texture_object *texObj = fb->Attachment[buffer].Texture; 563 if (texObj) { 568 struct gl_texture_image *texImage = texObj->Image[face][level]; 593 struct gl_texture_object *texObj = fb->Attachment[buffer].Texture; 597 if (texObj) { 602 struct gl_texture_image *texImage = texObj->Image[face][level];
|
s_texture.c | 33 #include "main/texobj.h" 263 _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 265 const GLuint faces = _mesa_num_tex_faces(texObj->Target); 269 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { 270 struct gl_texture_image *texImage = texObj->Image[face][level]; 323 _swrast_unmap_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 325 const GLuint faces = _mesa_num_tex_faces(texObj->Target); 329 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { 330 struct gl_texture_image *texImage = texObj->Image[face][level]; 365 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
intel_tex_image.c | 14 #include "main/texobj.h" 231 struct gl_texture_object *texobj = image->TexObject; local 232 struct intel_texture_object *intel_texobj = intel_texture_object(texobj); 286 struct gl_texture_object *texObj; 291 texObj = _mesa_get_current_tex_object(ctx, target); 292 intelObj = intel_texture_object(texObj); 322 _mesa_lock_texture(&intel->ctx, texObj); 323 texImage = _mesa_get_tex_image(ctx, texObj, target, level); 329 _mesa_unlock_texture(&intel->ctx, texObj); 343 struct gl_texture_object *texObj, [all...] |
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_fragshader.c | 365 struct gl_texture_object *texObj = ctx->Texture.Unit[reg]._Current; 390 else if (texObj && texObj->Target == GL_TEXTURE_3D) { 393 else if (texObj && texObj->Target == GL_TEXTURE_CUBE_MAP) { 406 if (texObj) 414 struct gl_texture_object *texObj = ctx->Texture.Unit[reg]._Current; 431 else if (texObj && texObj->Target == GL_TEXTURE_3D) { 434 else if (texObj && texObj->Target == GL_TEXTURE_CUBE_MAP) [all...] |
/external/mesa3d/src/mesa/program/ |
prog_statevars.c | 467 const struct gl_texture_object *texObj 469 if (texObj) { 470 struct gl_texture_image *texImage = texObj->Image[0][0]; [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_sampler_state.c | 412 const struct gl_texture_object *texObj, 495 !(brw->gen == 7 && !brw->is_haswell && texObj->_IsIntegerFormat)) { 523 U_FIXED(CLAMP(texObj->MinLevel + texObj->BaseLevel, 0, hw_max_lod), 1); 540 texObj->_IsIntegerFormat, texObj->StencilSampling, 567 const struct gl_texture_object *texObj = texUnit->_Current; 571 if (texObj->Target == GL_TEXTURE_BUFFER) 574 struct gl_texture_image *firstImage = texObj->Image[0][texObj->BaseLevel] [all...] |
intel_tex_image.c | 14 #include "main/texobj.h" 184 struct gl_texture_object *texobj = image->TexObject; local 185 struct intel_texture_object *intel_texobj = intel_texture_object(texobj); 302 struct gl_texture_object *texObj; 308 texObj = _mesa_get_current_tex_object(ctx, target); 310 if (!texObj) 349 _mesa_lock_texture(&brw->ctx, texObj); 350 texImage = _mesa_get_tex_image(ctx, texObj, target, 0); 353 _mesa_unlock_texture(&brw->ctx, texObj); 363 struct gl_texture_object *texobj = image->TexObject local [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_mipmap_tree.c | 35 #include "main/texobj.h" 311 static GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) 317 if (texObj->BaseLevel < mt->baseLevel) 320 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; 321 firstImage = texObj->Image[0][texObj->BaseLevel]; 322 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); 325 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); [all...] |
/external/mesa3d/src/mesa/drivers/common/ |
meta_blit.c | 44 #include "main/texobj.h" 621 struct gl_texture_object *texObj; 641 texObj = readAtt->Texture; 642 target = texObj->Target; 645 &texObj, &target)) 677 texObj = _mesa_lookup_texture(ctx, meta_temp_texture->TexObj); 678 if (texObj == NULL) { 695 fb_tex_blit.baseLevelSave = texObj->BaseLevel; 696 fb_tex_blit.maxLevelSave = texObj->MaxLevel [all...] |