Lines Matching refs:blit

786 util_can_blit_via_copy_region(const struct pipe_blit_info *blit,  in util_can_blit_via_copy_region()  argument
791 src_desc = util_format_description(blit->src.resource->format); in util_can_blit_via_copy_region()
792 dst_desc = util_format_description(blit->dst.resource->format); in util_can_blit_via_copy_region()
796 if (blit->src.format != blit->dst.format) { in util_can_blit_via_copy_region()
802 if (blit->src.resource->format != blit->src.format || in util_can_blit_via_copy_region()
803 blit->dst.resource->format != blit->dst.format || in util_can_blit_via_copy_region()
809 unsigned mask = util_format_get_mask(blit->dst.format); in util_can_blit_via_copy_region()
812 if ((blit->mask & mask) != mask || in util_can_blit_via_copy_region()
813 blit->filter != PIPE_TEX_FILTER_NEAREST || in util_can_blit_via_copy_region()
814 blit->scissor_enable || in util_can_blit_via_copy_region()
815 blit->num_window_rectangles > 0 || in util_can_blit_via_copy_region()
816 blit->alpha_blend) { in util_can_blit_via_copy_region()
821 assert(blit->dst.box.width >= 1); in util_can_blit_via_copy_region()
822 assert(blit->dst.box.height >= 1); in util_can_blit_via_copy_region()
823 assert(blit->dst.box.depth >= 1); in util_can_blit_via_copy_region()
826 if (blit->src.box.width != blit->dst.box.width || in util_can_blit_via_copy_region()
827 blit->src.box.height != blit->dst.box.height || in util_can_blit_via_copy_region()
828 blit->src.box.depth != blit->dst.box.depth) { in util_can_blit_via_copy_region()
833 if (!is_box_inside_resource(blit->src.resource, &blit->src.box, in util_can_blit_via_copy_region()
834 blit->src.level) || in util_can_blit_via_copy_region()
835 !is_box_inside_resource(blit->dst.resource, &blit->dst.box, in util_can_blit_via_copy_region()
836 blit->dst.level)) { in util_can_blit_via_copy_region()
841 if (get_sample_count(blit->src.resource) != in util_can_blit_via_copy_region()
842 get_sample_count(blit->dst.resource)) { in util_can_blit_via_copy_region()
861 const struct pipe_blit_info *blit) in util_try_blit_via_copy_region() argument
863 if (util_can_blit_via_copy_region(blit, FALSE)) { in util_try_blit_via_copy_region()
864 ctx->resource_copy_region(ctx, blit->dst.resource, blit->dst.level, in util_try_blit_via_copy_region()
865 blit->dst.box.x, blit->dst.box.y, in util_try_blit_via_copy_region()
866 blit->dst.box.z, in util_try_blit_via_copy_region()
867 blit->src.resource, blit->src.level, in util_try_blit_via_copy_region()
868 &blit->src.box); in util_try_blit_via_copy_region()