Searched refs:stObj (Results 1 - 25 of 37) sorted by relevance

12

/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_sampler_view.c88 struct st_texture_object *stObj,
98 simple_mtx_lock(&stObj->validate_mutex);
99 views = stObj->sampler_views;
157 p_atomic_set(&stObj->sampler_views, new_views);
164 views->next = stObj->sampler_views_old;
165 stObj->sampler_views_old = views;
191 simple_mtx_unlock(&stObj->validate_mutex);
197 * Return the most-recently validated sampler view for the texture \p stObj
204 const struct st_texture_object *stObj)
206 struct st_sampler_views *views = p_atomic_read(&stObj
87 st_texture_set_sampler_view(struct st_context * st,struct st_texture_object * stObj,struct pipe_sampler_view * view,bool glsl130_or_later,bool srgb_skip_decode,bool get_reference) argument
203 st_texture_get_current_sampler_view(const struct st_context * st,const struct st_texture_object * stObj) argument
224 st_texture_release_context_sampler_view(struct st_context * st,struct st_texture_object * stObj) argument
250 st_texture_release_all_sampler_views(struct st_context * st,struct st_texture_object * stObj) argument
288 st_delete_texture_sampler_views(struct st_context * st,struct st_texture_object * stObj) argument
431 get_texture_format_swizzle(const struct st_context * st,const struct st_texture_object * stObj,bool glsl130_or_later) argument
469 check_sampler_swizzle(const struct st_context * st,const struct st_texture_object * stObj,const struct pipe_sampler_view * sv,bool glsl130_or_later) argument
484 last_level(const struct st_texture_object * stObj) argument
496 last_layer(const struct st_texture_object * stObj) argument
510 get_sampler_view_format(struct st_context * st,const struct st_texture_object * stObj,bool srgb_skip_decode) argument
587 st_create_texture_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj,enum pipe_format format,bool glsl130_or_later) argument
624 st_get_texture_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj,const struct gl_sampler_object * samp,bool glsl130_or_later,bool ignore_srgb_decode,bool get_reference) argument
680 st_get_buffer_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj,bool get_reference) argument
[all...]
H A Dst_sampler_view.h62 struct st_texture_object *stObj);
66 struct st_texture_object *stObj);
70 struct st_texture_object *stObj);
74 const struct st_texture_object *stObj);
78 struct st_texture_object *stObj,
86 struct st_texture_object *stObj,
H A Dst_atom_texture.c65 struct st_texture_object *stObj; local in function:st_update_single_texture
70 stObj = st_texture_object(texObj);
74 return st_get_buffer_sampler_view_from_stobj(st, stObj, get_reference);
76 if (!st_finalize_texture(ctx, st->pipe, texObj, 0) || !stObj->pt)
80 stObj->pt->screen->resource_changed)
81 stObj->pt->screen->resource_changed(stObj->pt->screen, stObj->pt);
83 return st_get_texture_sampler_view_from_stobj(st, stObj,
157 * Trying to cache the sampler view in the stObj look
165 struct st_texture_object *stObj = local in function:st_get_sampler_views
[all...]
H A Dst_texture.h245 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_get_texobj_resource
246 return stObj ? stObj->pt : NULL;
251 st_get_stobj_resource(struct st_texture_object *stObj) argument
253 return stObj ? stObj->pt : NULL;
272 st_get_view_format(struct st_texture_object *stObj) argument
274 if (!stObj)
276 return stObj->surface_based ? stObj
[all...]
H A Dst_gen_mipmap.c57 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_generate_mipmap
88 stObj->lastLevel = lastLevel;
113 pt = stObj->pt;
129 if (stObj->surface_based)
130 format = stObj->surface_format;
H A Dst_atom_image.c55 struct st_texture_object *stObj = st_texture_object(u->TexObj); local in function:st_convert_image
90 if (stObj->base.Target == GL_TEXTURE_BUFFER) {
92 st_buffer_object(stObj->base.BufferObject);
101 base = stObj->base.BufferOffset;
103 size = MIN2(buf->width0 - base, (unsigned)stObj->base.BufferSize);
110 !stObj->pt) {
115 img->resource = stObj->pt;
116 img->u.tex.level = u->Level + stObj->base.Attrib.MinLevel;
118 if (stObj->pt->target == PIPE_TEXTURE_3D) {
121 img->u.tex.last_layer = u_minify(stObj
[all...]
H A Dst_vdpau.c192 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_vdpau_map_surface
239 if (!stObj->surface_based) {
241 stObj->surface_based = GL_TRUE;
250 pipe_resource_reference(&stObj->pt, res);
251 st_texture_release_all_sampler_views(st, stObj);
254 stObj->surface_format = res->format;
255 stObj->level_override = -1;
256 stObj->layer_override = layer_override;
269 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_vdpau_unmap_surface
272 pipe_resource_reference(&stObj
[all...]
H A Dst_cb_texture.c189 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:copy_to_staging_dest
190 struct pipe_resource *src = stObj->pt;
445 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_DeleteTextureObject
447 pipe_resource_reference(&stObj->pt, NULL);
448 st_delete_texture_sampler_views(st, stObj);
449 simple_mtx_destroy(&stObj->validate_mutex);
465 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_TextureReleaseAllSamplerViews
467 st_texture_release_all_sampler_views(st, stObj);
476 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_FreeTextureImageBuffer
499 st_texture_release_all_sampler_views(st, stObj);
841 allocate_full_mipmap(const struct st_texture_object * stObj,const struct st_texture_image * stImage) argument
910 guess_and_alloc_texture(struct st_context * st,struct st_texture_object * stObj,const struct st_texture_image * stImage) argument
1016 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_AllocTextureImageBuffer
1106 struct st_texture_object *stObj = st_texture_object(texObj); local in function:prep_teximage
1684 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:try_pbo_upload
1973 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_TexSubImage
2305 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_CompressedTexSubImage
2495 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_GetTexSubImage
2825 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_CopyTexSubImage
2931 copy_image_data_to_texture(struct st_context * st,struct st_texture_object * stObj,GLuint dstLevel,struct st_texture_image * stImage) argument
2986 struct st_texture_object *stObj = st_texture_object(tObj); local in function:st_finalize_texture
3262 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_texture_storage
3594 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_TexParameter
3638 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_NewTextureHandle
[all...]
H A Dst_atom_sampler.c222 struct st_texture_object *stObj = local in function:update_shader_samplers
227 if (!stObj || st_get_view_format(stObj) == stObj->pt->format)
230 switch (st_get_view_format(stObj)) {
232 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM)
244 if (stObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM ||
245 stObj->pt->format == PIPE_FORMAT_G8R8_B8R8_UNORM) {
H A Dst_program.h73 struct st_texture_object *stObj = local in function:st_get_external_sampler_key
75 enum pipe_format format = st_get_view_format(stObj);
78 if (format == stObj->pt->format)
83 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) {
97 if (stObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM) {
108 if (stObj->pt->format == PIPE_FORMAT_G8R8_B8R8_UNORM) {
H A Dst_cb_eglimage.c273 struct st_texture_object *stObj; local in function:st_bind_egl_image
285 stObj = st_texture_object(texObj);
289 if (!stObj->surface_based) {
291 stObj->surface_based = GL_TRUE;
385 pipe_resource_reference(&stObj->pt, stimg->texture);
386 st_texture_release_all_sampler_views(st, stObj);
387 pipe_resource_reference(&stImage->pt, stObj->pt);
391 stObj->surface_format = stimg->format;
392 stObj->level_override = stimg->level;
393 stObj
[all...]
H A Dst_texture.c257 struct st_texture_object *stObj = local in function:st_texture_image_map
267 if (stObj->pt != stImage->pt)
272 if (stObj->base.Immutable) {
273 level += stObj->base.Attrib.MinLevel;
274 z += stObj->base.Attrib.MinLayer;
275 if (stObj->pt->array_size > 1)
276 d = MIN2(d, stObj->base.Attrib.NumLayers);
308 struct st_texture_object *stObj = local in function:st_texture_image_unmap
312 if (stObj->base.Immutable)
313 slice += stObj
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_sampler_view.c58 struct st_texture_object *stObj,
67 simple_mtx_lock(&stObj->validate_mutex);
68 views = stObj->sampler_views;
125 p_atomic_set(&stObj->sampler_views, new_views);
132 views->next = stObj->sampler_views_old;
133 stObj->sampler_views_old = views;
156 simple_mtx_unlock(&stObj->validate_mutex);
162 * Return the most-recently validated sampler view for the texture \p stObj
169 const struct st_texture_object *stObj)
171 const struct st_sampler_views *views = p_atomic_read(&stObj
57 st_texture_set_sampler_view(struct st_context * st,struct st_texture_object * stObj,struct pipe_sampler_view * view,bool glsl130_or_later,bool srgb_skip_decode) argument
168 st_texture_get_current_sampler_view(const struct st_context * st,const struct st_texture_object * stObj) argument
189 st_texture_release_context_sampler_view(struct st_context * st,struct st_texture_object * stObj) argument
214 st_texture_release_all_sampler_views(struct st_context * st,struct st_texture_object * stObj) argument
250 st_delete_texture_sampler_views(struct st_context * st,struct st_texture_object * stObj) argument
393 get_texture_format_swizzle(const struct st_context * st,const struct st_texture_object * stObj,bool glsl130_or_later) argument
431 check_sampler_swizzle(const struct st_context * st,const struct st_texture_object * stObj,const struct pipe_sampler_view * sv,bool glsl130_or_later) argument
446 last_level(const struct st_texture_object * stObj) argument
457 last_layer(const struct st_texture_object * stObj) argument
470 get_sampler_view_format(struct st_context * st,const struct st_texture_object * stObj,bool srgb_skip_decode) argument
506 st_create_texture_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj,enum pipe_format format,bool glsl130_or_later) argument
543 st_get_texture_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj,const struct gl_sampler_object * samp,bool glsl130_or_later,bool ignore_srgb_decode) argument
594 st_get_buffer_sampler_view_from_stobj(struct st_context * st,struct st_texture_object * stObj) argument
[all...]
H A Dst_sampler_view.h62 struct st_texture_object *stObj);
66 struct st_texture_object *stObj);
70 struct st_texture_object *stObj);
74 const struct st_texture_object *stObj);
78 struct st_texture_object *stObj,
85 struct st_texture_object *stObj);
H A Dst_texture.h221 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_get_texobj_resource
222 return stObj ? stObj->pt : NULL;
227 st_get_stobj_resource(struct st_texture_object *stObj) argument
229 return stObj ? stObj->pt : NULL;
248 st_get_view_format(struct st_texture_object *stObj) argument
250 if (!stObj)
252 return stObj->surface_based ? stObj
[all...]
H A Dst_gen_mipmap.c57 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_generate_mipmap
82 stObj->lastLevel = lastLevel;
107 pt = stObj->pt;
123 if (stObj->surface_based)
124 format = stObj->surface_format;
H A Dst_atom_texture.c67 struct st_texture_object *stObj; local in function:st_update_single_texture
74 stObj = st_texture_object(texObj);
77 *sampler_view = st_get_buffer_sampler_view_from_stobj(st, stObj);
82 !stObj->pt) {
89 stObj->pt->screen->resource_changed)
90 stObj->pt->screen->resource_changed(stObj->pt->screen, stObj->pt);
93 st_get_texture_sampler_view_from_stobj(st, stObj, samp,
167 * Trying to cache the sampler view in the stObj look
175 struct st_texture_object *stObj = local in function:update_textures
[all...]
H A Dst_atom_image.c55 struct st_texture_object *stObj = st_texture_object(u->TexObj); local in function:st_convert_image
90 if (stObj->base.Target == GL_TEXTURE_BUFFER) {
92 st_buffer_object(stObj->base.BufferObject);
101 base = stObj->base.BufferOffset;
103 size = MIN2(buf->width0 - base, (unsigned)stObj->base.BufferSize);
110 !stObj->pt) {
115 img->resource = stObj->pt;
116 img->u.tex.level = u->Level + stObj->base.MinLevel;
118 if (stObj->pt->target == PIPE_TEXTURE_3D) {
121 img->u.tex.last_layer = u_minify(stObj
[all...]
H A Dst_vdpau.c188 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_vdpau_map_surface
223 if (!stObj->surface_based) {
225 stObj->surface_based = GL_TRUE;
234 pipe_resource_reference(&stObj->pt, res);
235 st_texture_release_all_sampler_views(st, stObj);
238 stObj->surface_format = res->format;
239 stObj->level_override = 0;
240 stObj->layer_override = layer_override;
253 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_vdpau_unmap_surface
256 pipe_resource_reference(&stObj
[all...]
H A Dst_cb_eglimage.c178 struct st_texture_object *stObj; local in function:st_bind_egl_image
190 stObj = st_texture_object(texObj);
194 if (!stObj->surface_based) {
196 stObj->surface_based = GL_TRUE;
223 pipe_resource_reference(&stObj->pt, stimg->texture);
224 st_texture_release_all_sampler_views(st, stObj);
225 pipe_resource_reference(&stImage->pt, stObj->pt);
229 stObj->surface_format = stimg->format;
230 stObj->level_override = stimg->level;
231 stObj
[all...]
H A Dst_cb_texture.c187 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_DeleteTextureObject
189 pipe_resource_reference(&stObj->pt, NULL);
190 st_delete_texture_sampler_views(st, stObj);
191 simple_mtx_destroy(&stObj->validate_mutex);
202 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_FreeTextureImageBuffer
223 st_texture_release_all_sampler_views(st, stObj);
493 * \param stObj the texture object we're going to allocate memory for.
497 allocate_full_mipmap(const struct st_texture_object *stObj, argument
500 switch (stObj->base.Target) {
510 if (stImage->base.Level > 0 || stObj
543 guess_and_alloc_texture(struct st_context * st,struct st_texture_object * stObj,const struct st_texture_image * stImage) argument
649 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_AllocTextureImageBuffer
735 struct st_texture_object *stObj = st_texture_object(texObj); local in function:prep_teximage
1306 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:try_pbo_upload
1420 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_TexSubImage
1724 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_CompressedTexSubImage
1907 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_GetTexSubImage
2428 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); local in function:st_CopyTexSubImage
2533 copy_image_data_to_texture(struct st_context * st,struct st_texture_object * stObj,GLuint dstLevel,struct st_texture_image * stImage) argument
2588 struct st_texture_object *stObj = st_texture_object(tObj); local in function:st_finalize_texture
2860 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_texture_storage
3170 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_TexParameter
3213 struct st_texture_object *stObj = st_texture_object(texObj); local in function:st_NewTextureHandle
[all...]
H A Dst_texture.c255 struct st_texture_object *stObj = local in function:st_texture_image_map
265 if (stObj->pt != stImage->pt)
270 if (stObj->base.Immutable) {
271 level += stObj->base.MinLevel;
272 z += stObj->base.MinLayer;
273 if (stObj->pt->array_size > 1)
274 d = MIN2(d, stObj->base.NumLayers);
306 struct st_texture_object *stObj = local in function:st_texture_image_unmap
310 if (stObj->base.Immutable)
311 slice += stObj
[all...]
H A Dst_atom_sampler.c303 struct st_texture_object *stObj = local in function:update_shader_samplers
307 if (!stObj)
310 switch (st_get_view_format(stObj)) {
H A Dst_cb_queryobj.c389 struct st_buffer_object *stObj = st_buffer_object(buf); local in function:st_StoreQueryResult
403 pipe_buffer_write(pipe, stObj->buffer, offset,
472 stObj->buffer, offset);
H A Dst_manager.c703 struct st_texture_object *stObj; local in function:st_context_teximage
730 stObj = st_texture_object(texObj);
732 if (!stObj->surface_based) {
734 stObj->surface_based = GL_TRUE;
771 pipe_resource_reference(&stObj->pt, tex);
772 st_texture_release_all_sampler_views(st, stObj);
774 stObj->surface_format = pipe_format;
776 stObj->needs_validation = true;

Completed in 23 milliseconds

12