/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_copyimage.c | 300 const struct util_format_description *src_desc, *dst_desc; in swizzled_copy() local 317 dst_desc = util_format_description(blit_dst_format); in swizzled_copy() 319 assert(src_desc->block.bits == dst_desc->block.bits); in swizzled_copy() 322 if (dst_desc->channel[0].size == src_desc->channel[0].size) { in swizzled_copy() 332 canonical_format_from_bits(pipe->screen, bits, dst_desc->channel[0].size); in swizzled_copy() 333 } else if (has_identity_swizzle(dst_desc)) { in swizzled_copy() 423 const struct util_format_description *src_desc, *dst_desc; in handle_complex_copy() local 431 dst_desc = util_format_description(dst->format); in handle_complex_copy() 436 dst_is_canon = same_size_and_swizzle(dst_desc, canon_desc); in handle_complex_copy() 438 dst_is_noncanon = same_size_and_swizzle(dst_desc, noncanon_des in handle_complex_copy() [all...] |
H A D | st_pbo_compute.c | 282 const struct util_format_description *dst_desc = util_format_description(dst_format); in fill_pbo_data() local 286 bits[c] = dst_desc->channel[c].size; in fill_pbo_data() 287 if (c < dst_desc->nr_channels) { in fill_pbo_data() 294 if (is_8bit || dst_desc->block.bits == 8) in fill_pbo_data() 299 dst_bit_size = dst_desc->block.bits; in fill_pbo_data() 301 dst_bit_size = dst_desc->block.bits / dst_desc->nr_channels; in fill_pbo_data() 307 pd->channels = dst_desc->nr_channels - 1; in fill_pbo_data() 308 pd->normalized = dst_desc->is_unorm || dst_desc in fill_pbo_data() [all...] |
H A D | st_cb_texture.c | 1454 const struct util_format_description *dst_desc = util_format_description(dst); in reinterpret_formats() local 1462 if (dst_desc->nr_channels != 4 || dst_desc->swizzle[3] == PIPE_SWIZZLE_1) in reinterpret_formats() 1466 swizzle[i] = dst_desc->swizzle[src_desc->swizzle[i]]; in reinterpret_formats()
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format.c | 516 const struct util_format_description *dst_desc) in util_is_format_compatible() 520 if (src_desc->format == dst_desc->format) { in util_is_format_compatible() 525 dst_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) { in util_is_format_compatible() 529 if (src_desc->block.bits != dst_desc->block.bits || in util_is_format_compatible() 530 src_desc->nr_channels != dst_desc->nr_channels || in util_is_format_compatible() 531 src_desc->colorspace != dst_desc->colorspace) { in util_is_format_compatible() 537 dst_desc->channel[chan].size) { in util_is_format_compatible() 543 enum pipe_swizzle swizzle = dst_desc->swizzle[chan]; in util_is_format_compatible() 550 dst_desc->channel[swizzle].type) || in util_is_format_compatible() 552 dst_desc in util_is_format_compatible() 515 util_is_format_compatible(const struct util_format_description *src_desc, const struct util_format_description *dst_desc) util_is_format_compatible() argument [all...] |
H A D | u_format.h | 774 const struct util_format_description *dst_desc) ATTRIBUTE_CONST;
|
/third_party/ffmpeg/libavutil/ |
H A D | pixdesc.c | 2834 const AVPixFmtDescriptor *dst_desc = av_pix_fmt_desc_get(dst_pix_fmt); in get_pix_fmt_score() local 2840 if (!src_desc || !dst_desc) in get_pix_fmt_score() 2844 (dst_desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) { in get_pix_fmt_score() 2863 dst_color = get_color_type(dst_desc); in get_pix_fmt_score() 2867 nb_components = FFMIN(src_desc->nb_components, dst_desc->nb_components); in get_pix_fmt_score() 2870 int depth_minus1 = (dst_pix_fmt == AV_PIX_FMT_PAL8) ? 7/nb_components : (dst_desc->comp[i].depth - 1); in get_pix_fmt_score() 2878 if (dst_desc->log2_chroma_w > src_desc->log2_chroma_w) { in get_pix_fmt_score() 2880 score -= 256 << dst_desc->log2_chroma_w; in get_pix_fmt_score() 2882 if (dst_desc->log2_chroma_h > src_desc->log2_chroma_h) { in get_pix_fmt_score() 2884 score -= 256 << dst_desc in get_pix_fmt_score() [all...] |
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_descriptor_set.c | 526 struct lvp_descriptor *dst_desc = in lvp_UpdateDescriptorSets() local 530 dst_desc->type = VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK; in lvp_UpdateDescriptorSets() 531 memcpy(dst_desc->info.uniform + copy->dstArrayElement, in lvp_UpdateDescriptorSets() 536 dst_desc += copy->dstArrayElement; in lvp_UpdateDescriptorSets() 539 dst_desc[j] = src_desc[j]; in lvp_UpdateDescriptorSets()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_blit.c | 421 const struct util_format_description *src_desc, *dst_desc; in can_blit_via_surface_copy() local 424 dst_desc = util_format_description(blit_info->dst.resource->format); in can_blit_via_surface_copy() 428 !util_is_format_compatible(src_desc, dst_desc)) in can_blit_via_surface_copy()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_surface.c | 773 const struct util_format_description *src_desc, *dst_desc; in util_can_blit_via_copy_region() local 776 dst_desc = util_format_description(blit->dst.resource->format); in util_can_blit_via_copy_region() 788 !util_is_format_compatible(src_desc, dst_desc)) { in util_can_blit_via_copy_region()
|
H A D | u_blitter.c | 2025 const struct util_format_description *dst_desc = in util_blitter_blit_generic() local 2033 dst_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS; in util_blitter_blit_generic() 2035 util_format_has_depth(dst_desc); in util_blitter_blit_generic() 2038 util_format_has_stencil(dst_desc); in util_blitter_blit_generic()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_blitter.c | 217 const struct util_format_description *dst_desc = in can_do_blit() local 220 MIN2(src_desc->nr_channels, dst_desc->nr_channels); in can_do_blit() 224 fail_if(memcmp(&src_desc->channel[i], &dst_desc->channel[i], in can_do_blit()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_blit.c | 290 const struct util_format_description *dst_desc = util_format_description(info->dst.format); in zink_blit() local 304 if (src_desc == dst_desc || in zink_blit()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_cmd_buffer.c | 2011 uint32_t *dst_desc = dst; in tu_CmdBindDescriptorSets() local 2014 i++, dst_desc += A6XX_TEX_CONST_DWORDS) { in tu_CmdBindDescriptorSets() 2016 uint64_t va = dst_desc[4] | ((uint64_t)dst_desc[5] << 32); in tu_CmdBindDescriptorSets() 2018 dst_desc[4] = va; in tu_CmdBindDescriptorSets() 2019 dst_desc[5] = va >> 32; in tu_CmdBindDescriptorSets()
|