/external/mesa3d/src/mesa/state_tracker/ |
D | st_sampler_view.c | 58 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() 155 simple_mtx_unlock(&stObj->validate_mutex); in st_texture_set_sampler_view() 168 const struct st_texture_object *stObj) in st_texture_get_current_sampler_view() argument 170 const struct st_sampler_views *views = p_atomic_read(&stObj->sampler_views); in st_texture_get_current_sampler_view() 188 struct st_texture_object *stObj) in st_texture_release_sampler_view() argument [all …]
|
D | st_cb_texture.c | 180 struct st_texture_object *stObj = st_texture_object(texObj); in st_DeleteTextureObject() local 182 pipe_resource_reference(&stObj->pt, NULL); in st_DeleteTextureObject() 183 st_texture_release_all_sampler_views(st, stObj); in st_DeleteTextureObject() 184 st_texture_free_sampler_views(stObj); in st_DeleteTextureObject() 185 simple_mtx_destroy(&stObj->validate_mutex); in st_DeleteTextureObject() 196 struct st_texture_object *stObj = st_texture_object(texImage->TexObject); in st_FreeTextureImageBuffer() local 217 st_texture_release_all_sampler_views(st, stObj); in st_FreeTextureImageBuffer() 462 allocate_full_mipmap(const struct st_texture_object *stObj, in allocate_full_mipmap() argument 465 switch (stObj->base.Target) { in allocate_full_mipmap() 475 if (stImage->base.Level > 0 || stObj->base.GenerateMipmap) in allocate_full_mipmap() [all …]
|
D | st_atom_texture.c | 67 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() 176 struct st_texture_object *stObj = in update_textures() local 180 if (!stObj) in update_textures() 186 switch (st_get_view_format(stObj)) { in update_textures() [all …]
|
D | st_atom_image.c | 55 struct st_texture_object *stObj = st_texture_object(u->TexObj); in st_convert_image() local 73 if (stObj->base.Target == GL_TEXTURE_BUFFER) { in st_convert_image() 75 st_buffer_object(stObj->base.BufferObject); in st_convert_image() 84 base = stObj->base.BufferOffset; in st_convert_image() 86 size = MIN2(buf->width0 - base, (unsigned)stObj->base.BufferSize); in st_convert_image() 93 !stObj->pt) { in st_convert_image() 98 img->resource = stObj->pt; in st_convert_image() 99 img->u.tex.level = u->Level + stObj->base.MinLevel; in st_convert_image() 100 if (stObj->pt->target == PIPE_TEXTURE_3D) { in st_convert_image() 103 img->u.tex.last_layer = u_minify(stObj->pt->depth0, img->u.tex.level) - 1; in st_convert_image() [all …]
|
D | st_texture.h | 213 struct st_texture_object *stObj = st_texture_object(texObj); in st_get_texobj_resource() local 214 return stObj ? stObj->pt : NULL; in st_get_texobj_resource() 219 st_get_stobj_resource(struct st_texture_object *stObj) in st_get_stobj_resource() argument 221 return stObj ? stObj->pt : NULL; in st_get_stobj_resource() 240 st_get_view_format(struct st_texture_object *stObj) in st_get_view_format() argument 242 if (!stObj) in st_get_view_format() 244 return stObj->surface_based ? stObj->surface_format : stObj->pt->format; in st_get_view_format()
|
D | st_vdpau.c | 188 struct st_texture_object *stObj = st_texture_object(texObj); in st_vdpau_map_surface() local 223 if (!stObj->surface_based) { in st_vdpau_map_surface() 225 stObj->surface_based = GL_TRUE; in st_vdpau_map_surface() 234 pipe_resource_reference(&stObj->pt, res); in st_vdpau_map_surface() 235 st_texture_release_all_sampler_views(st, stObj); in st_vdpau_map_surface() 238 stObj->surface_format = res->format; in st_vdpau_map_surface() 239 stObj->level_override = 0; in st_vdpau_map_surface() 240 stObj->layer_override = layer_override; in st_vdpau_map_surface() 253 struct st_texture_object *stObj = st_texture_object(texObj); in st_vdpau_unmap_surface() local 256 pipe_resource_reference(&stObj->pt, NULL); in st_vdpau_unmap_surface() [all …]
|
D | st_sampler_view.h | 62 struct st_texture_object *stObj); 66 struct st_texture_object *stObj); 69 st_texture_free_sampler_views(struct st_texture_object *stObj); 73 const struct st_texture_object *stObj); 77 struct st_texture_object *stObj, 84 struct st_texture_object *stObj);
|
D | st_cb_eglimage.c | 184 struct st_texture_object *stObj; in st_bind_egl_image() local 196 stObj = st_texture_object(texObj); in st_bind_egl_image() 200 if (!stObj->surface_based) { in st_bind_egl_image() 202 stObj->surface_based = GL_TRUE; in st_bind_egl_image() 229 pipe_resource_reference(&stObj->pt, stimg->texture); in st_bind_egl_image() 230 st_texture_release_all_sampler_views(st, stObj); in st_bind_egl_image() 231 pipe_resource_reference(&stImage->pt, stObj->pt); in st_bind_egl_image() 233 stObj->surface_format = stimg->format; in st_bind_egl_image() 234 stObj->level_override = stimg->level; in st_bind_egl_image() 235 stObj->layer_override = stimg->layer; in st_bind_egl_image()
|
D | st_gen_mipmap.c | 81 struct st_texture_object *stObj = st_texture_object(texObj); in st_generate_mipmap() local 106 stObj->lastLevel = lastLevel; in st_generate_mipmap() 131 pt = stObj->pt; in st_generate_mipmap() 147 if (stObj->surface_based) in st_generate_mipmap() 148 format = stObj->surface_format; in st_generate_mipmap()
|
D | st_texture.c | 254 struct st_texture_object *stObj = in st_texture_image_map() local 264 if (stObj->pt != stImage->pt) in st_texture_image_map() 269 if (stObj->base.Immutable) { in st_texture_image_map() 270 level += stObj->base.MinLevel; in st_texture_image_map() 271 z += stObj->base.MinLayer; in st_texture_image_map() 272 if (stObj->pt->array_size > 1) in st_texture_image_map() 273 d = MIN2(d, stObj->base.NumLayers); in st_texture_image_map() 305 struct st_texture_object *stObj = in st_texture_image_unmap() local 309 if (stObj->base.Immutable) in st_texture_image_unmap() 310 slice += stObj->base.MinLayer; in st_texture_image_unmap()
|
D | st_manager.c | 683 struct st_texture_object *stObj; in st_context_teximage() local 710 stObj = st_texture_object(texObj); in st_context_teximage() 712 if (!stObj->surface_based) { in st_context_teximage() 714 stObj->surface_based = GL_TRUE; in st_context_teximage() 751 pipe_resource_reference(&stObj->pt, tex); in st_context_teximage() 752 st_texture_release_all_sampler_views(st, stObj); in st_context_teximage() 754 stObj->surface_format = pipe_format; in st_context_teximage() 756 stObj->needs_validation = true; in st_context_teximage()
|
D | st_atom_sampler.c | 295 struct st_texture_object *stObj = in update_shader_samplers() local 299 if (!stObj) in update_shader_samplers() 302 switch (st_get_view_format(stObj)) { in update_shader_samplers()
|
D | st_cb_fbo.c | 584 const struct st_texture_object *stObj = st_texture_object(att->Texture); in st_validate_attachment() local 602 if (!stObj || !stObj->pt) in st_validate_attachment() 605 format = stObj->pt->format; in st_validate_attachment() 619 stObj->pt->nr_samples, bindings); in st_validate_attachment()
|
D | st_cb_queryobj.c | 346 struct st_buffer_object *stObj = st_buffer_object(buf); in st_StoreQueryResult() local 360 pipe_buffer_write(pipe, stObj->buffer, offset, in st_StoreQueryResult() 429 stObj->buffer, offset); in st_StoreQueryResult()
|
D | st_program.h | 68 struct st_texture_object *stObj = in st_get_external_sampler_key() local 71 switch (st_get_view_format(stObj)) { in st_get_external_sampler_key()
|
D | st_cb_bitmap.c | 665 struct st_texture_object *stObj = st_texture_object(atlas->texObj); in st_DrawAtlasBitmaps() local 687 sv = st_create_texture_sampler_view(pipe, stObj->pt); in st_DrawAtlasBitmaps()
|