Home
last modified time | relevance | path

Searched refs:texObj (Results 1 – 25 of 69) sorted by relevance

123

/external/mesa3d/src/mesa/main/
Dtexparam.c241 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) in incomplete() argument
244 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in incomplete()
254 struct gl_texture_object *texObj, in set_tex_parameteri() argument
259 if (texObj->Sampler.MinFilter == params[0]) in set_tex_parameteri()
265 texObj->Sampler.MinFilter = params[0]; in set_tex_parameteri()
271 if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && in set_tex_parameteri()
272 texObj->Target != GL_TEXTURE_EXTERNAL_OES) { in set_tex_parameteri()
274 texObj->Sampler.MinFilter = params[0]; in set_tex_parameteri()
284 if (texObj->Sampler.MagFilter == params[0]) in set_tex_parameteri()
290 texObj->Sampler.MagFilter = params[0]; in set_tex_parameteri()
[all …]
Dtexstorage.c126 struct gl_texture_object *texObj, in setup_texstorage() argument
131 const GLenum target = texObj->Target; in setup_texstorage()
142 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in setup_texstorage()
152 _mesa_get_tex_image(ctx, texObj, faceTarget, level); in setup_texstorage()
171 if (!_mesa_is_proxy_texture(texObj->Target)) { in setup_texstorage()
173 if (!ctx->Driver.AllocTextureStorage(ctx, texObj, levels, in setup_texstorage()
182 struct gl_texture_image *texImage = texObj->Image[face][level]; in setup_texstorage()
197 texObj->Immutable = GL_TRUE; in setup_texstorage()
208 struct gl_texture_object *texObj) in clear_image_fields() argument
210 const GLenum target = texObj->Target; in clear_image_fields()
[all …]
Dtexobj.c199 struct gl_texture_object *texObj) in _mesa_delete_texture_object() argument
206 texObj->Target = 0x99; in _mesa_delete_texture_object()
211 if (texObj->Image[face][i]) { in _mesa_delete_texture_object()
212 ctx->Driver.DeleteTextureImage(ctx, texObj->Image[face][i]); in _mesa_delete_texture_object()
217 _mesa_reference_buffer_object(ctx, &texObj->BufferObject, NULL); in _mesa_delete_texture_object()
220 _glthread_DESTROY_MUTEX(texObj->Mutex); in _mesa_delete_texture_object()
223 free(texObj); in _mesa_delete_texture_object()
284 struct gl_texture_object *texObj) in _mesa_clear_texture_object() argument
288 if (texObj->Target == 0) in _mesa_clear_texture_object()
293 struct gl_texture_image *texImage = texObj->Image[i][j]; in _mesa_clear_texture_object()
[all …]
Dteximage.c797 const struct gl_texture_object *texObj, in _mesa_select_tex_image() argument
802 ASSERT(texObj); in _mesa_select_tex_image()
806 return texObj->Image[face][level]; in _mesa_select_tex_image()
816 _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj, in _mesa_get_tex_image() argument
821 if (!texObj) in _mesa_get_tex_image()
824 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in _mesa_get_tex_image()
832 set_tex_image(texObj, target, level, texImage); in _mesa_get_tex_image()
1611 struct gl_texture_object *texObj = in mutable_tex_object() local
1613 return !texObj->Immutable; in mutable_tex_object()
2670 struct gl_texture_object *texObj; member
[all …]
Dtexobj.h94 _mesa_is_texture_complete(const struct gl_texture_object *texObj, in _mesa_is_texture_complete() argument
97 if (texObj->_IsIntegerFormat && in _mesa_is_texture_complete()
106 return texObj->_MipmapComplete; in _mesa_is_texture_complete()
108 return texObj->_BaseComplete; in _mesa_is_texture_complete()
117 _mesa_cube_complete(const struct gl_texture_object *texObj);
120 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj,
Dtexgetimage.c701 struct gl_texture_object *texObj; in getteximage_error_check() local
724 texObj = _mesa_get_current_tex_object(ctx, target); in getteximage_error_check()
726 if (!texObj) { in getteximage_error_check()
731 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in getteximage_error_check()
811 struct gl_texture_object *texObj; in _mesa_GetnTexImageARB() local
826 texObj = _mesa_get_current_tex_object(ctx, target); in _mesa_GetnTexImageARB()
827 texImage = _mesa_select_tex_image(ctx, texObj, target, level); in _mesa_GetnTexImageARB()
835 texObj->Name, in _mesa_GetnTexImageARB()
841 _mesa_lock_texture(ctx, texObj); in _mesa_GetnTexImageARB()
845 _mesa_unlock_texture(ctx, texObj); in _mesa_GetnTexImageARB()
[all …]
Ddebug.c276 write_texture_image(struct gl_texture_object *texObj, in write_texture_image() argument
279 struct gl_texture_image *img = texObj->Image[face][level]; in write_texture_image()
295 _mesa_snprintf(s, sizeof(s), "/tmp/tex%u.l%u.f%u.ppm", texObj->Name, level, face); in write_texture_image()
363 dump_texture(struct gl_texture_object *texObj, GLuint writeImages) in dump_texture() argument
365 const GLuint numFaces = texObj->Target == GL_TEXTURE_CUBE_MAP ? 6 : 1; in dump_texture()
369 printf("Texture %u\n", texObj->Name); in dump_texture()
370 printf(" Target %s\n", tex_target_name(texObj->Target)); in dump_texture()
373 struct gl_texture_image *texImg = texObj->Image[j][i]; in dump_texture()
381 write_texture_image(texObj, j, i); in dump_texture()
397 struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, texture); in _mesa_dump_texture() local
[all …]
Dteximage.h91 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) in _mesa_lock_texture() argument
161 (void) texObj; in _mesa_lock_texture()
165 _mesa_unlock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _mesa_unlock_texture() argument
167 (void) texObj; in _mesa_unlock_texture()
/external/mesa3d/src/mesa/state_tracker/
Dst_gen_mipmap.c121 struct gl_texture_object *texObj, in compute_num_levels() argument
127 baseImage = _mesa_get_tex_image(ctx, texObj, target, texObj->BaseLevel); in compute_num_levels()
129 numLevels = texObj->BaseLevel + baseImage->MaxNumLevels; in compute_num_levels()
130 numLevels = MIN2(numLevels, texObj->MaxLevel + 1); in compute_num_levels()
142 struct gl_texture_object *texObj) in st_generate_mipmap() argument
145 struct st_texture_object *stObj = st_texture_object(texObj); in st_generate_mipmap()
146 struct pipe_resource *pt = st_get_texobj_resource(texObj); in st_generate_mipmap()
147 const uint baseLevel = texObj->BaseLevel; in st_generate_mipmap()
159 lastLevel = compute_num_levels(ctx, texObj, target) - 1; in st_generate_mipmap()
189 st_finalize_texture(ctx, st->pipe, texObj); in st_generate_mipmap()
[all …]
Dst_cb_eglimage.c101 struct gl_texture_object *texObj, in st_bind_surface() argument
116 stObj = st_texture_object(texObj); in st_bind_surface()
121 _mesa_clear_texture_object(ctx, texObj); in st_bind_surface()
140 _mesa_dirty_texobj(ctx, texObj, GL_TRUE); in st_bind_surface()
145 struct gl_texture_object *texObj, in st_egl_image_target_texture_2d() argument
156 st_bind_surface(ctx, target, texObj, texImage, ps); in st_egl_image_target_texture_2d()
Dst_atom_texture.c195 struct gl_texture_object *texObj; in update_single_texture() local
202 texObj = ctx->Texture.Unit[texUnit]._Current; in update_single_texture()
204 if (!texObj) { in update_single_texture()
205 texObj = _mesa_get_fallback_texture(ctx, TEXTURE_2D_INDEX); in update_single_texture()
206 samp = &texObj->Sampler; in update_single_texture()
208 stObj = st_texture_object(texObj); in update_single_texture()
210 retval = st_finalize_texture(ctx, st->pipe, texObj); in update_single_texture()
402 struct gl_texture_object *texObj in finalize_textures() local
405 if (texObj) { in finalize_textures()
408 retval = st_finalize_texture(ctx, st->pipe, texObj); in finalize_textures()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_mipmap_tree.c321 … GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) in radeon_miptree_matches_texture() argument
327 if (texObj->BaseLevel < mt->baseLevel) in radeon_miptree_matches_texture()
330 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; in radeon_miptree_matches_texture()
331 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture()
332 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture()
335 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); in radeon_miptree_matches_texture()
336 fprintf(stderr, "target %d vs %d\n", mt->target, texObj->Target); in radeon_miptree_matches_texture()
342 if (mt->target == texObj->Target && in radeon_miptree_matches_texture()
354 return (mt->target == texObj->Target && in radeon_miptree_matches_texture()
369 struct gl_texture_object *texObj = &t->base; in radeon_try_alloc_miptree() local
[all …]
Dradeon_texture.c52 struct gl_texture_object *texObj,
56 struct gl_texture_object *texObj,
547 struct gl_texture_object *texObj, in teximage_assign_miptree() argument
550 radeonTexObj *t = radeon_tex_obj(texObj); in teximage_assign_miptree()
557 texObj, in teximage_assign_miptree()
563 __FUNCTION__, texObj, texImage, t->mt); in teximage_assign_miptree()
593 struct gl_texture_object *texObj, in radeon_image_target_texture_2d() argument
598 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_image_target_texture_2d()
751 struct gl_texture_object *texObj) in radeon_swrast_map_texture_images() argument
754 GLuint nr_faces = _mesa_num_tex_faces(texObj->Target); in radeon_swrast_map_texture_images()
[all …]
Dradeon_texture.h54 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,
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_mipmap_tree.c321 … GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) in radeon_miptree_matches_texture() argument
327 if (texObj->BaseLevel < mt->baseLevel) in radeon_miptree_matches_texture()
330 mtBaseLevel = &mt->levels[texObj->BaseLevel - mt->baseLevel]; in radeon_miptree_matches_texture()
331 firstImage = texObj->Image[0][texObj->BaseLevel]; in radeon_miptree_matches_texture()
332 numLevels = MIN2(texObj->_MaxLevel - texObj->BaseLevel + 1, firstImage->MaxNumLevels); in radeon_miptree_matches_texture()
335 fprintf(stderr, "Checking if miptree %p matches texObj %p\n", mt, texObj); in radeon_miptree_matches_texture()
336 fprintf(stderr, "target %d vs %d\n", mt->target, texObj->Target); in radeon_miptree_matches_texture()
342 if (mt->target == texObj->Target && in radeon_miptree_matches_texture()
354 return (mt->target == texObj->Target && in radeon_miptree_matches_texture()
369 struct gl_texture_object *texObj = &t->base; in radeon_try_alloc_miptree() local
[all …]
Dradeon_texture.c52 struct gl_texture_object *texObj,
56 struct gl_texture_object *texObj,
547 struct gl_texture_object *texObj, in teximage_assign_miptree() argument
550 radeonTexObj *t = radeon_tex_obj(texObj); in teximage_assign_miptree()
557 texObj, in teximage_assign_miptree()
563 __FUNCTION__, texObj, texImage, t->mt); in teximage_assign_miptree()
593 struct gl_texture_object *texObj, in radeon_image_target_texture_2d() argument
598 radeonTexObj *t = radeon_tex_obj(texObj); in radeon_image_target_texture_2d()
751 struct gl_texture_object *texObj) in radeon_swrast_map_texture_images() argument
754 GLuint nr_faces = _mesa_num_tex_faces(texObj->Target); in radeon_swrast_map_texture_images()
[all …]
Dradeon_texture.h54 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,
/external/mesa3d/src/mesa/swrast/
Ds_texture.c248 _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _swrast_map_texture() argument
250 const GLuint faces = _mesa_num_tex_faces(texObj->Target); in _swrast_map_texture()
254 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { in _swrast_map_texture()
255 struct gl_texture_image *texImage = texObj->Image[face][level]; in _swrast_map_texture()
269 _swrast_unmap_texture(struct gl_context *ctx, struct gl_texture_object *texObj) in _swrast_unmap_texture() argument
271 const GLuint faces = _mesa_num_tex_faces(texObj->Target); in _swrast_unmap_texture()
275 for (level = texObj->BaseLevel; level < MAX_TEXTURE_LEVELS; level++) { in _swrast_unmap_texture()
276 struct gl_texture_image *texImage = texObj->Image[face][level]; in _swrast_unmap_texture()
300 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in _swrast_map_textures() local
302 _swrast_map_texture(ctx, texObj); in _swrast_map_textures()
[all …]
Ds_fragprog.c82 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; in fetch_texel_lod() local
84 if (texObj) { in fetch_texel_lod()
94 swizzle_texel(rgba, color, texObj->_Swizzle); in fetch_texel_lod()
116 const struct gl_texture_object *texObj = texUnit->_Current; in fetch_texel_deriv() local
118 if (texObj) { in fetch_texel_deriv()
120 texObj->Image[0][texObj->BaseLevel]; in fetch_texel_deriv()
143 swizzle_texel(rgba, color, texObj->_Swizzle); in fetch_texel_deriv()
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/
Dtexture.hpp105 cudaTextureObject_t texObj; member
114 return tex2D<T>(texObj, x, y); in operator ()()
155 CV_CUDEV_SAFE_CALL( cudaCreateTextureObject(&this->texObj, &texRes, &texDescr, 0) ); in Texture()
169 cudaDestroyTextureObject(this->texObj); in ~Texture()
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/
Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish() local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intelSpanRenderFinish()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures() local
192 intel_tex_map_images(intel, intel_texture_object(texObj), in intel_map_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures() local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intel_unmap_vertex_shader_textures()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish() local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intelSpanRenderFinish()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures() local
192 intel_tex_map_images(intel, intel_texture_object(texObj), in intel_map_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures() local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intel_unmap_vertex_shader_textures()
Dintel_tex.c44 struct gl_texture_object *texObj) in intelDeleteTextureObject() argument
46 struct intel_texture_object *intelObj = intel_texture_object(texObj); in intelDeleteTextureObject()
49 _mesa_delete_texture_object(ctx, texObj); in intelDeleteTextureObject()
119 struct gl_texture_object *texObj, in intel_alloc_texture_storage() argument
123 const int numFaces = _mesa_num_tex_faces(texObj->Target); in intel_alloc_texture_storage()
129 struct gl_texture_image *const texImage = texObj->Image[face][level]; in intel_alloc_texture_storage()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intelSpanRenderFinish() local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intelSpanRenderFinish()
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_map_vertex_shader_textures() local
192 intel_tex_map_images(intel, intel_texture_object(texObj), in intel_map_vertex_shader_textures()
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; in intel_unmap_vertex_shader_textures() local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj)); in intel_unmap_vertex_shader_textures()
Dintel_tex.c44 struct gl_texture_object *texObj) in intelDeleteTextureObject() argument
46 struct intel_texture_object *intelObj = intel_texture_object(texObj); in intelDeleteTextureObject()
49 _mesa_delete_texture_object(ctx, texObj); in intelDeleteTextureObject()
119 struct gl_texture_object *texObj, in intel_alloc_texture_storage() argument
123 const int numFaces = _mesa_num_tex_faces(texObj->Target); in intel_alloc_texture_storage()
129 struct gl_texture_image *const texImage = texObj->Image[face][level]; in intel_alloc_texture_storage()

123