Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119768
b: refs/heads/master
c: f317974
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Dec 9, 2008
1 parent 4490538 commit a6a03b7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7a8db89c1f42e504bb12d2ae399cd96f755a7db
refs/heads/master: f3179748a157c21d44d929fd3779421ebfbeaa93
3 changes: 2 additions & 1 deletion trunk/drivers/video/aty/radeon_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ void radeonfb_imageblit(struct fb_info *info, const struct fb_image *image)
return;

/* We only do 1 bpp color expansion for now */
if (info->flags & FBINFO_HWACCEL_DISABLED || image->depth != 1)
if (!accel_cexp ||
(info->flags & FBINFO_HWACCEL_DISABLED) || image->depth != 1)
goto fallback;

/* Fallback if running out of the screen. We may do clipping
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/aty/radeon_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ static int backlight = 1;
static int backlight = 0;
#endif

int accel_cexp = 0;

/*
* prototypes
*/
Expand Down Expand Up @@ -2520,6 +2522,8 @@ static int __init radeonfb_setup (char *options)
} else if (!strncmp(this_opt, "ignore_devlist", 14)) {
ignore_devlist = 1;
#endif
} else if (!strncmp(this_opt, "accel_cexp", 12)) {
accel_cexp = 1;
} else
mode_option = this_opt;
}
Expand Down Expand Up @@ -2567,6 +2571,8 @@ module_param(monitor_layout, charp, 0);
MODULE_PARM_DESC(monitor_layout, "Specify monitor mapping (like XFree86)");
module_param(force_measure_pll, bool, 0);
MODULE_PARM_DESC(force_measure_pll, "Force measurement of PLL (debug)");
module_param(accel_cexp, bool, 0);
MODULE_PARM_DESC(accel_cexp, "Use acceleration engine for color expansion");
#ifdef CONFIG_MTRR
module_param(nomtrr, bool, 0);
MODULE_PARM_DESC(nomtrr, "bool: disable use of MTRR registers");
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/video/aty/radeonfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -638,4 +638,6 @@ static inline void radeonfb_bl_init(struct radeonfb_info *rinfo) {}
static inline void radeonfb_bl_exit(struct radeonfb_info *rinfo) {}
#endif

extern int accel_cexp;

#endif /* __RADEONFB_H__ */

0 comments on commit a6a03b7

Please sign in to comment.