/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 316 src_desc = util_format_description(blit_src_format); in swizzled_copy() 319 assert(src_desc->block.bits == dst_desc->block.bits); in swizzled_copy() 320 bits = src_desc->block.bits; in swizzled_copy() 322 if (dst_desc->channel[0].size == src_desc->channel[0].size) { in swizzled_copy() 326 } else if (has_identity_swizzle(src_desc)) { in swizzled_copy() 339 canonical_format_from_bits(pipe->screen, bits, src_desc->channel[0].size); in swizzled_copy() 423 const struct util_format_description *src_desc, *dst_desc; in handle_complex_copy() local 430 src_desc = util_format_description(src->format); in handle_complex_copy() 435 src_is_canon = same_size_and_swizzle(src_desc, canon_des in handle_complex_copy() [all...] |
H A D | st_cb_texture.c | 1453 const struct util_format_description *src_desc = util_format_description(src); in reinterpret_formats() local 1459 if (src_desc->nr_channels != 4 || src_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 | 515 util_is_format_compatible(const struct util_format_description *src_desc, in util_is_format_compatible() argument 520 if (src_desc->format == dst_desc->format) { in util_is_format_compatible() 524 if (src_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() 536 if (src_desc->channel[chan].size != in util_is_format_compatible() 546 if (src_desc->swizzle[chan] != swizzle) { in util_is_format_compatible() 549 if ((src_desc->channel[swizzle].type != in util_is_format_compatible() 551 (src_desc in util_is_format_compatible() [all...] |
H A D | u_format.h | 773 util_is_format_compatible(const struct util_format_description *src_desc,
|
/third_party/ffmpeg/libavutil/ |
H A D | pixdesc.c | 2833 const AVPixFmtDescriptor *src_desc = av_pix_fmt_desc_get(src_pix_fmt); in get_pix_fmt_score() local 2840 if (!src_desc || !dst_desc) in get_pix_fmt_score() 2843 if ((src_desc->flags & AV_PIX_FMT_FLAG_HWACCEL) || in get_pix_fmt_score() 2862 src_color = get_color_type(src_desc); in get_pix_fmt_score() 2865 nb_components = FFMIN(src_desc->nb_components, 4); in get_pix_fmt_score() 2867 nb_components = FFMIN(src_desc->nb_components, dst_desc->nb_components); in get_pix_fmt_score() 2871 if (src_desc->comp[i].depth - 1 > depth_minus1 && (consider & FF_LOSS_DEPTH)) { in get_pix_fmt_score() 2878 if (dst_desc->log2_chroma_w > src_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() 2887 if (dst_desc->log2_chroma_w == 1 && src_desc in get_pix_fmt_score() [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_descriptor_set.c | 1821 struct anv_descriptor *src_desc = in anv_UpdateDescriptorSets() local 1823 src_desc += copy->srcArrayElement; in anv_UpdateDescriptorSets() 1837 switch(src_desc[j].type) { in anv_UpdateDescriptorSets() 1844 .sampler = anv_sampler_to_handle(src_desc[j].sampler), in anv_UpdateDescriptorSets() 1845 .imageView = anv_image_view_to_handle(src_desc[j].image_view), in anv_UpdateDescriptorSets() 1846 .imageLayout = src_desc[j].layout in anv_UpdateDescriptorSets() 1850 src_desc[j].type, in anv_UpdateDescriptorSets() 1859 src_desc[j].type, in anv_UpdateDescriptorSets() 1860 src_desc[j].buffer_view, in anv_UpdateDescriptorSets() 1872 src_desc[ in anv_UpdateDescriptorSets() [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_blit.c | 289 const struct util_format_description *src_desc = util_format_description(info->src.format); in zink_blit() local 304 if (src_desc == dst_desc || in zink_blit() 305 src_desc->nr_channels != 4 || src_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN || in zink_blit() 306 (src_desc->nr_channels == 4 && src_desc->channel[3].type != UTIL_FORMAT_TYPE_VOID)) { in zink_blit()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_descriptor_set.c | 521 struct lvp_descriptor *src_desc = in lvp_UpdateDescriptorSets() local 529 if (src_desc->type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) { in lvp_UpdateDescriptorSets() 532 src_desc->info.uniform + copy->srcArrayElement, in lvp_UpdateDescriptorSets() 535 src_desc += copy->srcArrayElement; 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 423 src_desc = util_format_description(blit_info->src.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 775 src_desc = util_format_description(blit->src.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 | 2023 const struct util_format_description *src_desc = in util_blitter_blit_generic() local 2028 bool src_has_color = src_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS; in util_blitter_blit_generic() 2029 bool src_has_depth = util_format_has_depth(src_desc); in util_blitter_blit_generic() 2030 bool src_has_stencil = util_format_has_stencil(src_desc); in util_blitter_blit_generic()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_blitter.c | 215 const struct util_format_description *src_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() 225 sizeof(src_desc->channel[0]))); in can_do_blit()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cCopyImageTests.cpp | 3434 targetDesc src_desc = test_case.m_src; in verify() local 3435 const GLuint src_level = src_desc.m_level; in verify() 3437 const GLuint src_pixel_size = Utils::getPixelSizeForFormat(src_desc.m_internal_format); in verify() 3441 src_desc.m_target = GL_TEXTURE_2D; in verify() 3457 calculateDimmensions(src_desc.m_target, src_level, src_desc.m_width, src_desc.m_height, src_widths, src_heights, in verify() 3484 getPixels(m_src_tex_name, src_desc, level, &src_level_data[0]); in verify() 3488 if (false == compareImages(src_desc, src_pixels[level], 0, 0, layer, level, src_desc, in verify() [all...] |