Commit be01d4d6 authored by Lucas Stach's avatar Lucas Stach Committed by Ezequiel Garcia
Browse files

HACK: allow legacy modeset with scaled FB


Signed-off-by: Lucas Stach's avatarLucas Stach <l.stach@pengutronix.de>
parent 93cacede
......@@ -1407,11 +1407,11 @@ int __drm_atomic_helper_set_config(struct drm_mode_set *set,
primary_state->src_x = set->x << 16;
primary_state->src_y = set->y << 16;
if (drm_rotation_90_or_270(primary_state->rotation)) {
primary_state->src_w = vdisplay << 16;
primary_state->src_h = hdisplay << 16;
primary_state->src_w = set->fb->height << 16;
primary_state->src_h = set->fb->width << 16;
} else {
primary_state->src_w = hdisplay << 16;
primary_state->src_h = vdisplay << 16;
primary_state->src_w = set->fb->width << 16;
primary_state->src_h = set->fb->height << 16;
}
commit:
......
......@@ -93,7 +93,7 @@ int drm_framebuffer_check_src_coords(uint32_t src_x, uint32_t src_y,
src_x >> 16, ((src_x & 0xffff) * 15625) >> 10,
src_y >> 16, ((src_y & 0xffff) * 15625) >> 10,
fb->width, fb->height);
return -ENOSPC;
return 0;
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment