projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a3a95c
)
viafb: fix acceleration for some chips
author
Erik-Jan Post
<
[email protected]
>
Sat, 16 Jan 2010 01:01:06 +0000
(17:01 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 16 Jan 2010 20:15:37 +0000
(12:15 -0800)
Fix a regression in hardware acceleration which made the accelerated
framebuffer unusable on some chips. These need extra initialization and
an extra flag which is no longer needed/available on current chips.
Signed-off-by: Erik-Jan Post <
[email protected]
>
Signed-off-by: Florian Tobias Schandinat <
[email protected]
>
Cc: Scott Fang <
[email protected]
>
Cc: Joseph Chan <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/via/accel.c
patch
|
blob
|
history
diff --git
a/drivers/video/via/accel.c
b/drivers/video/via/accel.c
index 9d4f3a49ba4a5038a333c940351dd85cf5df0deb..d5077dfa9e00ea1172faeb14470bf96c6c569edb 100644
(file)
--- a/
drivers/video/via/accel.c
+++ b/
drivers/video/via/accel.c
@@
-137,7
+137,7
@@
static int hw_bitblt_1(void __iomem *engine, u8 op, u32 width, u32 height,
tmp, dst_pitch);
return -EINVAL;
}
- tmp = (tmp >> 3) | (dst_pitch << (16 - 3));
+ tmp =
VIA_PITCH_ENABLE |
(tmp >> 3) | (dst_pitch << (16 - 3));
writel(tmp, engine + 0x38);
if (op == VIA_BITBLT_FILL)
@@
-352,6
+352,9
@@
int viafb_init_engine(struct fb_info *info)
viapar->shared->vq_vram_addr = viapar->fbmem_free;
viapar->fbmem_used += VQ_SIZE;
+ /* Init 2D engine reg to reset 2D engine */
+ writel(0x0, engine + VIA_REG_KEYCONTROL);
+
/* Init AGP and VQ regs */
switch (chip_name) {
case UNICHROME_K8M890: