Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_image.c54 struct gl_texture_object *stObj = u->TexObj; in st_convert_image() local
89 if (stObj->Target == GL_TEXTURE_BUFFER) { in st_convert_image()
90 struct gl_buffer_object *stbuf = stObj->BufferObject; in st_convert_image()
99 base = stObj->BufferOffset; in st_convert_image()
101 size = MIN2(buf->width0 - base, (unsigned)stObj->BufferSize); in st_convert_image()
108 !stObj->pt) { in st_convert_image()
113 img->resource = stObj->pt; in st_convert_image()
114 img->u.tex.level = u->Level + stObj->Attrib.MinLevel; in st_convert_image()
116 if (stObj->pt->target == PIPE_TEXTURE_3D) { in st_convert_image()
119 img->u.tex.last_layer = u_minify(stObj->pt->depth0, img->u.tex.level) - 1; in st_convert_image()
[all …]
Dst_atom_texture.c163 struct gl_texture_object *stObj = in st_get_sampler_views() local
167 if (!stObj) in st_get_sampler_views()
174 if (st_get_view_format(stObj) == stObj->pt->format) in st_get_sampler_views()
177 switch (st_get_view_format(stObj)) { in st_get_sampler_views()
179 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) in st_get_sampler_views()
188 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views()
198 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views()
205 pipe->create_sampler_view(pipe, stObj->pt->next, &tmpl); in st_get_sampler_views()
208 pipe->create_sampler_view(pipe, stObj->pt->next->next, &tmpl); in st_get_sampler_views()
211 if (stObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM) in st_get_sampler_views()
[all …]
Dst_sampler_view.c87 struct gl_texture_object *stObj, in st_texture_set_sampler_view() argument
98 simple_mtx_lock(&stObj->validate_mutex); in st_texture_set_sampler_view()
99 views = stObj->sampler_views; in st_texture_set_sampler_view()
157 p_atomic_set(&stObj->sampler_views, new_views); in st_texture_set_sampler_view()
164 views->next = stObj->sampler_views_old; in st_texture_set_sampler_view()
165 stObj->sampler_views_old = views; in st_texture_set_sampler_view()
192 simple_mtx_unlock(&stObj->validate_mutex); in st_texture_set_sampler_view()
205 const struct gl_texture_object *stObj) in st_texture_get_current_sampler_view() argument
207 struct st_sampler_views *views = p_atomic_read(&stObj->sampler_views); in st_texture_get_current_sampler_view()
226 struct gl_texture_object *stObj) in st_texture_release_context_sampler_view() argument
[all …]
Dst_sampler_view.h59 struct gl_texture_object *stObj);
63 struct gl_texture_object *stObj);
67 struct gl_texture_object *stObj);
71 const struct gl_texture_object *stObj);
75 struct gl_texture_object *stObj,
83 struct gl_texture_object *stObj,
Dst_texture.h126 st_get_stobj_resource(struct gl_texture_object *stObj) in st_get_stobj_resource() argument
128 return stObj ? stObj->pt : NULL; in st_get_stobj_resource()
142 st_get_view_format(struct gl_texture_object *stObj) in st_get_view_format() argument
144 if (!stObj) in st_get_view_format()
146 return stObj->surface_based ? stObj->surface_format : stObj->pt->format; in st_get_view_format()
Dst_program.h74 struct gl_texture_object *stObj = in st_get_external_sampler_key() local
76 enum pipe_format format = st_get_view_format(stObj); in st_get_external_sampler_key()
79 if (format == stObj->pt->format) in st_get_external_sampler_key()
84 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) { in st_get_external_sampler_key()
98 if (stObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM) { in st_get_external_sampler_key()
109 if (stObj->pt->format == PIPE_FORMAT_G8R8_B8R8_UNORM) { in st_get_external_sampler_key()
132 switch (stObj->yuv_color_space) { in st_get_external_sampler_key()
143 if (stObj->yuv_full_range) in st_get_external_sampler_key()
Dst_atom_sampler.c226 struct gl_texture_object *stObj = in update_shader_samplers() local
231 if (!stObj || st_get_view_format(stObj) == stObj->pt->format) in update_shader_samplers()
234 switch (st_get_view_format(stObj)) { in update_shader_samplers()
236 if (stObj->pt->format == PIPE_FORMAT_R8_G8B8_420_UNORM) in update_shader_samplers()
248 if (stObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM || in update_shader_samplers()
249 stObj->pt->format == PIPE_FORMAT_G8R8_B8R8_UNORM) { in update_shader_samplers()
Dst_cb_texture.c190 struct gl_texture_object *stObj = texImage->TexObject; in copy_to_staging_dest() local
191 struct pipe_resource *src = stObj->pt; in copy_to_staging_dest()
394 struct gl_texture_object *stObj = texImage->TexObject; in st_FreeTextureImageBuffer() local
417 st_texture_release_all_sampler_views(st, stObj); in st_FreeTextureImageBuffer()
753 allocate_full_mipmap(const struct gl_texture_object *stObj, in allocate_full_mipmap() argument
756 switch (stObj->Target) { in allocate_full_mipmap()
766 if (stImage->Level > 0 || stObj->Attrib.GenerateMipmap) in allocate_full_mipmap()
776 if (stObj->Attrib.MaxLevel < MAX_TEXTURE_LEVELS && in allocate_full_mipmap()
777 stObj->Attrib.MaxLevel - stObj->Attrib.BaseLevel > 0) in allocate_full_mipmap()
785 if (stObj->Attrib.BaseLevel == 0 && stObj->Attrib.MaxLevel == 0) in allocate_full_mipmap()
[all …]
Dst_texture.c257 struct gl_texture_object *stObj = stImage->TexObject; in st_texture_image_map() local
266 if (stObj->pt != stImage->pt) in st_texture_image_map()
271 if (stObj->Immutable) { in st_texture_image_map()
272 level += stObj->Attrib.MinLevel; in st_texture_image_map()
273 z += stObj->Attrib.MinLayer; in st_texture_image_map()
274 if (stObj->pt->array_size > 1) in st_texture_image_map()
275 d = MIN2(d, stObj->Attrib.NumLayers); in st_texture_image_map()
307 struct gl_texture_object *stObj = stImage->TexObject; in st_texture_image_unmap() local
310 if (stObj->Immutable) in st_texture_image_unmap()
311 slice += stObj->Attrib.MinLayer; in st_texture_image_unmap()
Dst_cb_copyimage.c659 struct gl_texture_object *stObj = src_image->TexObject; in st_CopyImageSubData() local
661 src_level = stObj->pt != src_res ? 0 : src_image->Level; in st_CopyImageSubData()
674 struct gl_texture_object *stObj = dst_image->TexObject; in st_CopyImageSubData() local
676 dst_level = stObj->pt != dst_res ? 0 : dst_image->Level; in st_CopyImageSubData()
Dst_context.c948 struct gl_texture_object *stObj = in st_destroy_context() local
950 if (stObj) { in st_destroy_context()
951 st_texture_release_context_sampler_view(st, stObj); in st_destroy_context()
Dst_pbo_compute.c1059 struct gl_texture_object *stObj = texImage->TexObject; in st_GetTexSubImage_shader() local
1063 …unsigned level = (texImage->pt != stObj->pt ? 0 : texImage->Level) + texImage->TexObject->Attrib.M… in st_GetTexSubImage_shader()
1078 …src_format = st_pbo_get_src_format(screen, stObj->surface_based ? stObj->surface_format : src->for… in st_GetTexSubImage_shader()
Dst_cb_bitmap.c653 struct gl_texture_object *stObj = atlas->texObj; in st_DrawAtlasBitmaps() local
675 sv = st_create_texture_sampler_view(pipe, stObj->pt); in st_DrawAtlasBitmaps()
/third_party/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
/third_party/mesa3d/src/mesa/main/
Dfbobject.c1127 const struct gl_texture_object *stObj = att->Texture; in do_validate_attachment() local
1145 if (!stObj || !stObj->pt) in do_validate_attachment()
1148 format = stObj->pt->format; in do_validate_attachment()
1161 stObj->pt->nr_samples, in do_validate_attachment()
1162 stObj->pt->nr_storage_samples, in do_validate_attachment()