Home
last modified time | relevance | path

Searched refs:dst_format_desc (Results 1 – 2 of 2) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/tests/format/
Du_format_compatible_test.c46 const struct util_format_description *dst_format_desc; in test_all() local
47 dst_format_desc = util_format_description(dst_format); in test_all()
53 if (util_is_format_compatible(src_format_desc, dst_format_desc)) { in test_all()
54 printf("%s -> %s\n", src_format_desc->short_name, dst_format_desc->short_name); in test_all()
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format.c653 const struct util_format_description *dst_format_desc; in util_format_translate() local
665 dst_format_desc = util_format_description(dst_format); in util_format_translate()
668 if (util_is_format_compatible(src_format_desc, dst_format_desc)) { in util_format_translate()
679 assert(dst_x % dst_format_desc->block.width == 0); in util_format_translate()
680 assert(dst_y % dst_format_desc->block.height == 0); in util_format_translate()
684 dst_row = (uint8_t *)dst + (uint64_t)dst_y*dst_stride + dst_x*(dst_format_desc->block.bits/8); in util_format_translate()
692 y_step = MAX2(dst_format_desc->block.height, src_format_desc->block.height); in util_format_translate()
693 x_step = MAX2(dst_format_desc->block.width, src_format_desc->block.width); in util_format_translate()
694 assert(y_step % dst_format_desc->block.height == 0); in util_format_translate()
697 dst_step = y_step / dst_format_desc->block.height * dst_stride; in util_format_translate()
[all …]