mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] intelfb: fix accel detection when changing video modes
Changed the tests in intelfb_set_par to check also the parameter var.accel_flags. If null, do nothing about ring buffers. Now, the DirectFB i830 driver could nicely work even if intelfb is hw accelerated. Just change the /etc/fb.modes file to disable console hw acceleration when starting a DirectFB app. Signed-off-by: Sylvain Meyer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
27aef2d49f
commit
df529338d9
1 changed files with 2 additions and 2 deletions
|
|
@ -1301,7 +1301,7 @@ intelfb_set_par(struct fb_info *info)
|
|||
|
||||
intelfb_blank(FB_BLANK_POWERDOWN, info);
|
||||
|
||||
if (dinfo->accel)
|
||||
if (ACCEL(dinfo, info))
|
||||
intelfbhw_2d_stop(dinfo);
|
||||
|
||||
memcpy(hw, &dinfo->save_state, sizeof(*hw));
|
||||
|
|
@ -1317,7 +1317,7 @@ intelfb_set_par(struct fb_info *info)
|
|||
|
||||
update_dinfo(dinfo, &info->var);
|
||||
|
||||
if (dinfo->accel)
|
||||
if (ACCEL(dinfo, info))
|
||||
intelfbhw_2d_start(dinfo);
|
||||
|
||||
intelfb_pan_display(&info->var, info);
|
||||
|
|
|
|||
Loading…
Reference in a new issue