Searched refs:texObj (Results 1 - 25 of 66) sorted by relevance

123

/external/mesa3d/src/mesa/state_tracker/
H A Dst_gen_mipmap.c121 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, targe
120 compute_num_levels(struct gl_context *ctx, struct gl_texture_object *texObj, GLenum target) argument
141 st_generate_mipmap(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj) argument
[all...]
H A Dst_gen_mipmap.h49 struct gl_texture_object *texObj);
H A Dst_cb_eglimage.c101 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);
100 st_bind_surface(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, struct gl_texture_image *texImage, struct pipe_surface *ps) argument
144 st_egl_image_target_texture_2d(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, struct gl_texture_image *texImage, GLeglImageOES image_handle) argument
H A Dst_atom_texture.c195 struct gl_texture_object *texObj; local
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 local
405 if (texObj) {
408 retval = st_finalize_texture(ctx, st->pipe, texObj);
[all...]
/external/mesa3d/src/mesa/main/
H A Dtexparam.c241 incomplete(struct gl_context *ctx, struct gl_texture_object *texObj) argument
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])
290 texObj
253 set_tex_parameteri(struct gl_context *ctx, struct gl_texture_object *texObj, GLenum pname, const GLint *params) argument
536 set_tex_parameterf(struct gl_context *ctx, struct gl_texture_object *texObj, GLenum pname, const GLfloat *params) argument
640 struct gl_texture_object *texObj; local
701 struct gl_texture_object *texObj; local
777 struct gl_texture_object *texObj; local
821 struct gl_texture_object *texObj; local
882 struct gl_texture_object *texObj; local
912 struct gl_texture_object *texObj; local
988 get_tex_level_parameter_image(struct gl_context *ctx, const struct gl_texture_object *texObj, GLenum target, GLint level, GLenum pname, GLint *params) argument
1135 get_tex_level_parameter_buffer(struct gl_context *ctx, const struct gl_texture_object *texObj, GLenum pname, GLint *params) argument
1248 struct gl_texture_object *texObj; local
1655 struct gl_texture_object *texObj; local
1677 struct gl_texture_object *texObj; local
[all...]
H A Dtexstorage.c126 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)
210 const GLenum target = texObj
125 setup_texstorage(struct gl_context *ctx, struct gl_texture_object *texObj, GLuint dims, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth) argument
206 clear_image_fields(struct gl_context *ctx, GLuint dims, struct gl_texture_object *texObj) argument
246 struct gl_texture_object *texObj; local
359 struct gl_texture_object *texObj; local
[all...]
H A Dtexobj.h94 _mesa_is_texture_complete(const struct gl_texture_object *texObj, argument
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,
H A Dmipmap.h46 struct gl_texture_object *texObj, GLuint level,
52 struct gl_texture_object *texObj);
H A Dtexobj.c195 * \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);
284 struct gl_texture_object *texObj)
288 if (texObj
198 _mesa_delete_texture_object(struct gl_context *ctx, struct gl_texture_object *texObj) argument
283 _mesa_clear_texture_object(struct gl_context *ctx, struct gl_texture_object *texObj) argument
661 _mesa_cube_complete(const struct gl_texture_object *texObj) argument
703 _mesa_dirty_texobj(struct gl_context *ctx, struct gl_texture_object *texObj, GLboolean invalidate_state) argument
726 struct gl_texture_object *texObj; local
831 texture_size(const struct gl_texture_object *texObj) argument
857 const struct gl_texture_object *texObj = local
982 struct gl_texture_object *texObj; local
1007 unbind_texobj_from_fbo(struct gl_context *ctx, struct gl_texture_object *texObj) argument
1035 unbind_texobj_from_texunits(struct gl_context *ctx, struct gl_texture_object *texObj) argument
[all...]
H A 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) argument
161 (void) texObj;
165 _mesa_unlock_texture(struct gl_context *ctx, struct gl_texture_object *texObj) argument
167 (void) texObj;
/external/mesa3d/src/mesa/drivers/dri/r200/
H A 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,
H A Dradeon_mipmap_tree.c321 static GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) argument
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);
336 fprintf(stderr, "target %d vs %d\n", mt->target, texObj
369 struct gl_texture_object *texObj = &t->base; local
477 get_biggest_matching_miptree(radeonTexObj *texObj, unsigned firstLevel, unsigned lastLevel) argument
539 radeon_validate_texture_miptree(struct gl_context * ctx, struct gl_sampler_object *samp, struct gl_texture_object *texObj) argument
603 get_base_teximage_offset(radeonTexObj *texObj) argument
[all...]
H A Dradeon_texture.c52 struct gl_texture_object *texObj,
56 struct gl_texture_object *texObj,
547 struct gl_texture_object *texObj,
550 radeonTexObj *t = radeon_tex_obj(texObj);
557 texObj,
561 "%s: texObj %p, texImage %p, "
562 "texObj miptree doesn't match, allocated new miptree %p\n",
563 __FUNCTION__, texObj, texImage, t->mt);
593 struct gl_texture_object *texObj,
598 radeonTexObj *t = radeon_tex_obj(texObj);
546 teximage_assign_miptree(radeonContextPtr rmesa, struct gl_texture_object *texObj, struct gl_texture_image *texImage) argument
592 radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, struct gl_texture_image *texImage, GLeglImageOES image_handle) argument
750 radeon_swrast_map_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj) argument
766 radeon_swrast_unmap_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj) argument
782 radeon_miptree_create_for_teximage(radeonContextPtr rmesa, struct gl_texture_object *texObj, struct gl_texture_image *texImage) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A 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,
H A Dradeon_mipmap_tree.c321 static GLboolean radeon_miptree_matches_texture(radeon_mipmap_tree *mt, struct gl_texture_object *texObj) argument
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);
336 fprintf(stderr, "target %d vs %d\n", mt->target, texObj
369 struct gl_texture_object *texObj = &t->base; local
477 get_biggest_matching_miptree(radeonTexObj *texObj, unsigned firstLevel, unsigned lastLevel) argument
539 radeon_validate_texture_miptree(struct gl_context * ctx, struct gl_sampler_object *samp, struct gl_texture_object *texObj) argument
603 get_base_teximage_offset(radeonTexObj *texObj) argument
[all...]
H A Dradeon_texture.c52 struct gl_texture_object *texObj,
56 struct gl_texture_object *texObj,
547 struct gl_texture_object *texObj,
550 radeonTexObj *t = radeon_tex_obj(texObj);
557 texObj,
561 "%s: texObj %p, texImage %p, "
562 "texObj miptree doesn't match, allocated new miptree %p\n",
563 __FUNCTION__, texObj, texImage, t->mt);
593 struct gl_texture_object *texObj,
598 radeonTexObj *t = radeon_tex_obj(texObj);
546 teximage_assign_miptree(radeonContextPtr rmesa, struct gl_texture_object *texObj, struct gl_texture_image *texImage) argument
592 radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj, struct gl_texture_image *texImage, GLeglImageOES image_handle) argument
750 radeon_swrast_map_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj) argument
766 radeon_swrast_unmap_texture_images(struct gl_context *ctx, struct gl_texture_object *texObj) argument
782 radeon_miptree_create_for_teximage(radeonContextPtr rmesa, struct gl_texture_object *texObj, struct gl_texture_image *texImage) argument
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_texture.c248 _swrast_map_texture(struct gl_context *ctx, struct gl_texture_object *texObj) argument
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) argument
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; local
302 _swrast_map_texture(ctx, texObj);
320 struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; local
334 _swrast_AllocTextureStorage(struct gl_context *ctx, struct gl_texture_object *texObj, GLsizei levels, GLsizei width, GLsizei height, GLsizei depth) argument
[all...]
H A Ds_fragprog.c82 const struct gl_texture_object *texObj = ctx->Texture.Unit[unit]._Current; local
84 if (texObj) {
94 swizzle_texel(rgba, color, texObj->_Swizzle);
116 const struct gl_texture_object *texObj = texUnit->_Current; local
118 if (texObj) {
120 texObj->Image[0][texObj->BaseLevel];
143 swizzle_texel(rgba, color, texObj->_Swizzle);
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj));
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
192 intel_tex_map_images(intel, intel_texture_object(texObj),
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj));
H A Dintel_tex.c44 struct gl_texture_object *texObj)
46 struct intel_texture_object *intelObj = intel_texture_object(texObj);
49 _mesa_delete_texture_object(ctx, texObj);
119 struct gl_texture_object *texObj,
123 const int numFaces = _mesa_num_tex_faces(texObj->Target);
129 struct gl_texture_image *const texImage = texObj->Image[face][level];
43 intelDeleteTextureObject(struct gl_context *ctx, struct gl_texture_object *texObj) argument
118 intel_alloc_texture_storage(struct gl_context *ctx, struct gl_texture_object *texObj, GLsizei levels, GLsizei width, GLsizei height, GLsizei depth) argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj));
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
192 intel_tex_map_images(intel, intel_texture_object(texObj),
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj));
H A Dbrw_wm_sampler_state.c88 struct gl_texture_object *texObj = texUnit->_Current; local
89 struct gl_texture_image *firstImage = texObj->Image[0][texObj->BaseLevel];
167 struct gl_texture_object *texObj = texUnit->_Current; local
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) {
H A Dintel_tex.c44 struct gl_texture_object *texObj)
46 struct intel_texture_object *intelObj = intel_texture_object(texObj);
49 _mesa_delete_texture_object(ctx, texObj);
119 struct gl_texture_object *texObj,
123 const int numFaces = _mesa_num_tex_faces(texObj->Target);
129 struct gl_texture_image *const texImage = texObj->Image[face][level];
43 intelDeleteTextureObject(struct gl_context *ctx, struct gl_texture_object *texObj) argument
118 intel_alloc_texture_storage(struct gl_context *ctx, struct gl_texture_object *texObj, GLsizei levels, GLsizei width, GLsizei height, GLsizei depth) argument
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_span.c159 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
160 intel_tex_unmap_images(intel, intel_texture_object(texObj));
190 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
192 intel_tex_map_images(intel, intel_texture_object(texObj),
210 struct gl_texture_object *texObj = ctx->Texture.Unit[i]._Current; local
212 intel_tex_unmap_images(intel, intel_texture_object(texObj));
H A Dintel_tex.c44 struct gl_texture_object *texObj)
46 struct intel_texture_object *intelObj = intel_texture_object(texObj);
49 _mesa_delete_texture_object(ctx, texObj);
119 struct gl_texture_object *texObj,
123 const int numFaces = _mesa_num_tex_faces(texObj->Target);
129 struct gl_texture_image *const texImage = texObj->Image[face][level];
43 intelDeleteTextureObject(struct gl_context *ctx, struct gl_texture_object *texObj) argument
118 intel_alloc_texture_storage(struct gl_context *ctx, struct gl_texture_object *texObj, GLsizei levels, GLsizei width, GLsizei height, GLsizei depth) argument

Completed in 498 milliseconds

123