/third_party/libsnd/src/ |
D | sd2.c | 92 static int parse_str_rsrc (SF_PRIVATE *psf, SD2_RSRC * rsrc) ; 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.rsrc_data = psf->header.ptr ; in sd2_write_rsrc_fork() 211 rsrc.rsrc_len = psf->header.len ; in sd2_write_rsrc_fork() 212 memset (rsrc.rsrc_data, 0xea, rsrc.rsrc_len) ; in sd2_write_rsrc_fork() [all …]
|
D | file_io.c | 131 if (psf->rsrc.filedes > 0) in psf_open_rsrc() 135 …count = snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s/..namedfork/rsrc", psf->file.pa… in psf_open_rsrc() 137 if (count < sizeof (psf->rsrc.path.c)) in psf_open_rsrc() 138 { if ((psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0) in psf_open_rsrc() 139 { psf->rsrclength = psf_get_filelen_fd (psf->rsrc.filedes) ; in psf_open_rsrc() 140 if (psf->rsrclength > 0 || (psf->rsrc.mode & SFM_WRITE)) in psf_open_rsrc() 142 psf_close_fd (psf->rsrc.filedes) ; in psf_open_rsrc() 143 psf->rsrc.filedes = -1 ; in psf_open_rsrc() 146 if (psf->rsrc.filedes == - SFE_BAD_OPEN_MODE) in psf_open_rsrc() 156 …count = snprintf (psf->rsrc.path.c, sizeof (psf->rsrc.path.c), "%s._%s", psf->file.dir.c, psf->fil… in psf_open_rsrc() [all …]
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
D | pan_resource.c | 138 struct panfrost_resource *rsrc = (struct panfrost_resource *) pt; in panfrost_resource_get_handle() local 139 struct renderonly_scanout *scanout = rsrc->scanout; in panfrost_resource_get_handle() 141 handle->modifier = rsrc->image.layout.modifier; in panfrost_resource_get_handle() 142 rsrc->modifier_constant = true; in panfrost_resource_get_handle() 150 handle->handle = rsrc->image.data.bo->gem_handle; in panfrost_resource_get_handle() 151 handle->stride = rsrc->image.layout.slices[0].line_stride; in panfrost_resource_get_handle() 152 handle->offset = rsrc->image.layout.slices[0].offset; in panfrost_resource_get_handle() 171 int fd = panfrost_bo_export(rsrc->image.data.bo); in panfrost_resource_get_handle() 177 handle->stride = rsrc->image.layout.slices[0].line_stride; in panfrost_resource_get_handle() 178 handle->offset = rsrc->image.layout.slices[0].offset; in panfrost_resource_get_handle() [all …]
|
D | pan_job.c | 58 struct panfrost_resource *rsrc = pan_resource(surf->texture); in panfrost_batch_add_surface() local 59 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_FRAGMENT); in panfrost_batch_add_surface() 128 struct panfrost_resource *rsrc = (void *) entry->key; in panfrost_batch_cleanup() local 130 if (_mesa_hash_table_search(ctx->writers, rsrc)) { in panfrost_batch_cleanup() 131 _mesa_hash_table_remove_key(ctx->writers, rsrc); in panfrost_batch_cleanup() 132 rsrc->track.nr_writers--; in panfrost_batch_cleanup() 135 rsrc->track.nr_users--; in panfrost_batch_cleanup() 137 pipe_resource_reference((struct pipe_resource **) &rsrc, NULL); in panfrost_batch_cleanup() 239 struct panfrost_resource *rsrc, bool writes) in panfrost_batch_update_access() argument 243 struct hash_entry *entry = _mesa_hash_table_search(ctx->writers, rsrc); in panfrost_batch_update_access() [all …]
|
D | pan_compute.c | 121 struct panfrost_resource *rsrc = pan_resource(resources[i]); in panfrost_set_global_binding() local 122 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_COMPUTE); in panfrost_set_global_binding() 124 util_range_add(&rsrc->base, &rsrc->valid_buffer_range, in panfrost_set_global_binding() 125 0, rsrc->base.width0); in panfrost_set_global_binding() 128 memcpy(handles[i], &rsrc->image.data.bo->ptr.gpu, sizeof(mali_ptr)); in panfrost_set_global_binding()
|
D | pan_helpers.c | 94 struct panfrost_resource *rsrc = pan_resource(info->index.resource); in panfrost_get_index_buffer_bounded() local 108 panfrost_batch_read_rsrc(batch, rsrc, PIPE_SHADER_VERTEX); in panfrost_get_index_buffer_bounded() 109 out = rsrc->image.data.bo->ptr.gpu + offset; in panfrost_get_index_buffer_bounded() 112 needs_indices = !panfrost_minmax_cache_get(rsrc->index_cache, in panfrost_get_index_buffer_bounded() 135 panfrost_minmax_cache_add(rsrc->index_cache, in panfrost_get_index_buffer_bounded()
|
D | pan_job.h | 152 struct panfrost_resource *rsrc, 157 struct panfrost_resource *rsrc, 170 struct panfrost_resource *rsrc, 175 struct panfrost_resource *rsrc,
|
D | pan_cmdstream.c | 693 struct panfrost_resource *rsrc = pan_resource(cb->buffer); in panfrost_map_constant_buffer_gpu() local 695 if (rsrc) { in panfrost_map_constant_buffer_gpu() 696 panfrost_batch_read_rsrc(batch, rsrc, st); in panfrost_map_constant_buffer_gpu() 700 return rsrc->image.data.bo->ptr.gpu + cb->buffer_offset; in panfrost_map_constant_buffer_gpu() 825 struct panfrost_resource *rsrc = pan_resource(sb.buffer); in panfrost_upload_ssbo_sysval() local 826 struct panfrost_bo *bo = rsrc->image.data.bo; in panfrost_upload_ssbo_sysval() 828 panfrost_batch_write_rsrc(batch, rsrc, st); in panfrost_upload_ssbo_sysval() 830 util_range_add(&rsrc->base, &rsrc->valid_buffer_range, in panfrost_upload_ssbo_sysval() 1032 struct panfrost_resource *rsrc = pan_resource(cb->buffer); in panfrost_map_constant_buffer_cpu() local 1034 if (rsrc) { in panfrost_map_constant_buffer_cpu() [all …]
|
D | pan_resource.h | 99 struct pipe_resource *rsrc; member 156 struct panfrost_resource *rsrc, 161 struct panfrost_resource *rsrc,
|
D | pan_context.c | 265 struct panfrost_resource *rsrc = pan_resource(image->resource); in panfrost_set_shader_images() local 268 if (drm_is_afbc(rsrc->image.layout.modifier)) { in panfrost_set_shader_images() 269 pan_resource_modifier_convert(ctx, rsrc, in panfrost_set_shader_images() 828 if (query->rsrc) in panfrost_destroy_query() 829 pipe_resource_reference(&query->rsrc, NULL); in panfrost_destroy_query() 848 if (!query->rsrc) { in panfrost_begin_query() 849 query->rsrc = pipe_buffer_create(ctx->base.screen, in panfrost_begin_query() 856 pipe_buffer_write(pipe, query->rsrc, 0, size, zeroes); in panfrost_begin_query() 915 struct panfrost_resource *rsrc = pan_resource(query->rsrc); in panfrost_get_query_result() local 921 panfrost_flush_writer(ctx, rsrc, "Occlusion query"); in panfrost_get_query_result() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_resources.c | 138 static LLVMValueRef force_dcc_off(struct si_shader_context *ctx, LLVMValueRef rsrc) in force_dcc_off() argument 141 return rsrc; in force_dcc_off() 147 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_dcc_off() 149 return LLVMBuildInsertElement(ctx->ac.builder, rsrc, tmp, i32_6, ""); in force_dcc_off() 153 static LLVMValueRef force_write_compress_off(struct si_shader_context *ctx, LLVMValueRef rsrc) in force_write_compress_off() argument 159 tmp = LLVMBuildExtractElement(ctx->ac.builder, rsrc, i32_6, ""); in force_write_compress_off() 161 return LLVMBuildInsertElement(ctx->ac.builder, rsrc, tmp, i32_6, ""); in force_write_compress_off() 164 static LLVMValueRef fixup_image_desc(struct si_shader_context *ctx, LLVMValueRef rsrc, in fixup_image_desc() argument 168 rsrc = force_dcc_off(ctx, rsrc); in fixup_image_desc() 172 rsrc = force_write_compress_off(ctx, rsrc); in fixup_image_desc() [all …]
|
/third_party/mesa3d/src/gallium/drivers/asahi/ |
D | agx_pipe.c | 264 agx_rsrc_offset(struct agx_resource *rsrc, unsigned level, unsigned z) in agx_rsrc_offset() argument 266 struct agx_bo *bo = rsrc->bo; in agx_rsrc_offset() 267 uint8_t *map = ((uint8_t *) bo->ptr.cpu) + rsrc->slices[level].offset; in agx_rsrc_offset() 268 map += z * rsrc->array_stride; in agx_rsrc_offset() 277 struct agx_resource *rsrc = (struct agx_resource *)prsrc; in agx_resource_destroy() local 279 if (rsrc->dt) { in agx_resource_destroy() 283 winsys->displaytarget_destroy(winsys, rsrc->dt); in agx_resource_destroy() 286 agx_bo_unreference(rsrc->bo); in agx_resource_destroy() 287 FREE(rsrc); in agx_resource_destroy() 311 struct agx_resource *rsrc = agx_resource(resource); in agx_transfer_map() local [all …]
|
/third_party/grpc/src/php/ext/grpc/ |
D | channel.c | 182 php_grpc_zend_resource *rsrc = (php_grpc_zend_resource*) PHP_GRPC_HASH_VALPTR_TO_VAL(data) in php_grpc_persistent_list_delete_unused_channel() 183 if (rsrc == NULL) { in php_grpc_persistent_list_delete_unused_channel() 186 channel_persistent_le_t* le = rsrc->ptr; in php_grpc_persistent_list_delete_unused_channel() 205 php_grpc_zend_resource *rsrc; in update_and_get_target_upper_bound() local 209 key_len, rsrc))) { in update_and_get_target_upper_bound() 230 target_bound_status = (target_bound_le_t *)rsrc->ptr; in update_and_get_target_upper_bound() 330 php_grpc_zend_resource *rsrc; in PHP_METHOD() local 443 key_len, rsrc))) { in PHP_METHOD() 448 channel_persistent_le_t *le = (channel_persistent_le_t *)rsrc->ptr; in PHP_METHOD() 581 php_grpc_zend_resource *rsrc; in php_grpc_delete_persistent_list_entry() local [all …]
|
D | php_grpc.c | 123 php_grpc_zend_resource *rsrc = in acquire_persistent_locks() 125 if (rsrc == NULL) { in acquire_persistent_locks() 128 channel_persistent_le_t* le = rsrc->ptr; in acquire_persistent_locks() 137 php_grpc_zend_resource *rsrc = in release_persistent_locks() 139 if (rsrc == NULL) { in release_persistent_locks() 142 channel_persistent_le_t* le = rsrc->ptr; in release_persistent_locks() 151 php_grpc_zend_resource *rsrc = in destroy_grpc_channels() 153 if (rsrc == NULL) { in destroy_grpc_channels() 156 channel_persistent_le_t* le = rsrc->ptr; in destroy_grpc_channels()
|
D | php7_wrapper.h | 130 #define PHP_GRPC_PERSISTENT_LIST_FIND(plist, key, len, rsrc) \ argument 131 (rsrc = zend_hash_str_find_ptr(plist, key, len)) != NULL 132 #define PHP_GRPC_PERSISTENT_LIST_UPDATE(plist, key, len, rsrc) \ argument 133 zend_hash_str_update_mem(plist, key, len, rsrc, \
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
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, 0); in evergreen_dma_copy_buffer()
|
D | r600_buffer_common.c | 273 struct r600_resource *rsrc = r600_resource(src); in r600_replace_buffer_storage() local 276 pb_reference(&rdst->buf, rsrc->buf); in r600_replace_buffer_storage() 277 rdst->gpu_address = rsrc->gpu_address; in r600_replace_buffer_storage() 278 rdst->b.b.bind = rsrc->b.b.bind; in r600_replace_buffer_storage() 279 rdst->flags = rsrc->flags; in r600_replace_buffer_storage() 281 assert(rdst->vram_usage == rsrc->vram_usage); in r600_replace_buffer_storage() 282 assert(rdst->gart_usage == rsrc->gart_usage); in r600_replace_buffer_storage() 283 assert(rdst->bo_size == rsrc->bo_size); in r600_replace_buffer_storage() 284 assert(rdst->bo_alignment == rsrc->bo_alignment); in r600_replace_buffer_storage() 285 assert(rdst->domains == rsrc->domains); in r600_replace_buffer_storage()
|
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/ |
D | ac_llvm_build.h | 256 void ac_build_buffer_store_dword(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, 260 void ac_build_buffer_store_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef data, 263 LLVMValueRef ac_build_buffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, int num_channels, 268 LLVMValueRef ac_build_buffer_load_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 273 LLVMValueRef ac_build_tbuffer_load_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 277 LLVMValueRef ac_build_tbuffer_load_byte(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 281 LLVMValueRef ac_build_struct_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 287 LLVMValueRef ac_build_raw_tbuffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc, 295 bool known_aligned, LLVMValueRef rsrc, 300 void ac_build_tbuffer_store_short(struct ac_llvm_context *ctx, LLVMValueRef rsrc, [all …]
|
D | ac_llvm_build.c | 1118 static void ac_build_buffer_store_common(struct ac_llvm_context *ctx, LLVMValueRef rsrc, in ac_build_buffer_store_common() argument 1126 args[idx++] = LLVMBuildBitCast(ctx->builder, rsrc, ctx->v4i32, ""); in ac_build_buffer_store_common() 1147 void ac_build_buffer_store_format(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef data, in ac_build_buffer_store_format() argument 1150 ac_build_buffer_store_common(ctx, rsrc, data, vindex, voffset, NULL, cache_policy, true, true); in ac_build_buffer_store_format() 1157 void ac_build_buffer_store_dword(struct ac_llvm_context *ctx, LLVMValueRef rsrc, LLVMValueRef vdata, in ac_build_buffer_store_dword() argument 1170 ac_build_buffer_store_dword(ctx, rsrc, v01, 2, voffset, soffset, inst_offset, cache_policy); in ac_build_buffer_store_dword() 1171 ac_build_buffer_store_dword(ctx, rsrc, v[2], 1, voffset, soffset, inst_offset + 8, in ac_build_buffer_store_dword() 1186 ac_build_buffer_store_common(ctx, rsrc, ac_to_float(ctx, vdata), ctx->i32_0, voffset, offset, in ac_build_buffer_store_dword() 1198 ac_build_raw_tbuffer_store(ctx, rsrc, vdata, voffset, soffset, immoffset, num_channels, dfmt, in ac_build_buffer_store_dword() 1202 static LLVMValueRef ac_build_buffer_load_common(struct ac_llvm_context *ctx, LLVMValueRef rsrc, in ac_build_buffer_load_common() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | BUFInstructions.td | 1178 (vt (name v4i32:$rsrc, 0, 0, i32:$soffset, timm:$offset, 1180 (!cast<MUBUF_Pseudo>(opcode # _OFFSET) $rsrc, $soffset, (as_i16imm $offset), 1186 (vt (name v4i32:$rsrc, 0, i32:$voffset, i32:$soffset, timm:$offset, 1188 (!cast<MUBUF_Pseudo>(opcode # _OFFEN) $voffset, $rsrc, $soffset, (as_i16imm $offset), 1194 (vt (name v4i32:$rsrc, i32:$vindex, 0, i32:$soffset, timm:$offset, 1196 (!cast<MUBUF_Pseudo>(opcode # _IDXEN) $vindex, $rsrc, $soffset, (as_i16imm $offset), 1202 (vt (name v4i32:$rsrc, i32:$vindex, i32:$voffset, i32:$soffset, timm:$offset, 1206 $rsrc, $soffset, (as_i16imm $offset), 1257 (name vt:$vdata, v4i32:$rsrc, 0, 0, i32:$soffset, timm:$offset, 1259 (!cast<MUBUF_Pseudo>(opcode # _OFFSET_exact) $vdata, $rsrc, $soffset, (as_i16imm $offset), [all …]
|
/third_party/mesa3d/src/freedreno/ir3/ |
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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | IntrinsicsAMDGPU.td | 695 [llvm_v8i32_ty], // rsrc(SGPR) 859 [llvm_v4i32_ty, // rsrc(SGPR) 871 [llvm_v4i32_ty, // rsrc(SGPR) 880 llvm_v4i32_ty, // rsrc(SGPR) 899 [llvm_v4i32_ty, // rsrc(SGPR) 913 [llvm_v4i32_ty, // rsrc(SGPR) 929 llvm_v4i32_ty, // rsrc(SGPR) 944 llvm_v4i32_ty, // rsrc(SGPR) 960 llvm_v4i32_ty, // rsrc(SGPR) 982 llvm_v4i32_ty, // rsrc(SGPR) [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | stereo3d.h | 28 void (*anaglyph)(uint8_t *dst, uint8_t *lsrc, uint8_t *rsrc,
|
/third_party/ffmpeg/libavfilter/x86/ |
D | vf_stereo3d_init.c | 25 void ff_anaglyph_sse4(uint8_t *dst, uint8_t *lsrc, uint8_t *rsrc,
|