Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c739 struct rect surf_clip = plane_state->clip_rect; in calculate_recout() local
752 if (stream->src.x < surf_clip.x) in calculate_recout()
753 data->recout.x += (surf_clip.x - stream->src.x) * stream->dst.width in calculate_recout()
758 if (stream->src.x > surf_clip.x) in calculate_recout()
759 surf_clip.width -= stream->src.x - surf_clip.x; in calculate_recout()
760 data->recout.width = surf_clip.width * stream->dst.width / stream->src.width; in calculate_recout()
765 if (stream->src.y < surf_clip.y) in calculate_recout()
766 data->recout.y += (surf_clip.y - stream->src.y) * stream->dst.height in calculate_recout()
768 else if (stream->src.y > surf_clip.y) in calculate_recout()
769 surf_clip.height -= stream->src.y - surf_clip.y; in calculate_recout()
[all …]