Signed-off-by: Dima Zavin <[EMAIL PROTECTED]>
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c
index 394cb19..83cfc46 100644
--- a/linux-core/intel_fb.c
+++ b/linux-core/intel_fb.c
@@ -534,7 +534,9 @@ static int intelfb_pan_display(struct fb_var_screeninfo
*var,
int i;
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
-
+ struct drm_crtc_helper_funcs *crtc_funcs =
+ crtc->helper_private;
+
for (i = 0; i < par->crtc_count; i++)
if (crtc->base.id == par->crtc_ids[i])
break;
@@ -548,14 +550,12 @@ static int intelfb_pan_display(struct fb_var_screeninfo
*var,
modeset->x = var->xoffset;
modeset->y = var->yoffset;
- if (modeset->num_connectors) {
- ret = crtc->funcs->set_config(modeset);
-
- if (!ret) {
- info->var.xoffset = var->xoffset;
- info->var.yoffset = var->yoffset;
- }
- }
+ if (!modeset->num_connectors)
+ continue;
+
+ crtc_funcs->mode_set_base(crtc, modeset->x, modeset->y);
+ info->var.xoffset = modeset->x;
+ info->var.yoffset = modeset->y;
}
return ret;
--
1.5.4.5
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel