Home
last modified time | relevance | path

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

123456

/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 …]
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,
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 …]
/external/chromium_org/third_party/mesa/src/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 …]
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,
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 …]
/external/chromium_org/third_party/mesa/src/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()
/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()
/external/chromium_org/third_party/mesa/src/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 …]
/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 …]
/external/chromium_org/third_party/mesa/src/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 …]
/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 …]
/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 …]
/external/chromium_org/third_party/mesa/src/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 …]
/external/chromium_org/third_party/mesa/src/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()

123456