Home
last modified time | relevance | path

Searched refs:stObj (Results 1 – 20 of 20) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c58 struct st_texture_object *stObj, in st_texture_set_sampler_view() argument
67 simple_mtx_lock(&stObj->validate_mutex); in st_texture_set_sampler_view()
68 views = stObj->sampler_views; in st_texture_set_sampler_view()
125 p_atomic_set(&stObj->sampler_views, new_views); in st_texture_set_sampler_view()
132 views->next = stObj->sampler_views_old; in st_texture_set_sampler_view()
133 stObj->sampler_views_old = views; in st_texture_set_sampler_view()
156 simple_mtx_unlock(&stObj->validate_mutex); in st_texture_set_sampler_view()
169 const struct st_texture_object *stObj) in st_texture_get_current_sampler_view() argument
171 const struct st_sampler_views *views = p_atomic_read(&stObj->sampler_views); in st_texture_get_current_sampler_view()
190 struct st_texture_object *stObj) in st_texture_release_context_sampler_view() argument
[all …]
Dst_atom_texture.c67 struct st_texture_object *stObj; in st_update_single_texture() local
74 stObj = st_texture_object(texObj); in st_update_single_texture()
77 *sampler_view = st_get_buffer_sampler_view_from_stobj(st, stObj); in st_update_single_texture()
82 !stObj->pt) { in st_update_single_texture()
89 stObj->pt->screen->resource_changed) in st_update_single_texture()
90 stObj->pt->screen->resource_changed(stObj->pt->screen, stObj->pt); in st_update_single_texture()
93 st_get_texture_sampler_view_from_stobj(st, stObj, samp, in st_update_single_texture()
175 struct st_texture_object *stObj = in update_textures() local
179 if (!stObj) in update_textures()
186 if (st_get_view_format(stObj) == stObj->pt->format) in update_textures()
[all …]
Dst_cb_texture.c190 struct st_texture_object *stObj = st_texture_object(texObj); in st_DeleteTextureObject() local
192 pipe_resource_reference(&stObj->pt, NULL); in st_DeleteTextureObject()
193 st_delete_texture_sampler_views(st, stObj); in st_DeleteTextureObject()
194 simple_mtx_destroy(&stObj->validate_mutex); in st_DeleteTextureObject()
210 struct st_texture_object *stObj = st_texture_object(texObj); in st_TextureReleaseAllSamplerViews() local
212 st_texture_release_all_sampler_views(st, stObj); in st_TextureReleaseAllSamplerViews()
221 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); in st_FreeTextureImageBuffer() local
244 st_texture_release_all_sampler_views(st, stObj); in st_FreeTextureImageBuffer()
536 allocate_full_mipmap(const struct st_texture_object *stObj, in allocate_full_mipmap() argument
539 switch (stObj->base.Target) { in allocate_full_mipmap()
[all …]
Dst_atom_image.c55 struct st_texture_object *stObj = st_texture_object(u->TexObj); in st_convert_image() local
90 if (stObj->base.Target == GL_TEXTURE_BUFFER) { in st_convert_image()
92 st_buffer_object(stObj->base.BufferObject); in st_convert_image()
101 base = stObj->base.BufferOffset; in st_convert_image()
103 size = MIN2(buf->width0 - base, (unsigned)stObj->base.BufferSize); in st_convert_image()
110 !stObj->pt) { in st_convert_image()
115 img->resource = stObj->pt; in st_convert_image()
116 img->u.tex.level = u->Level + stObj->base.MinLevel; in st_convert_image()
118 if (stObj->pt->target == PIPE_TEXTURE_3D) { in st_convert_image()
121 img->u.tex.last_layer = u_minify(stObj->pt->depth0, img->u.tex.level) - 1; in st_convert_image()
[all …]
Dst_texture.h227 struct st_texture_object *stObj = st_texture_object(texObj); in st_get_texobj_resource() local
228 return stObj ? stObj->pt : NULL; in st_get_texobj_resource()
233 st_get_stobj_resource(struct st_texture_object *stObj) in st_get_stobj_resource() argument
235 return stObj ? stObj->pt : NULL; in st_get_stobj_resource()
254 st_get_view_format(struct st_texture_object *stObj) in st_get_view_format() argument
256 if (!stObj) in st_get_view_format()
258 return stObj->surface_based ? stObj->surface_format : stObj->pt->format; in st_get_view_format()
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);
Dst_vdpau.c189 struct st_texture_object *stObj = st_texture_object(texObj); in st_vdpau_map_surface() local
235 if (!stObj->surface_based) { in st_vdpau_map_surface()
237 stObj->surface_based = GL_TRUE; in st_vdpau_map_surface()
246 pipe_resource_reference(&stObj->pt, res); in st_vdpau_map_surface()
247 st_texture_release_all_sampler_views(st, stObj); in st_vdpau_map_surface()
250 stObj->surface_format = res->format; in st_vdpau_map_surface()
251 stObj->level_override = -1; in st_vdpau_map_surface()
252 stObj->layer_override = layer_override; in st_vdpau_map_surface()
265 struct st_texture_object *stObj = st_texture_object(texObj); in st_vdpau_unmap_surface() local
268 pipe_resource_reference(&stObj->pt, NULL); in st_vdpau_unmap_surface()
[all …]
Dst_gen_mipmap.c57 struct st_texture_object *stObj = st_texture_object(texObj); in st_generate_mipmap() local
88 stObj->lastLevel = lastLevel; in st_generate_mipmap()
113 pt = stObj->pt; in st_generate_mipmap()
129 if (stObj->surface_based) in st_generate_mipmap()
130 format = stObj->surface_format; in st_generate_mipmap()
Dst_cb_eglimage.c245 struct st_texture_object *stObj; in st_bind_egl_image() local
257 stObj = st_texture_object(texObj); in st_bind_egl_image()
261 if (!stObj->surface_based) { in st_bind_egl_image()
263 stObj->surface_based = GL_TRUE; in st_bind_egl_image()
332 pipe_resource_reference(&stObj->pt, stimg->texture); in st_bind_egl_image()
333 st_texture_release_all_sampler_views(st, stObj); in st_bind_egl_image()
334 pipe_resource_reference(&stImage->pt, stObj->pt); in st_bind_egl_image()
338 stObj->surface_format = stimg->format; in st_bind_egl_image()
339 stObj->level_override = stimg->level; in st_bind_egl_image()
340 stObj->layer_override = stimg->layer; in st_bind_egl_image()
Dst_texture.c255 struct st_texture_object *stObj = in st_texture_image_map() local
265 if (stObj->pt != stImage->pt) in st_texture_image_map()
270 if (stObj->base.Immutable) { in st_texture_image_map()
271 level += stObj->base.MinLevel; in st_texture_image_map()
272 z += stObj->base.MinLayer; in st_texture_image_map()
273 if (stObj->pt->array_size > 1) in st_texture_image_map()
274 d = MIN2(d, stObj->base.NumLayers); in st_texture_image_map()
306 struct st_texture_object *stObj = in st_texture_image_unmap() local
310 if (stObj->base.Immutable) in st_texture_image_unmap()
311 slice += stObj->base.MinLayer; in st_texture_image_unmap()
Dst_program.h73 struct st_texture_object *stObj = in st_get_external_sampler_key() local
75 enum pipe_format format = st_get_view_format(stObj); in st_get_external_sampler_key()
78 if (format == stObj->pt->format) in st_get_external_sampler_key()
83 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) { in st_get_external_sampler_key()
Dst_atom_sampler.c308 struct st_texture_object *stObj = in update_shader_samplers() local
313 if (!stObj || st_get_view_format(stObj) == stObj->pt->format) in update_shader_samplers()
316 switch (st_get_view_format(stObj)) { in update_shader_samplers()
318 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) in update_shader_samplers()
Dst_manager.c706 struct st_texture_object *stObj; in st_context_teximage() local
733 stObj = st_texture_object(texObj); in st_context_teximage()
735 if (!stObj->surface_based) { in st_context_teximage()
737 stObj->surface_based = GL_TRUE; in st_context_teximage()
774 pipe_resource_reference(&stObj->pt, tex); in st_context_teximage()
775 st_texture_release_all_sampler_views(st, stObj); in st_context_teximage()
777 stObj->surface_format = pipe_format; in st_context_teximage()
779 stObj->needs_validation = true; in st_context_teximage()
Dst_cb_fbo.c650 const struct st_texture_object *stObj = st_texture_object(att->Texture); in st_validate_attachment() local
668 if (!stObj || !stObj->pt) in st_validate_attachment()
671 format = stObj->pt->format; in st_validate_attachment()
684 stObj->pt->nr_samples, in st_validate_attachment()
685 stObj->pt->nr_storage_samples, in st_validate_attachment()
Dst_cb_queryobj.c396 struct st_buffer_object *stObj = st_buffer_object(buf); in st_StoreQueryResult() local
410 pipe_buffer_write(pipe, stObj->buffer, offset, in st_StoreQueryResult()
479 stObj->buffer, offset); in st_StoreQueryResult()
Dst_cb_copyimage.c648 struct st_texture_object *stObj = st_texture_object(src_image->TexObject); in st_CopyImageSubData() local
650 src_level = stObj->pt != src_res ? 0 : src_image->Level; in st_CopyImageSubData()
664 struct st_texture_object *stObj = st_texture_object(dst_image->TexObject); in st_CopyImageSubData() local
666 dst_level = stObj->pt != dst_res ? 0 : dst_image->Level; in st_CopyImageSubData()
Dst_context.c1109 struct st_texture_object *stObj = in st_destroy_context() local
1111 if (stObj) { in st_destroy_context()
1112 st_texture_release_context_sampler_view(st, stObj); in st_destroy_context()
Dst_cb_bitmap.c654 struct st_texture_object *stObj = st_texture_object(atlas->texObj); in st_DrawAtlasBitmaps() local
676 sv = st_create_texture_sampler_view(pipe, stObj->pt); in st_DrawAtlasBitmaps()
/external/mesa3d/docs/relnotes/
D9.2.1.rst94 - st/mesa: don't dereference stObj->pt if NULL
D8.0.4.rst176 - st/mesa: set stObj->lastLevel in guess_and_alloc_texture