Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c775 struct rect surf_clip = plane_state->clip_rect; in calculate_recout() local
792 if (stream->src.x < surf_clip.x) in calculate_recout()
793 data->recout.x += (surf_clip.x - stream->src.x) * stream->dst.width in calculate_recout()
799 data->recout.width = surf_clip.width * stream->dst.width / stream->src.width; in calculate_recout()
804 if (stream->src.y < surf_clip.y) in calculate_recout()
805 data->recout.y += (surf_clip.y - stream->src.y) * stream->dst.height in calculate_recout()
808 data->recout.height = surf_clip.height * stream->dst.height / stream->src.height; in calculate_recout()