/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_image.c | 54 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 …]
|
D | st_atom_texture.c | 163 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 …]
|
D | st_sampler_view.c | 87 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 …]
|
D | st_sampler_view.h | 59 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,
|
D | st_texture.h | 126 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()
|
D | st_program.h | 74 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()
|
D | st_atom_sampler.c | 226 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()
|
D | st_cb_texture.c | 190 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 …]
|
D | st_texture.c | 257 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()
|
D | st_cb_copyimage.c | 659 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()
|
D | st_context.c | 948 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()
|
D | st_pbo_compute.c | 1059 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()
|
D | st_cb_bitmap.c | 653 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/ |
D | 9.2.1.rst | 94 - st/mesa: don't dereference stObj->pt if NULL
|
D | 8.0.4.rst | 176 - st/mesa: set stObj->lastLevel in guess_and_alloc_texture
|
/third_party/mesa3d/src/mesa/main/ |
D | fbobject.c | 1127 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()
|