/external/mesa3d/src/mesa/state_tracker/ |
st_gen_mipmap.c | 121 struct gl_texture_object *texObj, 127 baseImage = _mesa_get_tex_image(ctx, texObj, target, texObj->BaseLevel); 129 numLevels = texObj->BaseLevel + baseImage->MaxNumLevels; 130 numLevels = MIN2(numLevels, texObj->MaxLevel + 1); 142 struct gl_texture_object *texObj) 145 struct st_texture_object *stObj = st_texture_object(texObj); 146 struct pipe_resource *pt = st_get_texobj_resource(texObj); 147 const uint baseLevel = texObj->BaseLevel; 159 lastLevel = compute_num_levels(ctx, texObj, target) - 1 [all...] |
st_gen_mipmap.h | 49 struct gl_texture_object *texObj);
|
st_cb_eglimage.c | 30 #include "main/texobj.h" 101 struct gl_texture_object *texObj, 116 stObj = st_texture_object(texObj); 121 _mesa_clear_texture_object(ctx, texObj); 140 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); 145 struct gl_texture_object *texObj, 156 st_bind_surface(ctx, target, texObj, texImage, ps);
|
st_atom_texture.c | 38 #include "main/texobj.h" 195 struct gl_texture_object *texObj; 202 texObj = ctx->Texture.Unit[texUnit]._Current; 204 if (!texObj) { 205 texObj = _mesa_get_fallback_texture(ctx, TEXTURE_2D_INDEX); 206 samp = &texObj->Sampler; 208 stObj = st_texture_object(texObj); 210 retval = st_finalize_texture(ctx, st->pipe, texObj); 402 struct gl_texture_object *texObj 405 if (texObj) { [all...] |
/external/mesa3d/src/mesa/main/ |
texparam.c | 44 #include "main/texobj.h" 241 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) 244 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); 254 struct gl_texture_object *texObj, 259 if (texObj->Sampler.MinFilter == params[0]) 265 texObj->Sampler.MinFilter = params[0]; 271 if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && 272 texObj->Target != GL_TEXTURE_EXTERNAL_OES) { 274 texObj->Sampler.MinFilter = params[0]; 284 if (texObj->Sampler.MagFilter == params[0] [all...] |
texstorage.c | 39 #include "texobj.h" 126 struct gl_texture_object *texObj, 131 const GLenum target = texObj->Target; 142 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, 152 _mesa_get_tex_image(ctx, texObj, faceTarget, level); 171 if (!_mesa_is_proxy_texture(texObj->Target)) { 173 if (!ctx->Driver.AllocTextureStorage(ctx, texObj, levels, 182 struct gl_texture_image *texImage = texObj->Image[face][level]; 197 texObj->Immutable = GL_TRUE; 208 struct gl_texture_object *texObj) [all...] |
texobj.h | 2 * \file texobj.h 94 _mesa_is_texture_complete(const struct gl_texture_object *texObj, 97 if (texObj->_IsIntegerFormat && 106 return texObj->_MipmapComplete; 108 return texObj->_BaseComplete; 117 _mesa_cube_complete(const struct gl_texture_object *texObj); 120 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj,
|
mipmap.h | 46 struct gl_texture_object *texObj, GLuint level, 52 struct gl_texture_object *texObj);
|
texobj.c | 2 * \file texobj.c 42 #include "texobj.h" 195 * \param texObj the texture object to delete. 199 struct gl_texture_object *texObj) 206 texObj->Target = 0x99; 211 if (texObj->Image[face][i]) { 212 ctx->Driver.DeleteTextureImage(ctx, texObj->Image[face][i]); 217 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, NULL); 220 _glthread_DESTROY_MUTEX(texObj->Mutex); 223 free(texObj); [all...] |
teximage.h | 91 struct gl_texture_object *texObj, 97 struct gl_texture_object *texObj, 116 const struct gl_texture_object *texObj, 121 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj, 157 _mesa_lock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 161 (void) texObj; 165 _mesa_unlock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 167 (void) texObj;
|
debug.c | 37 #include "texobj.h" 276 write_texture_image(struct gl_texture_object *texObj, 279 struct gl_texture_image *img = texObj->Image[face][level]; 295 _mesa_snprintf(s, sizeof(s), "/tmp/tex%u.l%u.f%u.ppm", texObj->Name, level, face); 363 dump_texture(struct gl_texture_object *texObj, GLuint writeImages) 365 const GLuint numFaces = texObj->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1; 369 printf("Texture %u\n", texObj->Name); 370 printf(" Target %s\n", tex_target_name(texObj->Target)); 373 struct gl_texture_image *texImg = texObj->Image[j][i]; 381 write_texture_image(texObj, j, i) [all...] |
texgetimage.c | 701 struct gl_texture_object *texObj; 724 texObj = _mesa_get_current_tex_object(ctx, target); 726 if (!texObj) { 731 texImage = _mesa_select_tex_image(ctx, texObj, target, level); 811 struct gl_texture_object *texObj; 826 texObj = _mesa_get_current_tex_object(ctx, target); 827 texImage = _mesa_select_tex_image(ctx, texObj, target, level); 835 texObj->Name, 841 _mesa_lock_texture(ctx, texObj); 845 _mesa_unlock_texture(ctx, texObj); [all...] |
teximage.c | 47 #include "texobj.h" 789 * \param texObj texture unit. 797 const struct gl_texture_object *texObj, 802 ASSERT(texObj); 806 return texObj->Image[face][level]; 816 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj, 821 if (!texObj) 824 texImage = _mesa_select_tex_image(ctx, texObj, target, level); 832 set_tex_image(texObj, target, level, texImage); [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_texture.h | 54 struct gl_texture_object *texObj); 57 void radeon_swrast_map_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj); 58 void radeon_swrast_unmap_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj); 82 struct gl_texture_object *texObj,
|
radeon_mipmap_tree.c | 36 #include "main/texobj.h" 321 static GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) 327 if (texObj->BaseLevel < mt->baseLevel) 330 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; 331 firstImage = texObj->Image[0][texObj->BaseLevel]; 332 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); 335 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); [all...] |
radeon_texture.c | 42 #include "main/texobj.h" 52 struct gl_texture_object *texObj, 56 struct gl_texture_object *texObj, 110 struct gl_texture_object *texobj = timage->TexObject; local 115 switch (texobj->Target) { 124 teximage_assign_miptree(rmesa, texobj, timage); 547 struct gl_texture_object *texObj, 550 radeonTexObj *t = radeon_tex_obj(texObj); 557 texObj, 561 "%s: texObj %p, texImage %p, [all...] |
radeon_tex.c | 43 #include "main/texobj.h" 333 struct gl_texture_object *texObj, 336 radeonTexObj* t = radeon_tex_obj(texObj); 355 struct gl_texture_object *texObj ) 358 radeonTexObj* t = radeon_tex_obj(texObj); 362 "%s( %p (target = %s) )\n", __FUNCTION__, (void *)texObj, 363 _mesa_lookup_enum_by_nr( texObj->Target ) ); 368 if ( t == rmesa->state.texture.unit[i].texobj ) { 369 rmesa->state.texture.unit[i].texobj = NULL; 379 _mesa_delete_texture_object(ctx, texObj); [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_texture.c | 32 #include "main/texobj.h" 248 _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 250 const GLuint faces = _mesa_num_tex_faces(texObj->Target); 254 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { 255 struct gl_texture_image *texImage = texObj->Image[face][level]; 269 _swrast_unmap_texture(struct gl_context *ctx, struct gl_texture_object *texObj) 271 const GLuint faces = _mesa_num_tex_faces(texObj->Target); 275 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { 276 struct gl_texture_image *texImage = texObj->Image[face][level]; 300 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current [all...] |
s_fragprog.c | 82 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; 84 if (texObj) { 94 swizzle_texel(rgba, color, texObj->_Swizzle); 116 const struct gl_texture_object *texObj = texUnit->_Current; 118 if (texObj) { 120 texObj->Image[0][texObj->BaseLevel]; 143 swizzle_texel(rgba, color, texObj->_Swizzle);
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_span.c | 159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; 160 intel_tex_unmap_images(intel, intel_texture_object(texObj)); 190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; 192 intel_tex_map_images(intel, intel_texture_object(texObj), 210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; 212 intel_tex_unmap_images(intel, intel_texture_object(texObj));
|
intel_tex.c | 3 #include "main/texobj.h" 44 struct gl_texture_object *texObj) 46 struct intel_texture_object *intelObj = intel_texture_object(texObj); 49 _mesa_delete_texture_object(ctx, texObj); 58 struct gl_texture_object *texobj = image->TexObject; local 59 struct intel_texture_object *intel_texobj = intel_texture_object(texobj); 71 switch (texobj->Target) { 91 __FUNCTION__, texobj, image->Level, 106 __FUNCTION__, texobj, image->Level, 119 struct gl_texture_object *texObj, [all...] |
intel_tex_image.c | 14 #include "main/texobj.h" 245 struct gl_texture_object *texobj = image->TexObject; local 246 struct intel_texture_object *intel_texobj = intel_texture_object(texobj); 277 struct gl_texture_object *texObj; 282 texObj = _mesa_get_current_tex_object(ctx, target); 283 intelObj = intel_texture_object(texObj); 313 _mesa_lock_texture(&intel->ctx, texObj); 314 texImage = _mesa_get_tex_image(ctx, texObj, target, level); 317 _mesa_unlock_texture(&intel->ctx, texObj); 332 struct gl_texture_object *texObj, [all...] |
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/ |
texture.hpp | 105 cudaTextureObject_t texObj; 114 return tex2D<T>(texObj, x, y); 155 CV_CUDEV_SAFE_CALL( cudaCreateTextureObject(&this->texObj, &texRes, &texDescr, 0) ); 169 cudaDestroyTextureObject(this->texObj); 190 cudaTextureObject_t texObj; 196 return tex2D<T>(texObj, x, y); 238 CV_CUDEV_SAFE_CALL( cudaCreateTextureObject(&this->texObj, &texRes, &texDescr, 0) ); 244 cudaDestroyTextureObject(this->texObj);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_wm_sampler_state.c | 88 struct gl_texture_object *texObj = texUnit->_Current; 89 struct gl_texture_image *firstImage = texObj->Image[0][texObj->BaseLevel]; 167 struct gl_texture_object *texObj = texUnit->_Current; 172 if (texObj->Target == GL_TEXTURE_BUFFER) 244 if (texObj->Target == GL_TEXTURE_CUBE_MAP) { 256 } else if (texObj->Target == GL_TEXTURE_1D) { 300 if (intel->gen >= 6 && texObj->Target == GL_TEXTURE_RECTANGLE) {
|
gen7_sampler_state.c | 42 struct gl_texture_object *texObj = texUnit->_Current; 47 if (texObj->Target == GL_TEXTURE_BUFFER) 114 if (texObj->Target == GL_TEXTURE_CUBE_MAP) { 126 } else if (texObj->Target == GL_TEXTURE_1D) { 167 if (texObj->Target == GL_TEXTURE_RECTANGLE) {
|