Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83574
b: refs/heads/master
c: d9a4ba6
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Feb 6, 2008
1 parent af73fdb commit 69029e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: bbcfe34078f3a0e690d1b54036dc9e6006129d9f
refs/heads/master: d9a4ba6a28f6cdd291ce2ee85bc91a85ff2c4a38
12 changes: 4 additions & 8 deletions trunk/drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,8 @@ static const struct fb_videomode ps3fb_modedb[] = {
#define HEAD_A
#define HEAD_B

#define X_OFF(i) (ps3fb_res[i].xoff) /* left/right margin (pixel) */
#define Y_OFF(i) (ps3fb_res[i].yoff) /* top/bottom margin (pixel) */
#define WIDTH(i) (ps3fb_res[i].xres) /* width of FB */
#define HEIGHT(i) (ps3fb_res[i].yres) /* height of FB */
#define BPP 4 /* number of bytes per pixel */

/* Start of the virtual frame buffer (relative to fullscreen ) */
#define VP_OFF(i) ((WIDTH(i) * Y_OFF(i) + X_OFF(i)) * BPP)


static int ps3fb_mode;
module_param(ps3fb_mode, int, 0);
Expand Down Expand Up @@ -611,7 +604,10 @@ static int ps3fb_set_par(struct fb_info *info)

par->width = info->var.xres;
par->height = info->var.yres;
offset = VP_OFF(i);

/* Start of the virtual frame buffer (relative to fullscreen) */
offset = ps3fb_res[i].yoff * ddr_line_length + ps3fb_res[i].xoff * BPP;

par->fb_offset = GPU_ALIGN_UP(offset);
par->full_offset = par->fb_offset - offset;
par->pan_offset = info->var.yoffset * xdr_line_length +
Expand Down

0 comments on commit 69029e2

Please sign in to comment.