/third_party/libsnd/src/ |
H A D | sd2.c | 92 static int parse_str_rsrc (SF_PRIVATE *psf, SD2_RSRC * rsrc) ; 112 { psf_log_printf (psf, "sd2_open : psf->rsrc.filedes < 0\n") ; in sd2_open() 132 { psf->rsrc.mode = psf->file.mode ; in sd2_open() 192 { SD2_RSRC rsrc ; in sd2_write_rsrc_fork() local 204 memset (&rsrc, 0, sizeof (rsrc)) ; in sd2_write_rsrc_fork() 206 rsrc.sample_rate = psf->sf.samplerate ; in sd2_write_rsrc_fork() 207 rsrc.sample_size = psf->bytewidth ; in sd2_write_rsrc_fork() 208 rsrc.channels = psf->sf.channels ; in sd2_write_rsrc_fork() 210 rsrc in sd2_write_rsrc_fork() 371 { SD2_RSRC rsrc ; sd2_parse_rsrc_fork() local 510 parse_str_rsrc(SF_PRIVATE *psf, SD2_RSRC * rsrc) parse_str_rsrc() argument [all...] |
H A D | file_io.c | 159 if (psf->rsrc.filedes > 0) in psf_open_rsrc() 163 count = snprintf (psf->rsrc.path, sizeof (psf->rsrc.path), "%s/..namedfork/rsrc", psf->file.path) ; in psf_open_rsrc() 165 if (count < sizeof (psf->rsrc.path)) in psf_open_rsrc() 166 { if ((psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0) in psf_open_rsrc() 167 { psf->rsrclength = psf_get_filelen_fd (psf->rsrc.filedes) ; in psf_open_rsrc() 168 if (psf->rsrclength > 0 || (psf->rsrc.mode & SFM_WRITE)) in psf_open_rsrc() 170 psf_close_fd (psf->rsrc in psf_open_rsrc() [all...] |
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
H A D | pan_resource.c | 145 struct panfrost_resource *rsrc; in panfrost_resource_get_handle() local 158 rsrc = pan_resource(cur); in panfrost_resource_get_handle() 159 scanout = rsrc->scanout; in panfrost_resource_get_handle() 161 handle->modifier = rsrc->image.layout.modifier; in panfrost_resource_get_handle() 162 rsrc->modifier_constant = true; in panfrost_resource_get_handle() 167 handle->handle = rsrc->image.data.bo->gem_handle; in panfrost_resource_get_handle() 169 int fd = panfrost_bo_export(rsrc->image.data.bo); in panfrost_resource_get_handle() 180 handle->stride = panfrost_get_legacy_stride(&rsrc->image.layout, 0); in panfrost_resource_get_handle() 181 handle->offset = rsrc->image.layout.slices[0].offset; in panfrost_resource_get_handle() 192 struct panfrost_resource *rsrc in panfrost_resource_get_param() local 771 struct panfrost_resource *rsrc = (struct panfrost_resource *) pt; panfrost_resource_destroy() local 881 panfrost_load_tiled_images(struct panfrost_transfer *transfer, struct panfrost_resource *rsrc) panfrost_load_tiled_images() argument 914 panfrost_store_tiled_images(struct panfrost_transfer *transfer, struct panfrost_resource *rsrc) panfrost_store_tiled_images() argument 959 struct panfrost_resource *rsrc = pan_resource(resource); panfrost_ptr_map() local 1167 pan_resource_modifier_convert(struct panfrost_context *ctx, struct panfrost_resource *rsrc, uint64_t modifier, const char *reason) pan_resource_modifier_convert() argument 1222 pan_legalize_afbc_format(struct panfrost_context *ctx, struct panfrost_resource *rsrc, enum pipe_format format) pan_legalize_afbc_format() argument 1391 struct panfrost_resource *rsrc = pan_resource(prsrc); panfrost_invalidate_resource() local 1408 panfrost_resource_get_internal_format(struct pipe_resource *rsrc) panfrost_resource_get_internal_format() argument 1424 struct panfrost_resource *rsrc = pan_resource(prsrc); panfrost_generate_mipmap() local [all...] |
H A D | pan_helpers.c | 96 struct panfrost_resource *rsrc = pan_resource(info->index.resource); in panfrost_get_index_buffer() local 101 panfrost_batch_read_rsrc(batch, rsrc, PIPE_SHADER_VERTEX); in panfrost_get_index_buffer() 102 return rsrc->image.data.bo->ptr.gpu + offset; in panfrost_get_index_buffer() 129 struct panfrost_resource *rsrc = pan_resource(info->index.resource); in panfrost_get_index_buffer_bounded() local 139 needs_indices = !panfrost_minmax_cache_get(rsrc->index_cache, in panfrost_get_index_buffer_bounded() 151 panfrost_minmax_cache_add(rsrc->index_cache, in panfrost_get_index_buffer_bounded() 244 struct panfrost_resource *rsrc = pan_resource(image->resource); in panfrost_track_image_access() local 247 panfrost_batch_write_rsrc(batch, rsrc, stage); in panfrost_track_image_access() 249 bool is_buffer = rsrc->base.target == PIPE_BUFFER; in panfrost_track_image_access() 251 BITSET_SET(rsrc in panfrost_track_image_access() [all...] |
H A D | pan_job.c | 57 struct panfrost_resource *rsrc = pan_resource(surf->texture); in panfrost_batch_add_surface() local 58 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_FRAGMENT); in panfrost_batch_add_surface() 126 struct panfrost_resource *rsrc = (void *) entry->key; in panfrost_batch_cleanup() local 128 if (_mesa_hash_table_search(ctx->writers, rsrc)) { in panfrost_batch_cleanup() 129 _mesa_hash_table_remove_key(ctx->writers, rsrc); in panfrost_batch_cleanup() 130 rsrc->track.nr_writers--; in panfrost_batch_cleanup() 133 rsrc->track.nr_users--; in panfrost_batch_cleanup() 135 pipe_resource_reference((struct pipe_resource **) &rsrc, NULL); in panfrost_batch_cleanup() 236 struct panfrost_resource *rsrc, bool writes) in panfrost_batch_update_access() 240 struct hash_entry *entry = _mesa_hash_table_search(ctx->writers, rsrc); in panfrost_batch_update_access() 235 panfrost_batch_update_access(struct panfrost_batch *batch, struct panfrost_resource *rsrc, bool writes) panfrost_batch_update_access() argument 330 panfrost_batch_read_rsrc(struct panfrost_batch *batch, struct panfrost_resource *rsrc, enum pipe_shader_type stage) panfrost_batch_read_rsrc() argument 349 panfrost_batch_write_rsrc(struct panfrost_batch *batch, struct panfrost_resource *rsrc, enum pipe_shader_type stage) panfrost_batch_write_rsrc() argument 368 panfrost_resource_swap_bo(struct panfrost_context *ctx, struct panfrost_resource *rsrc, struct panfrost_bo *newbo) panfrost_resource_swap_bo() argument 879 panfrost_flush_writer(struct panfrost_context *ctx, struct panfrost_resource *rsrc, const char *reason) panfrost_flush_writer() argument 892 panfrost_flush_batches_accessing_rsrc(struct panfrost_context *ctx, struct panfrost_resource *rsrc, const char *reason) panfrost_flush_batches_accessing_rsrc() argument [all...] |
H A D | pan_compute.c | 120 struct panfrost_resource *rsrc = pan_resource(resources[i]); in panfrost_set_global_binding() local 121 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_COMPUTE); in panfrost_set_global_binding() 123 util_range_add(&rsrc->base, &rsrc->valid_buffer_range, in panfrost_set_global_binding() 124 0, rsrc->base.width0); in panfrost_set_global_binding() 134 addr += rsrc->image.data.bo->ptr.gpu; in panfrost_set_global_binding()
|
H A D | pan_job.h | 214 struct panfrost_resource *rsrc, 219 struct panfrost_resource *rsrc, 224 struct panfrost_resource *rsrc, 237 struct panfrost_resource *rsrc, 242 struct panfrost_resource *rsrc,
|
H A D | pan_resource.h | 108 struct pipe_resource *rsrc; member 168 struct panfrost_resource *rsrc, 173 struct panfrost_resource *rsrc,
|
H A D | pan_cmdstream.c | 880 struct panfrost_resource *rsrc = pan_resource(prsrc); in panfrost_emit_vertex_buffers() local 883 panfrost_batch_read_rsrc(batch, rsrc, PIPE_SHADER_VERTEX); in panfrost_emit_vertex_buffers() 886 cfg.address = rsrc->image.data.bo->ptr.gpu + in panfrost_emit_vertex_buffers() 1023 struct panfrost_resource *rsrc = pan_resource(cb->buffer); in panfrost_map_constant_buffer_gpu() local 1025 if (rsrc) { in panfrost_map_constant_buffer_gpu() 1026 panfrost_batch_read_rsrc(batch, rsrc, st); in panfrost_map_constant_buffer_gpu() 1030 return rsrc->image.data.bo->ptr.gpu + cb->buffer_offset; in panfrost_map_constant_buffer_gpu() 1165 struct panfrost_resource *rsrc = pan_resource(sb.buffer); in panfrost_upload_ssbo_sysval() local 1166 struct panfrost_bo *bo = rsrc->image.data.bo; in panfrost_upload_ssbo_sysval() 1168 panfrost_batch_write_rsrc(batch, rsrc, s in panfrost_upload_ssbo_sysval() 1330 struct panfrost_resource *rsrc = pan_resource(target->buffer); panfrost_upload_sysvals() local 1413 struct panfrost_resource *rsrc = pan_resource(cb->buffer); panfrost_map_constant_buffer_cpu() local 1638 struct panfrost_resource *rsrc = pan_resource(pview->texture); panfrost_get_tex_desc() local 1749 struct panfrost_resource *rsrc = pan_resource(view->base.texture); panfrost_update_sampler_view() local 1783 struct panfrost_resource *rsrc = pan_resource(pview->texture); panfrost_emit_texture_descriptors() local 1895 struct panfrost_resource *rsrc = pan_resource(image->resource); emit_image_bufs() local 2047 struct panfrost_resource *rsrc; panfrost_emit_vertex_data() local 2713 struct panfrost_resource *rsrc = pan_resource(surf->texture); panfrost_initialize_surface() local 3229 struct panfrost_resource *rsrc = pan_resource(ctx->occlusion_query->rsrc); panfrost_emit_draw() local 3797 struct panfrost_resource *rsrc = pan_resource(info->index.resource); panfrost_indirect_draw() local [all...] |
H A D | pan_context.c | 272 struct panfrost_resource *rsrc = pan_resource(image->resource); in panfrost_set_shader_images() local 275 if (drm_is_afbc(rsrc->image.layout.modifier)) { in panfrost_set_shader_images() 276 pan_resource_modifier_convert(ctx, rsrc, in panfrost_set_shader_images() 865 if (query->rsrc) in panfrost_destroy_query() 866 pipe_resource_reference(&query->rsrc, NULL); in panfrost_destroy_query() 885 if (!query->rsrc) { in panfrost_begin_query() 886 query->rsrc = pipe_buffer_create(ctx->base.screen, in panfrost_begin_query() 893 pipe_buffer_write(pipe, query->rsrc, 0, size, zeroes); in panfrost_begin_query() 952 struct panfrost_resource *rsrc = pan_resource(query->rsrc); in panfrost_get_query_result() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader_llvm_resources.c | 139 static LLVMValueRef force_dcc_off(struct si_shader_context *ctx, LLVMValueRef rsrc) in force_dcc_off() argument 142 return rsrc; in force_dcc_off() 148 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_dcc_off() 150 return LLVMBuildInsertElement(ctx->ac.builder, rsrc, tmp, i32_6, ""); in force_dcc_off() 154 static LLVMValueRef force_write_compress_off(struct si_shader_context *ctx, LLVMValueRef rsrc) in force_write_compress_off() argument 160 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_write_compress_off() 162 return LLVMBuildInsertElement(ctx->ac.builder, rsrc, tmp, i32_6, ""); in force_write_compress_off() 165 static LLVMValueRef fixup_image_desc(struct si_shader_context *ctx, LLVMValueRef rsrc, in fixup_image_desc() argument 169 rsrc = force_dcc_off(ctx, rsrc); in fixup_image_desc() 185 LLVMValueRef rsrc; si_load_image_desc() local 315 LLVMValueRef rsrc = ac_get_arg(&ctx->ac, ctx->cs_image[const_index]); si_nir_load_sampler_desc() local [all...] |
/third_party/mesa3d/src/gallium/drivers/asahi/ |
H A D | magic.c | 56 struct agx_resource *rsrc = agx_resource(prsrc); in asahi_size_resource() local 57 size_t size = rsrc->slices[level].size; in asahi_size_resource() 59 if (rsrc->separate_stencil) in asahi_size_resource() 60 size += asahi_size_resource(&rsrc->separate_stencil->base, level); in asahi_size_resource() 99 agx_map_surface_resource(struct pipe_surface *surf, struct agx_resource *rsrc) in agx_map_surface_resource() argument 101 return agx_map_texture_gpu(rsrc, surf->u.tex.level, surf->u.tex.first_layer); in agx_map_surface_resource() 111 asahi_pack_iogpu_attachment(void *out, struct agx_resource *rsrc, in asahi_pack_iogpu_attachment() argument 119 cfg.type = asahi_classify_attachment(rsrc->base.format); in asahi_pack_iogpu_attachment() 120 cfg.address = agx_map_surface_resource(surf, rsrc); in asahi_pack_iogpu_attachment() 121 cfg.size = rsrc in asahi_pack_iogpu_attachment() 141 struct agx_resource *rsrc = agx_resource(framebuffer->zsbuf->texture); asahi_pack_iogpu_attachments() local [all...] |
H A D | agx_pipe.c | 248 struct agx_resource *rsrc = (struct agx_resource *)prsrc; in agx_resource_destroy() local 250 if (rsrc->dt) { in agx_resource_destroy() 254 winsys->displaytarget_destroy(winsys, rsrc->dt); in agx_resource_destroy() 257 agx_bo_unreference(rsrc->bo); in agx_resource_destroy() 258 FREE(rsrc); in agx_resource_destroy() 282 struct agx_resource *rsrc = agx_resource(resource); in agx_transfer_map() local 286 if ((usage & PIPE_MAP_DIRECTLY) && rsrc->modifier != DRM_FORMAT_MOD_LINEAR) in agx_transfer_map() 302 if (rsrc->modifier == DRM_FORMAT_MOD_APPLE_64X64_MORTON_ORDER) { in agx_transfer_map() 307 if ((usage & PIPE_MAP_READ) && BITSET_TEST(rsrc->data_valid, level)) { in agx_transfer_map() 309 uint8_t *map = agx_map_texture_cpu(rsrc, leve in agx_transfer_map() 347 struct agx_resource *rsrc = (struct agx_resource *) prsrc; agx_transfer_unmap() local 510 struct agx_resource *rsrc = agx_resource(surf->texture); agx_flush() local 516 struct agx_resource *rsrc = agx_resource(surf->texture); agx_flush() local 680 struct agx_resource *rsrc = (struct agx_resource *) prsrc; agx_flush_frontbuffer() local [all...] |
H A D | agx_state.h | 284 agx_texture_offset(struct agx_resource *rsrc, unsigned level, unsigned z) in agx_texture_offset() argument 286 return rsrc->slices[level].offset + (z * rsrc->array_stride); in agx_texture_offset() 290 agx_map_texture_cpu(struct agx_resource *rsrc, unsigned level, unsigned z) in agx_map_texture_cpu() argument 292 return ((uint8_t *) rsrc->bo->ptr.cpu) + agx_texture_offset(rsrc, level, z); in agx_map_texture_cpu() 296 agx_map_texture_gpu(struct agx_resource *rsrc, unsigned level, unsigned z) in agx_map_texture_gpu() argument 298 return rsrc->bo->ptr.gpu + (uint64_t) agx_texture_offset(rsrc, level, z); in agx_map_texture_gpu() 305 struct pipe_resource *rsrc; member [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_nir_apply_pipeline_layout.c | 159 load_inline_buffer_descriptor(nir_builder *b, apply_layout_state *state, nir_ssa_def *rsrc) in load_inline_buffer_descriptor() argument 175 return nir_vec4(b, rsrc, nir_imm_int(b, S_008F04_BASE_ADDRESS_HI(state->address32_hi)), in load_inline_buffer_descriptor() 180 load_buffer_descriptor(nir_builder *b, apply_layout_state *state, nir_ssa_def *rsrc, in load_buffer_descriptor() argument 183 nir_binding binding = nir_chase_binding(nir_src_for_ssa(rsrc)); in load_buffer_descriptor() 192 rsrc = nir_iadd(b, nir_channel(b, rsrc, 0), nir_channel(b, rsrc, 1)); in load_buffer_descriptor() 193 return load_inline_buffer_descriptor(b, state, rsrc); in load_buffer_descriptor() 198 return nir_iadd(b, nir_channel(b, rsrc, 0), nir_channel(b, rsrc, in load_buffer_descriptor() 207 nir_ssa_def *rsrc = intrin->src[0].ssa; visit_get_ssbo_size() local 377 nir_ssa_def *rsrc; apply_layout_to_intrin() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | imf_cpl.c | 141 static void imf_base_resource_init(FFIMFBaseResource *rsrc) in imf_base_resource_init() argument 143 rsrc->duration = 0; in imf_base_resource_init() 144 rsrc->edit_rate = av_make_q(0, 1); in imf_base_resource_init() 145 rsrc->entry_point = 0; in imf_base_resource_init() 146 rsrc->repeat_count = 1; in imf_base_resource_init() 149 static void imf_marker_resource_init(FFIMFMarkerResource *rsrc) in imf_marker_resource_init() argument 151 imf_base_resource_init((FFIMFBaseResource *)rsrc); in imf_marker_resource_init() 152 rsrc->marker_count = 0; in imf_marker_resource_init() 153 rsrc->markers = NULL; in imf_marker_resource_init() 163 static void imf_trackfile_resource_init(FFIMFTrackFileResource *rsrc) in imf_trackfile_resource_init() argument 708 imf_marker_resource_free(FFIMFMarkerResource *rsrc) imf_marker_resource_free() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | evergreen_hw_context.c | 41 struct r600_resource *rsrc = (struct r600_resource*)src; in evergreen_dma_copy_buffer() local 50 src_offset += rsrc->gpu_address; in evergreen_dma_copy_buffer() 63 r600_need_dma_space(&rctx->b, ncopy * 5, rdst, rsrc); in evergreen_dma_copy_buffer() 67 radeon_add_to_buffer_list(&rctx->b, &rctx->b.dma, rsrc, RADEON_USAGE_READ); in evergreen_dma_copy_buffer()
|
H A D | r600_buffer_common.c | 250 struct r600_resource *rsrc = r600_resource(src); in r600_replace_buffer_storage() local 253 pb_reference(&rdst->buf, rsrc->buf); in r600_replace_buffer_storage() 254 rdst->gpu_address = rsrc->gpu_address; in r600_replace_buffer_storage() 255 rdst->b.b.bind = rsrc->b.b.bind; in r600_replace_buffer_storage() 256 rdst->flags = rsrc->flags; in r600_replace_buffer_storage() 258 assert(rdst->vram_usage == rsrc->vram_usage); in r600_replace_buffer_storage() 259 assert(rdst->gart_usage == rsrc->gart_usage); in r600_replace_buffer_storage() 260 assert(rdst->bo_size == rsrc->bo_size); in r600_replace_buffer_storage() 261 assert(rdst->bo_alignment == rsrc->bo_alignment); in r600_replace_buffer_storage() 262 assert(rdst->domains == rsrc in r600_replace_buffer_storage() [all...] |
H A D | r600_test_dma.c | 208 struct r600_texture *rsrc; in r600_test_dma() local 278 rsrc = (struct r600_texture*)src; in r600_test_dma() 287 array_mode_to_string(rscreen, &rsrc->surface), bpp); in r600_test_dma() 324 if (!rsrc->surface.is_linear && in r600_test_dma() 352 if (rsrc->surface.is_linear && in r600_test_dma()
|
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_llvm_build.h | 257 void ac_build_buffer_store_dword(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, 261 void ac_build_buffer_store_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef data, 264 LLVMValueRef ac_build_buffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, int num_channels, 269 LLVMValueRef ac_build_buffer_load_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 274 LLVMValueRef ac_build_buffer_load_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 278 LLVMValueRef ac_build_buffer_load_byte(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 282 LLVMValueRef ac_build_struct_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 290 bool known_aligned, LLVMValueRef rsrc, 295 void ac_build_buffer_store_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 299 void ac_build_buffer_store_byte(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRe [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | af_virtualbass.c | 100 const double *rsrc = (const double *)in->extended_data[1]; in vb_stereo() local 115 memcpy(rdst, rsrc, in->nb_samples * sizeof(double)); in vb_stereo() 118 const double center = (lsrc[n] + rsrc[n]) * 0.5; in vb_stereo()
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_nir_analyze_ubo_ranges.c | 64 nir_intrinsic_instr *rsrc = ir3_bindless_resource(instr->src[0]); in get_ubo_info() local 65 if (rsrc && nir_src_is_const(rsrc->src[0])) { in get_ubo_info() 66 ubo->block = nir_src_as_uint(rsrc->src[0]); in get_ubo_info() 67 ubo->bindless_base = nir_intrinsic_desc_set(rsrc); in get_ubo_info()
|
H A D | ir3_nir_opt_preamble.c | 188 nir_intrinsic_instr *rsrc = ir3_bindless_resource(intrin->src[0]); in instr_cost() local 189 if (rsrc) in instr_cost() 190 const_ubo = nir_src_is_const(rsrc->src[0]); in instr_cost()
|
/third_party/rust/crates/regex/scripts/ |
H A D | scrape_crates_io.py | 169 for rsrc in glob.iglob(g): 170 yield rsrc
|
/third_party/ffmpeg/libavfilter/x86/ |
H A D | vf_stereo3d_init.c | 25 void ff_anaglyph_sse4(uint8_t *dst, uint8_t *lsrc, uint8_t *rsrc,
|